gomorpheus / terraform-provider-morpheus

Terraform Morpheus provider
MIT License
17 stars 23 forks source link

[BUG] morpheus_vsphere_instance resource fails to deploy multiple volumes on different datastores #287

Open doubletwist13 opened 3 weeks ago

doubletwist13 commented 3 weeks ago

When attempting to specify multiple volumes to be added to a new vm instance, if the volumes are configured to be put on different datastores, the plan acts like it is going to do as asked, but when the VM is actually deployed, the virtual disks are instead all on the same datastore.

This DOES work if I manually deploy a VM in the GUI, but not if I deploy it via the TF provider.

Plan Output:

The plan matches what I expect to actually happen - each vdisk on a different datastore

...
+ volumes {
  + datastore_id = 55
  + name               = "vdisk1"
  <snip>
  }
+ volumes {
  + datastore_id = 51
  + name               = "vdisk2"
  <snip>
}

Expected Result (and works if deploying VM manually in GUI)

vdisk1 located on datastore_id 55 vdisk2 located on datastore_id 51

Actual result

Both vdisk1 and vdisk2 located on datastore_id 55