-
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
provider/vsphere: more reliable support for network interfaces #7760
Conversation
Checking on this? |
@pryorda how can we test this? |
@thetuxkeeper comments?? |
@chrislovecnm Add more then one nic to a vmware resource. If you want a module example I can provide one. |
IMO it's better to not rely on the order of the array. But since my approach hit some walls and I ran out of time, this simpler fix looks good.
|
@thetuxkeeper Do you want me to test those? Also anychanges to the network interface are destructive iirc. |
I think those test cases would be good to see if we can really rely on the order returned by govmomi/vmware and also see when some changes in the future breaks it. At least that were my thoughts when I tried to come up with the scenarios |
I tested your test cases.
Works Perfect. I tested up to 10 nics.
This forces destruction, so the order is correct after.
This forces destruction, so the order is correct after.
|
I have the same issue as well with Terraform v0.7.7. @thetuxkeeper @pryorda Any update on that issue? Let me know if you need testers. |
I merged this PR into my local master (9c3c5c1), then compiled a dev version and tried it but it didn't work: Panic:
I guess https://github.com/hashicorp/terraform/pull/7760/files#diff-9de67d85a10a7cfacde989a1e65c4089R1051 is trying to write in a non-existing index of Merge procedure:
Git reference:
Compile procedure:
|
@mitchellh Do you think we can get this merged in? |
This issue exists in v0.7.0-v0.8.4. |
Would love to see this accepted. Is the holdup the lack of a fix on the vmware/govmomi side? |
@pryorda the built in providers have been moved out of master. You will need to remake these changes over on https://github.com/terraform-providers/terraform-provider-vsphere |
Hello @pryorda, and thanks for working on this! As part of the the Terraform 0.10 release earlier this year, all of the Terraform providers were moved to their own repositories in the terraform-providers GitHub organization, and removed from the Terraform Core repository. Unfortunately due to the fact that new issues and pull requests are being opened constantly, it was not possible for the various provider maintainers to merge all outstanding pull requests before this split, and there is no automatic way to migrate a pull request to a new repository. As a result, this pull request can sadly no longer be applied as-is, and so I'm going to close it. The vSphere provider is currently in the process of being revamped somewhat, with the goal of supporting more of the available features. Some improvements to network interfaces were made relatively recently, so unfortunately this means that to re-target this change to the new repository may require some restructuring if the feature was not already implemented as part of the revamp 😖. Thanks again for working on this, and sorry it was not able to be merged before the provider repository changes. |
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. |
This is to fix the issue with #7673 and #7154. Right now vmware's sdk / govmomi return the nics in reverse order.