Hi
We are deploying cloudinit images from terraform (telmate/proxmox), by cloning a template in proxmox already configured with cloud init.
The new machine gets created with the next available VMID, and a small 4MBdisk is created to feed the cloudinit settings. The disk created for cloudinit is called vm-{VMID}-cloudinit.
When deleting the VM created with cloudinit it seems that the small disk is not deleted, and are now living its own live, with no associated VM.
We did a lot of testing with terraform, and therefore created and deleted a lot of machines. Now the VMID count has reached to where we have some orpened VMID disks laying around, and we cannot create new cloudinit VM's because a disk with the name already exists.
My suspecion is that terraform (terraform destroy) is not deleting the cloudinit disk, because this is solely beeing created in proxmox, and terraform does not know about it, and therefore we end up with all these disks.
The storage is on ceph, so i dont have access to an actual filesystem - how do i manually delete these disks?
Any experiences or tips on how to prevent this?
Best regards, Kasper
We are deploying cloudinit images from terraform (telmate/proxmox), by cloning a template in proxmox already configured with cloud init.
The new machine gets created with the next available VMID, and a small 4MBdisk is created to feed the cloudinit settings. The disk created for cloudinit is called vm-{VMID}-cloudinit.
When deleting the VM created with cloudinit it seems that the small disk is not deleted, and are now living its own live, with no associated VM.
We did a lot of testing with terraform, and therefore created and deleted a lot of machines. Now the VMID count has reached to where we have some orpened VMID disks laying around, and we cannot create new cloudinit VM's because a disk with the name already exists.
My suspecion is that terraform (terraform destroy) is not deleting the cloudinit disk, because this is solely beeing created in proxmox, and terraform does not know about it, and therefore we end up with all these disks.
The storage is on ceph, so i dont have access to an actual filesystem - how do i manually delete these disks?
Any experiences or tips on how to prevent this?
Best regards, Kasper