-
Notifications
You must be signed in to change notification settings - Fork 114
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
Hardcoded timeout causes VM build to fail #250
Comments
There is a wait_timeout parameter in the provider. Could you use that parameter in your TF code and see if that accomplished what you need? An example is below. provider "nutanix" { |
Thanks, I'll give it a try and report back. I assume Is there any documentation to what the default value is, and why this was suddenly enforced with We did try to use a Lastly, what's the rationale for having the timeout so low? It probably works in the use case of creating a new VM without using any provisioners, but as soon as you add provisioners to the VM (for example, to kick off configuration management tools such as Ansible or Puppet), it can easily take longer than 1 minute. |
Can confirm setting |
Nutanix Cluster Information
Please provide the version of:
Terraform Version
0.14.4
Affected Resource(s)
Expected Behavior
VM built after running remote-execs, which can take over 1 minute
Actual Behavior
Steps to Reproduce
Build VM on 1.2.0 which takes longer than 1 minute to build
This bug is cause by the following hard-coded timeouts with the nutanix_virtual_machine resource:https://github.com/nutanix/terraform-provider-nutanix/blob/master/nutanix/resource_nutanix_virtual_machine.go#L21-L27https://github.com/nutanix/terraform-provider-nutanix/blob/master/nutanix/resource_nutanix_virtual_machine.go#L884-L895Edit 2020-02-05: Not caused by the above code
This causes a VM to fail its build if it continues for longer than 1 minute.
There is no way to override this timeoutTimeout can be overridden usingwait_timeout
in the provider block. However, this sets the timeout globally for the provider on all resources and all actions, and doesn't use Hashicorp's documented method allowing a timeout block for individual resources.The pull request which caused this issue is: #101The text was updated successfully, but these errors were encountered: