-
Notifications
You must be signed in to change notification settings - Fork 23
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
feature: add option to allow cinder CSI availability zone override #366
Comments
I think this is a two part issue:
...
allowedTopologies:
- matchLabelExpressions:
- key: topology.cinder.csi.openstack.org/zone
values:
- nova
... Allow cross-AZ attachments |
I don't think the allowedTopologies approach will work for this case. But I might consider it a bug in csi-cinder that it doesn't give you a way to set topology.cinder.csi.openstack.org/zone correctly on the nodes/worker. |
How to tell end users to set |
I am not following here.. Cinder CSI doesn't know anything about your topology, so in order for it to understand the topology, we need to provide that information to it.
I think for this one, you'll have to probably edit the CCM configuration (which I can't remember if it was a configmap or inside the |
I can only +1 to the issue here. And add on top, that current version of driver seems to not actually respect passed to magnum Availability Zone hint. Setting So respecting AZ where workload cluster is spawned should be ideally respected if a hint passed by the user. |
At the moment volumes for workers are gonna be spawn in a random AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is not posisble an attempt to add a volume to worker has high failure percentage due to random selection of AZ. This patch suggests using provided to cluster availability_zone by supplying `availability` parameter to cinder csi [1] This ensures that volume will be created in a same zone as workers are preventing failures where cross_az_attach is False. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
At the moment volumes for workers are gonna be spawn in a default AZ completely disregarding user request for Availability Zone. In a design where cross_az_attach is disabled, an attempt to add a volume to worker has high failure percentage due to fallback to the default scheduling zone, unless allow_availability_zone_fallback is disabled. This patch adds a configuration option `cross_az_attach` which is set to True by default to align with Nova typical behavior. It will define AZ to be set to `nova` according to a CSI default [1]. When `cross_az_attach` is set to False, AZ for the volume will be set to the cluster AZ value. This ensures that volume will be created in a same zone as workers are preventing failures. [1] https://github.com/kubernetes/cloud-provider-openstack/blob/d228854cf58e7b4ed93d5e7ba68ab639450e3449/docs/cinder-csi-plugin/using-cinder-csi-plugin.md#supported-parameters Relates-to: vexxhost#366
I have my worker nodes and cinder storage running on different availability zone and because of that getting affinity issue during pv and deployment. By default during cluster create k8s and CSI use same AZ. I would like to have option available where we can tell mcap to override CSI AZ to be different from worker/compute AZ. (Example: csi_availability_zone label apply to template or cluster create)
As you can see in following output topology.cinder.csi.openstack.org/zone=general and topology.kubernetes.io/zone=general is same AZ but I would like to change csi AZ to something else.
The text was updated successfully, but these errors were encountered: