-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
openstack: cannot provision volumes when multiple AZs available #2844
Comments
/label platform/openstack OpenShift 4 support for Availability Zones is planned, but not implemented yet. We hope to be able to bring it soon. Closing as duplicate of #2391; feel free to comment further or reopen if needed. |
@pierreprinetti: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Why was this feature which is available in 3.11 not implemented from the beginning? |
@teutonet How dit you relabel the nodes. I adjusted this label on each node:
But somehow pods stay unschedulabe with the same message. I also change the scheduler-policy by removing the "NoVolumeZoneConflict" predicate. But no luck. |
@MartijnStraatman I did the following steps in order:
In 99% of PV creation it worked without any issue, but sometimes the PersistentVolume has the old AZ labels, deleting the labels helped to fix the issue. Hope this works for you! |
@MartijnStraatman on a fresh installed cluster I could workaround this issue by just relabeling the nodes to Availability Zone $ oc get nodes -ojsonpath='{.items[*].metadata.name}' | \
xargs -n 1 \
oc patch node --type='json' \
-p='[{"op":"replace", "path":"/metadata/labels/failure-domain.beta.kubernetes.io~1zone", "value":"nova"}]'
node/cluster1-1337-master-0 patched
node/cluster1-1337-master-1 patched
node/cluster1-1337-master-2 patched
node/cluster1-1337-worker-abc patched
node/cluster1-1337-worker-def patched
node/cluster1-1337-worker-ghi patched |
@teutonet thx. Will try that. I changed the default scheduler by removing the
|
Version
Platform:
openstack
What happened?
Installation of a openshift cluster on openstack was successful.
Creating PersistentVolumes using openstack cinder fails:
This is due to the openstack compute service has multiple availability zones such as Zone1 and Zone2 but the openstack blockstorage service has only a single AZ in this case nova.
Once the AZ is set on the storage class to nova the creation of volumes works as expected, but attaching the volume to a pod does not work as the scheduler tries to ensure that the volume AZ matches the workers AZ and fails:
According to an older openshift 3 guide setting
ignore-volume-az=yes
in the cloud provider config and rebooting the whole cluster should fix this issue.Unfortunately adding the property to the cloud provider config and rebooting the whole cluster did not solve this issue.
Only relabelling all Nodes to match the openstack blockstorage service AZ worked.
What you expected to happen?
Installation of openshift on openstack with multiple compute AZs and single volume AZ should include the
ignore-volume-az
property in the cloud provider config, e. g.:cloud.conf:
And the default storage class should include the volume AZ, e. g.:
StorageClass standard:
How to reproduce it (as minimally and precisely as possible)?
Install openshift on a openstack cluster with mutliple compute AZs and a single volume AZ.
Create a Pod using a PersistentVolume:
test.yaml:
Both the PV and the Pod should be created successfully and the Pod should be in running state.
References
The text was updated successfully, but these errors were encountered: