GitHub user VolodymyrLinuxovich added a comment to the discussion: Delete VM with backup offering - Cannot expunge
I think that would be a good addition. I'm not a committer though, so the maintainers have the final say. It's worth opening an issue first and linking this discussion. Then they can agree on the design before you write the code. One suggestion on the design. A new VM state means touching the state machine, and that part of the code is sensitive. A VM detail might be easier. Something like `backup.removal.approved` stored with the VM. The expunge task already calls `checkAndRemoveBackupOfferingBeforeExpunge`. It could read the detail there and remove the offering before it throws. The UI side could be a checkbox in the destroy dialog. It would show only when the VM has a backup offering with backups. The API could take the same choice as a new parameter on `destroyVirtualMachine`. Today that command only has the expunge and volume ids parameters. Be careful with actually deleting the backups. Every bundled provider returns false for `willDeleteBackupsOnOfferingRemoval`. So removing the offering alone keeps the backup files on your NFS. Deleting them would need explicit delete calls for each backup. That probably belongs behind its own option, since some admins will want to keep them. GitHub link: https://github.com/apache/cloudstack/discussions/14893#discussioncomment-20035575 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
