nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
95 stars 111 forks source link

nutanix VM takes too long to launch using provider #629

Open abstractalchemist opened 1 year ago

abstractalchemist commented 1 year ago

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)

}

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
<!---
Please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
To obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).
--->
https://gist.github.com/abstractalchemist/e09649380abf8faa715db1f7dae8ebc3
### Panic Output
<!--- If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`. --->
### 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
<!--- Please list the steps required to reproduce the issue. --->
1. `terraform apply`
### Important Factors
<!--- Are there anything atypical about your accounts that we should know?
For example if you are using a Prism Element or Prism Central -- >
​
### References
<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor documentation? For example:
--->
* #0000 <!---Github Issue number --->
abhimutant commented 1 year ago

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.

abstractalchemist commented 1 year ago

Terraform regularly seems to take about 10 minutes, regardless. Is this expected behavior?