Cloud-Temple / terraform-provider-cloudtemple

Cloud Temple CSP Terraform Provider
https://cloud-temple.com
Mozilla Public License 2.0
8 stars 1 forks source link

Virtual machines are powered on before disks attachments #114

Open roct37 opened 7 months ago

roct37 commented 7 months ago

Hello,

When we provision a VM with terraform and add other disks, the VM boots before creating and attaching the disks.

So, the vm requires bus scans or reboot to detect the added disks.

Can the virtual machine be started after the disks are created ?

pbesret commented 7 months ago

Hello, this is a known issue but this is the normal behavior of Terraform since resources are created with dependencies to each other.

The virtual disk needs a VM to be created and we cannot power on the VM in the creation process of the virtual disk. One solution could be to create the virtual disks in the virtual machine process but we cannot do this at this moment.

Will look for a solution later.

Thanks for understanding. Paul

pbesret commented 3 months ago

Related to #139