SPLAT-1995: vsphere on destroy remove cns volumes#9425
Conversation
|
Skipping CI for Draft Pull Request. |
|
@jcpowermac: This pull request references SPLAT-1995 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Related to #9388 |
6f0d6ec to
1f18415
Compare
|
/test gofmt |
1f18415 to
0424786
Compare
|
/test gofmt |
a7e70b5 to
2204c48
Compare
|
/test gofmt |
2204c48 to
48049b9
Compare
|
@jcpowermac: This pull request references SPLAT-1995 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@jcpowermac: This pull request references SPLAT-1995 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
06439ec to
6221566
Compare
|
/lgtm |
|
@gnufied can you take a look too? Thanks! |
pkg/destroy/vsphere/vsphere.go
Outdated
There was a problem hiding this comment.
Shouldn't delete CNS volumes be done before tags, categories or even storage policies are deleted? IIRC - if one or more volumes that refer the storage policy being deleted still exists then deletion of storage policy fails (this is one of the primary reasons we have steady accumulation of storage policies in devqe environments I think).
But please do double check the order.
This commit does the following:
Add vSphere CNS client
Returns a slice of CNS volumes associated with the infraid via GetCnsVolumes()
Destroys all CNS volumes via DeleteCnsVolumes() based on slice provide by GetCnsVolumes()
Updates the generated mock for the new methods
6221566 to
2d6771b
Compare
|
@gnufied tested, moved cns destroy to right after virtual machine delete. |
|
/lgtm |
|
works as expected |
|
/label acknowledge-critical-fixes-only |
|
/test okd-scos-images |
2 similar comments
|
/test okd-scos-images |
|
/test okd-scos-images |
|
/assign @sadasu |
|
/assign @patrickdillon |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
|
@jcpowermac: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
e4014cd
into
openshift:main
This pr does the following:
GetCnsVolumes()DeleteCnsVolumes()based on slice provide byGetCnsVolumes()