We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a VM with TF. This VM got a unique NIC on Primary network. Then I added a NIC in the TF file. It failed during apply.
Primary
data "nutanix_image" "image" { image_name = var.nutanix_image } data "nutanix_subnet" "subnet" { subnet_name = "Primary" } data "nutanix_subnet" "subnet2" { subnet_name = "Secondary" } resource "nutanix_virtual_machine" "bastion" { name = "test-gautier" boot_type = "UEFI" cluster_uuid = "xxx" guest_customization_cloud_init_user_data = base64encode(file("./cloud-init/simple.yaml")) disk_list { disk_size_mib = 50000 data_source_reference = { kind = "image" uuid = data.nutanix_image.image.id } } disk_list { disk_size_mib = 10000 device_properties { device_type = "DISK" disk_address = { "adapter_type" = "SCSI" "device_index" = "1" # /dev/sdb } } } nic_list { subnet_uuid = data.nutanix_subnet.subnet.id } nic_list { subnet_uuid = data.nutanix_subnet.subnet2.id } num_vcpus_per_socket = "4" num_sockets = "1" memory_size_mib = "8192" lifecycle { ignore_changes = [ guest_customization_cloud_init_user_data, cluster_uuid, disk_list["data_source_reference"] ] } }
See attached file tf.log
Add the new NIC
Crash
Deploy VM with only one nic_list then add the second one and apply it again
nic_list
terraform apply
N/A
N/A
The text was updated successfully, but these errors were encountered:
Note : I tried terraform 1.6.4 and behaviour is the same.
Sorry, something went wrong.
No branches or pull requests
I created a VM with TF. This VM got a unique NIC on
Primary
network. Then I added a NIC in the TF file. It failed during apply.Nutanix Cluster Information
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
See attached file
tf.log
Expected Behavior
Add the new NIC
Actual Behavior
Crash
Steps to Reproduce
Deploy VM with only one
nic_list
then add the second one and apply it againterraform apply
Important Factors
N/A
References
N/A
The text was updated successfully, but these errors were encountered: