-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detach volume groups before deleting machine
This commit is a workaround to a known problem with hypervisor attached volumes that are created by CSI 3.0. Hypervisor attached volumes result in a volume group disk being attached to the VM on which the pod consuming the PV is running. When a cluster is deleted before deleting the PVC, the prism task fails to delete the VM because an existing volume group is attached to the VM. Since this problem is restricted to CSI 3.0 which relies on a minimum PC version of 2024.1 and the solution requires the volume group detach v4 API which is also available starting 2024.1, we make a v3 get prism central info call to fetch the PC version. If PC version is 2024 or greater we create a v4 client for the cluster as well. Before a machine is deleted, we check if the VM backing the machine has any disks backed by volume groups. If it does, we detach those volume groups before deleting the machine.
- Loading branch information
1 parent
a4d9c84
commit aee8a8c
Showing
25 changed files
with
5,712 additions
and
682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.