-
Notifications
You must be signed in to change notification settings - Fork 452
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
Terraform crash during VM guest provisioning using Vsphere provider #846
Comments
Hi, It might not be an entirely Vsphere provider issue. I have attached the debug and crash log with along with main.tf. Requesting you to please look into the crash log and suggest the next step forward. |
Hi @Shyamashree2005! I tried reproducing the issue and I wasn't able to get the provider to crash. I have some questions that could point me to the right direction:
|
Hi @koikonom , Good Morning. Thanks for the response. The "debug.log" is already available as an attachment where you will find the output of terraform plan. I would upload the variable file separately. |
Hi, Variable files attached. |
Hi @Shyamashree2005, unfortunately I am still not able to reproduce the issue. From the stacktrace it seems like one of the responses we get when making a The only alternative would be to run |
I discussed this issue with a colleague and he gave me a very good idea. The same code that triggers the issue is also present in govmomi's examples (https://github.com/vmware/govmomi/blob/master/examples/networks/main.go#L43). Can you try building and running the networks test? |
Here is what I did: First I cloned govmomi, then I set the following env vars:
and then I went into the
Please give it a go and let me know what you see. |
Hi Koikonom, Thanks, that you spend time to investigate the issue. Do I need to install "go" separately for this to work. Also when I download the GOVMOMI is there anything else I need to setup. I am asking this because without the terraform.tfvars file how would it identify the network used on my deployment ? Also, I am bit worried as I need to run on this on production Vsphere setup. If any chance of having inadvertent issue ? As part of the deployment, what I can see is that the VM is getting cloned but it is in poweroff state without any IP configured which suggests it might be an issue with customization. Thanks. |
Hi Koikonom, If you please response, we can then progress with the next step. Thanks. |
Hi @Shyamashree2005, Yes you would need to install go and build govmomi before you're able to run the tests. You would have to set environment variables for all the inputs required, like I did in the example above. govmomi cannot read terraform variables. |
Hi koikonim, I am facing some issues with Go and govmomi. I will update you soon. Thanks again for the help. |
Hi @Shyamashree2005, we have just merged PR #840 that I believe will address this issue. It is planned for the next provider release, so keep an eye for the new version. |
Hi @sofixa I apologize for the delay, we're fixing some issues with our test pipeline and will work to get the release out soon after those are fixed. |
Great, thanks @aareet . |
@aareet do you have an estimation when that might be? |
1.14 is out and it's working great. |
Glad to hear it @sofixa 👍Thank you for the feedback. |
This issue was originally opened by @Shyamashree2005 as hashicorp/terraform#22836. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Additional Context
References
crash.log
debug.log
-->
The text was updated successfully, but these errors were encountered: