-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
vSphere VM is always partially tainted (missing network interface in local state) #6174
Comments
@benlangfeld this may be related to #4283 ... Which is needs more testing. Let me know if you want to test a branch that I have. What is going on with the logs on the vm and the logs / messages in vSphere?? |
This may be fixed by #6293 - any chance you can take master for a test drive?? |
@chrislovecnm Will test this now. |
Unfortunately the problem persists on master: https://gist.github.com/benlangfeld/83507859a54f39487ba9b4b945d4be23 |
@benlangfeld we may need to move that |
Absolutely. My familiarity with Go is superficial, but the main problem is not knowing what the expected behaviour of the vSphere API is in this case. |
@benlangfeld we need the provider to wait for the nic(s) to get ip addresses. We have been informed that a code block like this would force the wait. I think the code block may be to be moved up in the code base, but I have not had a chance to test. I would move the code block to here. @markpeek and @frapposelli this is another high priority issue. Any ideas? |
@chrislovecnm Unfortunately that doesn't actually make any difference:
The problem is that |
Let's ping a couple of the guys who code the API 😄 govmomi folks. Let me know if we need to log an issue. We have chatted with @pietern in the past about this, and were recommended to use We need to have the provider wait till Any ideas on debugging this? Any recommendations? |
@benlangfeld yah I don't completely understand how the query: works either. That is where |
@chrislovecnm I believe what we need to do is poll the |
@benlangfeld we would need to poll |
@benlangfeld digging around I think we need to do a |
I thinking that I would try a BTW I do not have a test bed right now. Otherwise I would be testing as well ... DOH Which modules test suites are you referring to?? TF? |
|
@benlangfeld you want to take the testing discussion offline? clove at cnmconsulting dot net ... It is a google account, so hangouts work, or email. We need a slack account for this darn provider 😄 It took me a bit to get my head around them as well. BTW:
BTW - stepping away for a bit ... FOOD |
Sounds like you're looking for something like this: vmware/govmomi#501 ? |
LOL - just writing a ticket - thanks @dougm ... @benlangfeld can you test this? |
@chrislovecnm Will do as soon as I can, which will probably be late this week or next week. |
I fixed this by adding in a loop that waits until the network information is returning properly from the API. It's up on a rough PR that just shows what I did to get unblocked today. You can see the code in #6547. |
@thetuxkeeper where the hell is that wait for all ips call ... I am at the airport and don't have time to dig for it... @knuckolls documented in one of these darn issues that we have open is an API call to wait for all of the ips. |
@chrislovecnm : That's the function ( |
@chrislovecnm I believe this should be fixed now that #6377 has been merged? I will test ASAP. |
@benlangfeld you the man!!! Let us know how it goes ;) |
@chrislovecnm This works great for me. Thank you to everyone involved, particularly @thetuxkeeper and @dougm. I'll be holding my breath until this makes it into a release. |
@benlangfeld woot!! |
Hi there! I'm having this exact same issue with Terraform v0.10.2 and v0.10.7 Terraform Configuration Files
The Here are the logs. If I do
If I add I'm trying to create a CoreOS machine. Any idea on whats going on? |
I am having the same problem as @amarruedo except that i'm trying to create a windows machine. |
I found out that for CoreOS Linux, I have to use Ignition Provider, and then pass to the vsphere virtual machine that ignition definition as a custom_configuration_parameters:
Viewing the code of tectonic-installer was helpful to understand this. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Terraform v0.6.14
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/benlangfeld/ee8af09e52820d8b8aa4580102c4b229
Panic Output
N/A
Expected Behavior
Initial
apply
run should save complete resource state.Actual Behavior
Initial
apply
run saved state with zero network interfaces. Laterplan
run refreshed state to include interfaces. A delay between the two is required; even afterapply
terminates, an immediateplan
run will not correctly refresh state, will see a diff in network interfaces, and will attempt to rebuild the nodes.Steps to Reproduce
terraform apply
sleep 120
terraform plan
Important Factoids
Nothing I'm currently aware of.
References
None
The text was updated successfully, but these errors were encountered: