terraform-provider-nutanix
terraform-provider-nutanix copied to clipboard
nutanix VM takes too long to launch using provider
Nutanix Cluster Information
Prism Element / AOS: 6.5.3.1 LTS
Terraform Version
Terraform v1.5.4 on windows_amd64 nutanix provider 1.9.0
Affected Resource(s)
- nutanix_XXXXX
- nutanix_virtual_machine
Terraform Configuration Files
resource "nutanix_virtual_machine" "master" {
name = "svision-master"
cluster_uuid = data.nutanix_cluster.cluster.id
disk_list {
data_source_reference = {
kind = "image"
uuid = data.nutanix_image.svision-image.id
}
}
nic_list {
subnet_uuid = data.nutanix_subnet.subnet.id
}
num_vcpus_per_socket = 1
num_sockets = 8
memory_size_mib = 16384
guest_customization_cloud_init_user_data = base64encode(templatefile("${path.module}/master_data.tftpl", {
key_path = "./cluster_key.pub"
}))
}
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.
Debug Output
https://gist.github.com/abstractalchemist/e09649380abf8faa715db1f7dae8ebc3
Panic Output
Expected Behavior
Terraform should complete within a couple of minutes
Actual Behavior
PRISM Web interface seems to show the virtual machine up, but terraform continues to poll the Nutanix API interface
Steps to Reproduce
-
terraform apply
Important Factors
- #0000 <!---Github Issue number --->
Hi, Terraform polls for the virtual machine to get an IP. In Prism UI, It's shows virtual machine but IP will not assign immediately.
Terraform regularly seems to take about 10 minutes, regardless. Is this expected behavior?