-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option ignoreVolumeAZ to allow for differences between volume and compute AZ names #322
Conversation
Thank you @gesslein for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below. |
@gesslein Thank you for your contribution. |
Hi @gesslein, thanks for the contribution. Just one ask. Is there any version constraint regarding this feature in the /needs second-opinion |
Thanks for the quick feedback. You are right, I did not think about older versions not having that option. I did now test with a k8s 1.19.x and respectively cinder-csi-plugin v1.19.0, and it did indeed not work. But the option did no harm either. For k8s 1.18 it is a bit puzzling, because the option does exist in the legacy cloud provider https://v1-18.docs.kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#block-storage but works differently there. I just did a quick hack to add the option to all cloudproviders.conf's and was able to schedule pods with volumes then. To make it not so confusing, and I'm not sure 1.18 is of much relevance for new gardener adopters, I think only adding this for 1.20 and newer is the way to go. And I hope make it as clear as possible in the documentation that only 1.20.x and newer supports this. |
@kon-angelo You have pull request review open invite, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ho @gesslein
sorry for the delay.
Thanks for testing the with v1.19/v1.18
and for adding the version switch in the csi config.
I agree adopting it with v1.20
sound good to me.
I'm now fine with it.
/lgtm
/squash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Add option ignoreVolumeAZ to allow for differences between volume and compute AZ names
How to categorize this PR?
/area control-plane
/area storage
/kind enhancement
/platform openstack
What this PR does / why we need it:
Introduce CloudProfile option
ignoreVolumeAZ
which directly translates to optionignore-volume-az
in[BlockStorage]
section of csi config.This option and where it is needed is described upstream as:
https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#block-storage
This enabled us to use gardener with an openstack that uses compute zones like
abc1-a
,abc1-b
,abc1-c
but the volume zone is alwaysabc1
.Release note: