Skip to content

Modifying VM image uuid (data_source_reference in disk_list) does not replace Disk #159

Open
@yannickstruyf3

Description

Nutanix Cluster Information

  • Nutanix Cluster: 5.17.x
  • Nutanix Prism Central: 2020.7

Terraform Version

Terraform v0.12.24

Affected Resource(s)

  • nutanix_virtual_machine

Terraform Configuration Files

Create VM with a disk that references an image:

  disk_list {
    data_source_reference = {
      kind = "image"
      uuid = <image_id_1>
    }
    # disk_size_bytes = 90 * 1024 * 1024 * 1024
  }

Change the image id and apply:

  disk_list {
    data_source_reference = {
      kind = "image"
      uuid = <image_id_1>
    }
    # disk_size_bytes = 90 * 1024 * 1024 * 1024
  }

Debug Output

None

Panic Output

None

Expected Behavior

Change is visible in terraform plan and the disk image is swapped after terraform apply

Actual Behavior

Change is visible in terraform plan and but the disk image on the VM stays identical to the initial configuration. This also results in the fact that re-running terraform apply will keep on indicating that there is a new change.

Steps to Reproduce

  1. Create a VM with an image
  2. Update the image UUID
  3. Apply the modified config

Important Factors

Using Prism Central

References

--->

  • #0000 <!---Github Issue number --->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions