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
Use volumeHandle as PV name when translating EBS inline volume #96821
Conversation
Identified by inline tests failing at https://testgrid.k8s.io/sig-aws-ebs-csi-driver#migration-test-latest /sig storage |
/lgtm |
@ayberk: changing LGTM is restricted to collaborators 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. |
/hold Since I missed code freeze anyway (still intend to cherry pick) I will take some extra time to test this end to end that it actually fixes ebs migration inline volumes. |
/hold cancel Inline migration test passes with this patch.
|
/lgtm |
/assign @msau42 Hello, this is a oneliner AWS EBS migration fix for a bug affecting subset of inline volumes. Please review and approve ty ! Plan to cherrypick this also |
@@ -98,7 +98,7 @@ func (t *awsElasticBlockStoreCSITranslator) TranslateInTreeInlineVolumeToCSI(vol | |||
ObjectMeta: metav1.ObjectMeta{ | |||
// Must be unique per disk as it is used as the unique part of the | |||
// staging path | |||
Name: fmt.Sprintf("%s-%s", AWSEBSDriverName, ebsSource.VolumeID), | |||
Name: fmt.Sprintf("%s-%s", AWSEBSDriverName, volumeHandle), |
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.
unit test?
/triage accepted |
e3fb76f
to
28f2355
Compare
/approve Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: msau42, wongma7 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 |
I think for the cherrypick, you'll also have to add a release note describing the issue fixed |
/retest Review the full test history for this PR. Silence the bot with an |
…1-upstream-release-1.18 Automated cherry pick of #96821: Use volumeHandle as PV name when translating EBS inline
…1-upstream-release-1.20 Automated cherry pick of #96821: Use volumeHandle as PV name when translating EBS inline
…1-upstream-release-1.19 Automated cherry pick of #96821: Use volumeHandle as PV name when translating EBS inline
What type of PR is this?
/kind bug
What this PR does / why we need it: EBS CSI inline migration/translation does not work if the volumeID is in the "uri" format and has a colon in it, like
ebs.csi.aws.com-aws://us-west-2a/vol-0818b380d4fc22bec
which is not a valid object name.kubernetes/pkg/volume/csi/csi_plugin.go
Line 430 in 6d5cb36
/var/lib/kubelet/pods/017390c5-0c21-404b-a850-228c4311dd36/volumes/kubernetes.io~csi/ebs.csi.aws.com-aws:~~us-west-2a~vol-0a4910df43136ea3e/mount
kubernetes/pkg/volume/csi/csi_mounter.go
Line 87 in 6d5cb36
host path:container path:mode
kubernetes/pkg/kubelet/dockershim/helpers.go
Line 120 in cea1d4e
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: