-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Please include folders in search for network_interface labels in vsphere_virtual_machine provider #5843
Comments
@xantheran this is a duplicate issue, just asked for advice on how to handle this from a couple of gurus. Please comment on: #5607 |
@xantheran actually you opened this issue first :) I just run into the other one first ... lol. Appreciate you submitting the issue. Are you able to assist? Also if you change the network to just |
Yep. commented on issue #5607 and would be happy to assist. |
@chrislovecnm I think the wildcard searching is not causing this particular issue. The issue is happening when terraform uses govmomi api to read the resource information once it is created.
I think For a sample network resource creation,
Terraform creates the VM network under the right network adapter Not completely sure about this, but when it tries to save the resource info into state file, the function I have run some basic tests by overriding the line 991 with
The state file then saves the entire path of network label The problem doesnt lie in the terraform code. @xantheran Can you please test the above changes and let me know if it works as expected. I feel obligated to mention here that this is not a fix but a way to see where the problem lies 😅 |
when |
@git4sroy force new resource means create new, because we do not have an update, it creates new |
is anyone still looking into this issue? |
I was able to work around this with ignore_changes in my vsphere_virtual_machine resource. Would still be nice if this were fixed though.
|
Does anyone know the status of this issue? Seems to still affect 0.9.6. |
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. |
I have been running into an issue with the vsphere_virtual_machine provider. My networks are in a folder off of root so I need to included the folder with the label field under network_interface.
The VM gets provisioned just fine, however the folder not taken into account when returning the label for the network_interface. This results in the error below if I taint the resource
If I leave the folder in the label field terraform forces a new resource since it detects a change in the rendered plan
The text was updated successfully, but these errors were encountered: