Folks,
I have deployed a magnum with magnum-capi driver. Now trying to work with a cinder for PV stuff and found some strange issue related to the Availability Zone.
My k8s cluster running in AZ: foo
My Ceph/Cinder running in AZ: nova (default)
I have created k8s cluster using magnum-capi selecting AZ: foo but when I am trying to create/attach PV then getting an error saying invalid AZ. Ofc because its in different AZ so I have add following snippet in Storage class to override
AZ of CSI
So in this case, you do allow cross az attach inside OpenStack in order to allow this, is this correct? Since the AZ of your storage != the AZ of your compute nodes.
PV creation completed successfully after applying the above change. Now when I try to deploy ngnix and pass that PV then again I get a volume affinity issue because worker nodes and volume are in different AZ.
I did the following to change CSI plugin az to nova for worker node to make it fix.
What is the proper workaround here for the above scenario and what would be the proper way to fix it?
In this case, what you’re doing is telling the node that it is running in the `nova` AZ (which it is not!)