Skip to content

VPC validation issue #1723

Description

@timuthy

How to categorize this issue?

/area quality
/kind bug regression
/platform aws

What happened:
The lately introduced VPC network subset check in #1662 causes validation errors for valid shoot configurations.
A VPC can have multiple CIDR blocks (ref), but the validation only considers the primary block (see here).

task "Waiting until shoot infrastructure has been reconciled" failed:
        Error while waiting for Infrastructure shoot--test--test/test to
        become ready: error during reconciliation: Error checking infrastructure
        config: [networking.nodes: Invalid value: "10.250.0.0/20": must be a
        subset of "networks.vpc.id" ("10.240.0.0/16"), networking.public:
        Invalid value: "10.250.96.0/21": must be a subset of "networks.vpc.id"
        ("10.238.140.128/27"), networking.internal: Invalid value:
        "10.250.64.0/21": must be a subset of "networks.vpc.id"
        ("10.238.140.128/27"), networking.nodes: Invalid value:
        "10.250.16.0/20": must be a subset of "networks.vpc.id"
        ("10.238.140.128/27"), networking.public: Invalid value:
        "10.250.104.0/21": must be a subset of "networks.vpc.id"
        ("10.238.140.128/27"), networking.internal: Invalid value:
        "10.250.72.0/21": must be a subset of "networks.vpc.id"
        ("10.238.140.128/27")]

What you expected to happen:
The infrastructure reconciliation to succeed.

How to reproduce it (as minimally and precisely as possible):

  1. Create a VPC with at least two CIDR blocks attached.
  2. Create a Shoot cluster and choose subnets from a non-primary CIDR block of the VPC.

Anything else we need to know?:

Environment:

  • Gardener version (if relevant):
  • Extension version: v1.68.0
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/qualityOutput qualification (tests, checks, scans, automation in general, etc.) relatedkind/bugBugkind/regressionBug that hit us already in the past and that is reappearing/requires a proper solutionlifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions