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
Don't add empty AZ labels to OpenStack pre-provisioned PVs #95174
Don't add empty AZ labels to OpenStack pre-provisioned PVs #95174
Conversation
@anguslees @FengyunPan2 could you please review the PR? |
/lgtm |
/assign @NickrenREN @dims |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, tsmetana The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind bug
What this PR does / why we need it:
There is a discrepancy in OpenStack PVLabeler implementation between the dynamic and manual PV provisioning. In case of dynamic provisioning the AZ labels are being added only if they're not empty, however for pre-provisioned volumes the labels are added always which may result in scheduling conflict on clusters with empty region.
Dynamic provisioner AZ labeling code:
https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/cinder/cinder_util.go#L228-L237