kubernetes-sigs / kubespray

Deploy a Production Ready Kubernetes Cluster
Apache License 2.0
16.17k stars 6.48k forks source link

Enable ignore-volume-az option #2751

Closed jbcraig closed 6 years ago

jbcraig commented 6 years ago

FEATURE REQUEST?

Allow one to specify an option like openstack_ignore_volume_az in all.yml as true/false. When true include the following stanza in cloud_config:

[BlockStorage]
ignore-volume-az=true

I, like many, use ceph as a backing store for cinder and I have multiple AZz. This causes havoc when creating PVs as they are labeled with the default zone that cinder specifies, in my case "nova". When a pod makes a claim it will fail to match unless you happen to have nodes in the default zone. For ceph backed block storage volumes aren't restricted to a single zone, so this option tells k8s to ignore the cinder zone and not label volumes with an AZ. Then all is good in the k8s PV world.

jbcraig commented 6 years ago

My bad, now I see that you have the option volume_cross_zone_attachment to solve this same issue. Not sure which approach is best, I was planning to submit a pull request but now I'm not sure whether to proceed.

Atoms commented 6 years ago

if this is still actual please reopen issue