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 vsphere disk detach failure #95447
Fix vsphere disk detach failure #95447
Conversation
@gnufied: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/priority-important-soon |
cc @kubernetes/sig-storage-bugs |
cc @yuga711 |
} | ||
|
||
volPath = vclib.RemoveStorageClusterORFolderNameFromVDiskPath(volPath) | ||
canonicalPath, pathFetchErr := getcanonicalVolumePath(ctx, vm.Datacenter, volPath) |
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.
Doesn't kubevols/disk.vmdk require similar canonical volumepath conversion? How is that handled today?
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.
for dynamically provisioned volumes - canonical path is saved in PV and hence gets used for detach and attach.
9e6d3e8
to
3eb5d3f
Compare
/retest |
} | ||
|
||
volPath = vclib.RemoveStorageClusterORFolderNameFromVDiskPath(volPath) | ||
canonicalPath, pathFetchErr := getcanonicalVolumePath(ctx, vm.Datacenter, volPath) | ||
// if canonicalPath is not empty string and pathFetchErr is nil then we can use canonical path to perform detach | ||
if canonicalPath != "" && pathFetchErr == nil { |
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.
Can we fail the attach operation if we fail to get canonicalVolumePath and pathFetchErr is no nil?
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, gnufied 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 |
please squash all your commits. |
Make inability to fetch canonicalPath non-fatal error Throw error if we can't fetch canonicalPath on attach
06ffd22
to
5627771
Compare
/lgtm |
/retest Review the full test history for this PR. Silence the bot with an |
…47-upstream-release-1.19 Automated cherry pick of #95447: Fix vsphere disk detach failing
Fixes #95121
/kind bug
/sig storage
/assign @divyenpatel @jsafrane