When VMs are deleted, TrueNAS (used for ZFS over ISCSI) fails to remove the created vm-XXX-cloudinit storage volume, due to dataset is busy. We had added a time.Sleep(time.Second *10) to try and wait it out, but they are still being orphaned. This then causes issues when launching new VMs that re-use an ID.
We should ensure that when ProxmoxMachines are cleaned up, the cloud-init volumes are also removed from the given storage
When VMs are deleted, TrueNAS (used for ZFS over ISCSI) fails to remove the created
vm-XXX-cloudinit
storage volume, due todataset is busy
. We had added atime.Sleep(time.Second *10)
to try and wait it out, but they are still being orphaned. This then causes issues when launching new VMs that re-use an ID.We should ensure that when
ProxmoxMachine
s are cleaned up, the cloud-init volumes are also removed from the given storage