-
Notifications
You must be signed in to change notification settings - Fork 807
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
Create volumes with one topology label, not both #899
Comments
Why? When the CSI driver returns only Translation we use for CSI migration will make sure that the label is translated from CSI |
I thought the NodeGetInfo response for topology labels doesn't get translated, so if we only return topology.ebs.csi.aws.com/zone then translated PVs with topology.kubernetes.io/zone won't get scheduled . That's why I thought we need to add both labels in NodeGetInfo response. Let me verify. (BTW we are lacking a migration topology e2e, I'll create issue/add it soon). I agree with you that driver should not worry about the label. But we weren't originally thinking about topology.ebs.csi.aws.com/zone being a 1:1 mapping to topology.kubernetes.io/zone, rather we were thinking that we should try to use topology.kubernetes.io/zone as a replacement of topology.ebs.csi.aws.com/zone. Since there already exists PVs out there with topology.ebs.csi.aws.com/zone, I don't think we can ever remove it without breaking change, but IIRC we wanted to at least deprecate it and someday remove it. cc @ayberk (he is out right now but knows more than me,i'm throwing him under the bus.) |
We are facing an issue with v0.10.x of CSI driver where it doesn't prioritize the |
The fallback he is referring to in that comment is in the driver controller when it is deciding in which zone to create a volume, but the scheduler doesn't have such a fallback, the scheduler is doing the AND and potentially blocking PVs/Pods from getting scheduled this issue is fixed by #912 released in 1.1.0, from tha tversion on PVs and CSINode will have topology.ebs.csi.aws.com/zone topology label |
/kind bug
What happened? https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/pkg/driver/controller.go#L658 Details: kubernetes/kubernetes#102248
The expressions are ANDED, meaning a provisioned PV will only land on nodes that have BOTH labels. this was not the intention, we want it to be able to land on nodes with one or the other.
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Anything else we need to know?:
Environment
kubectl version
):The text was updated successfully, but these errors were encountered: