gardener / gardener-extension-provider-openstack

Gardener extension controller for the OpenStack cloud provider (https://openstack.org).
https://gardener.cloud
Apache License 2.0
28 stars 82 forks source link

Don't stick an amount of OpenStack AZs to the amount of worker networks for shoots #9

Closed kayrus closed 4 years ago

kayrus commented 5 years ago

What would you like to be added:

spec.cloud.openstack.networks.workers should be optional. If it is not specified, then spec.cloud.openstack.networks.nodes CIDR should be used. An amount of spec.cloud.openstack.zones should not be stick to the amount of spec.cloud.openstack.networks.workers

Why is this needed:

All AZs within the region in CCloud EE env share the same network CIDR. Current error: must specify as many workers networks as zones The related code https://github.com/gardener/gardener/blob/a21316678614cf6b46b3792c90a5abd1e80755fd/pkg/apis/garden/validation/validation.go#L1202..L1204

kayrus commented 5 years ago

When I tried to use two subnets for two AZs, I got this error:

Flow "Shoot cluster reconciliation" encountered task errors: [task "Deploying Shoot infrastructure" failed: retry failed with context deadline exceeded, last error: openstack worker networks must only have exactly one entry]

/cc @afritzler