belgaied2/harvester-cli

When removing a VM using the `harvester vm delete` command, the volume is not removed

Closed this issue · 1 comments

Problem description

When a VM is removed using harvester vm delete XXX, the VM is removed but the volumes that might have been created with it are not removed.

Suggestion

  • Check if Harvester offers a retention strategy
  • Implement removal of volume depending on retention strategy

Harvester does offer a retention strategy through the UI where it is possible to de-select a volume that is not supposed to be removed.

Harveste CLI has a very opiniated approach and will suppose that deletion of VM systematically means deletion of any associated volume. That's what is now implemented in commit 21984f3.

If further down the line, users need the capability of keeping the volumes, that can also be implemented in a later version.