You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an existing VM that has been deployed using Terraform. When doing a plan, Terraform reports changes on disks.
It looks like it's changing the disk order, which shouldn't be happening.
Is there a clean way to manage VMs with multiple disks?
Terraform Configuration Files
This is a subset, as the nutanix_virtual_machine is embedded into a custom module.
It is because it always implicitly adds a cdrom drive at index 0. It would be better if that was handled in the api call, rather than the tf config so that it becomes part of the state. Or atleast, if you could actually use ignore_changes on the disk_list...
Nutanix Cluster Information
Prism Central pc.2024.1.0.2
Cluster 6.5.4.5 LTS
Terraform Version
Terraform v1.5.7
Affected Resource(s)
Description
We have an existing VM that has been deployed using Terraform. When doing a plan, Terraform reports changes on disks.
It looks like it's changing the disk order, which shouldn't be happening.
Is there a clean way to manage VMs with multiple disks?
Terraform Configuration Files
This is a subset, as the
nutanix_virtual_machine
is embedded into a custom module.Module code:
VM instance:
Debug Output
Expected Behavior
No change.
Actual Behavior
The plan reports changes in disk layout. All disks seem to be mixed up.
The text was updated successfully, but these errors were encountered: