Skip to content
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

Don't trim device prefix for existing volumes in DeviceManager #1508

Closed

Conversation

ConnorJC3
Copy link
Contributor

If a volume is (already) mounted at /dev/sdX, DM will trim the prefix and claim the volume should be mounted at /dev/xvdX - this causes the driver to get stuck in an infinite loop waiting for the volume to be attached to the wrong location. This bug commonly is triggered by manually mounting a volume using the AWS console, because it uses the prefix /dev/sdX by default.

Signed-off-by: Connor Catlett [email protected]

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from connorjc3. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from gtxu and rdpsin February 13, 2023 16:17
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 13, 2023
@ConnorJC3 ConnorJC3 force-pushed the fix-manually-attached branch from cc7e528 to 8ec5252 Compare February 13, 2023 17:18
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 13, 2023
@ConnorJC3 ConnorJC3 force-pushed the fix-manually-attached branch from 8ec5252 to 5afd743 Compare February 13, 2023 18:12
If a volume is (already) mounted at /dev/sdX, DM will trim the prefix
and claim the volume should be mounted at /dev/xvdX - this causes the
driver to get stuck in an infinite loop waiting for the volume to be
attached to the wrong location. This bug commonly is triggered by
manually mounting a volume using the AWS console, because it uses the
prefix /dev/sdX by default.

Signed-off-by: Connor Catlett <[email protected]>
@ConnorJC3 ConnorJC3 force-pushed the fix-manually-attached branch from 5afd743 to f4a222a Compare February 14, 2023 17:57
@torredil
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 21, 2023
@ConnorJC3
Copy link
Contributor Author

Superceded by #1518

@ConnorJC3 ConnorJC3 closed this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants