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
Fix translation of Cinder storage classess to CSI #98311
Fix translation of Cinder storage classess to CSI #98311
Conversation
/sig storage |
04450b7
to
1d34a35
Compare
/retest |
1d34a35
to
0333480
Compare
/test pull-kubernetes-integration |
cc @kubernetes/provider-openstack-pr-reviews, PTAL. |
/approve Will let openstack folks give final review |
@jsafrane sc.parameters["availability"] is still supported in CSI driver and takes priority over other topology keys if specified. So we dont need to translate the same? |
} | ||
|
||
if !reflect.DeepEqual(got, tc.expSc) { | ||
t.Errorf("Got parameters: %v, expected :%v", got, tc.expSc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo
t.Errorf("Got parameters: %v, expected :%v", got, tc.expSc) | |
t.Errorf("Got parameters: %v, expected: %v", got, tc.expSc) |
@ramineni, you're right, I removed Still, migration to CSI was a great opportunity to drop the hack we had in Kubernetes StorageClasses and stop supporting two conflicting ways how to place volumes into zones. I did not find a clear statement if the CSI driver is GA or beta or alpha, is it too late to remove |
3caacfe
to
4010c88
Compare
/test pull-kubernetes-e2e-kind-ipv6 |
/test pull-kubernetes-verify |
Can you update the PR description and commit message to reflect the change you just made? |
@jsafrane we did consider once before, but there was some issue (something with volume AZ , node AZ can be different). Dont remember exactly, I suppose, I can do some digging again if we could remove the redundancy. Thanks |
4010c88
to
1070cbe
Compare
Ok, this PR does not touch |
Thanks. |
/retest Review the full test history for this PR. Silence the bot with an |
In-tree Cinder storage class must be translated to CSI: - sc.params["fsType"] -> sc.params["csi.storage.k8s.io/fstype"] - sc.allowedTopology (with in-tree topology keys) -> sc.allowedTopology (with CSI topology keys)
Fixed |
1070cbe
to
9032f5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Fedosin, jsafrane, msau42 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 |
…98311-upstream-release-1.20 Automated cherry pick of #98311: Fix translation of Cinder storage classess to CSI
…98311-upstream-release-1.18 Automated cherry pick of #98311: Fix translation of Cinder storage classess to CSI
…98311-upstream-release-1.19 Automated cherry pick of #98311: Fix translation of Cinder storage classess to CSI
/kind bug
What this PR does / why we need it:
In-tree Cinder storage class must be translated to CSI:
sc.parameters["fsType"]
->sc.parameters["csi.storage.k8s.io/fstype"]
sc.parameters["availability"]
->sc.allowedTopology
(with CSI topology keys)sc.allowedTopology
(with in-tree topology keys) ->sc.allowedTopology
(with CSI topology keys)Found by running e2e tests with CSI migration enabled. One topology test failed:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: