-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Compare correct file names for volume detach operation #57053
Compare correct file names for volume detach operation #57053
Conversation
/assign @abrarshivani |
/ok-to-test |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abrarshivani, prashima Associated issue requirement bypassed by: abrarshivani The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/lgtm |
Automatic merge from submit-queue (batch tested with PRs 56375, 56872, 57053, 57165, 57218). If you want to cherry-pick this change to another branch, please follow the instructions here. |
…56726-#57053-upstream-release-1.9 Automatic merge from submit-queue. Automated cherry pick of #56648 #56726 #57053 upstream release 1.9 Cherry pick of #56648 #56726 #57053 on release 1.9. #56648: Fix session timeout issue in vSphere Cloud Provider #56726: Fix dynamic volume provisioning iussue when VM is removed from inventory #57053: Compare correct file names for volume detach operation
What this PR does / why we need it:
Current volume detach code compares volume path with disk path, as it is. This PR removes '.vmdk' extension from both paths and then compares them. This makes sure that correct comparison is done irrespective of a missing '.vmdk' extension from one of the paths.
Which issue(s) this PR fixes:
Fixes vmware-archive#392
Special notes for your reviewer:
Deployed cluster on vSphere and provisioned a static volume. Verified that a statically provisioned volume gets detached even when volume path didn't contain any .vmdk extension and disk path had .vmdk extension.
Release note:
vSphere cloud provider: Fix detach operation for volumes, when .vmdk extension is not specified in volume path.