Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional disk not added when cloning a VM #579

Open
fabricekrebs opened this issue Apr 6, 2023 · 2 comments
Open

Additional disk not added when cloning a VM #579

fabricekrebs opened this issue Apr 6, 2023 · 2 comments
Labels

Comments

@fabricekrebs
Copy link

fabricekrebs commented Apr 6, 2023

When cloning a VM, and in the mean time adding an additional disk, the VM is cloned but no additional disk is added.

For example when applying this configuration, the disk with device index 4 isn't added

#create a virtual machine, with required information
resource "nutanix_virtual_machine" "vm" {
  name                 = var.vm_name
  cluster_uuid         = data.nutanix_cluster.cluster.id
  num_vcpus_per_socket = "2"
  num_sockets          = "1"
  memory_size_mib      = 2048

  guest_customization_cloud_init_user_data	= "xxxxx"

  parent_reference = {
    kind = "vm"
    name = "source-vm"
    uuid = "cdaa312e-45d7-49fa-b859-3cfebeff13f9"
  }


  disk_list {
    data_source_reference = {
      kind = "vm"
      name = "source-vm"
      uuid = "cdaa312e-45d7-49fa-b859-3cfebeff13f9"
    }
  }

  disk_list {
    device_properties {
      device_type = "CDROM"
      disk_address = {
        adapter_type = "SATA"
        device_index = "0"
      }
    }
  }

  disk_list {
    disk_size_mib = 10000
    device_properties {
      device_type = "DISK"
      disk_address = {
        device_index = 4
        adapter_type = "SCSI"
      }
    }
  }

  nic_list {
    subnet_uuid = data.nutanix_subnet.subnet.id
  }
}

However, the VM is deploying without any error.

Test done with the following version:
Terraform provider 1.8.0
Prism Central : pc.2022.6.0.1

@abhimutant abhimutant added the bug label Sep 25, 2023
@xerxist
Copy link

xerxist commented Oct 25, 2023

This issue is still present.

Using Nutanix AHV
Terraform version: v1.6.2
Nutanix provider: v1.9.3

@xerxist
Copy link

xerxist commented Jul 25, 2024

Still the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants