-
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: network interface order changes #6520
Comments
i understand that this is a design issue, my question is how is it a problem? What is it breaking, how is it impacting us? |
TF would change/redeploy the affected VMs each time you trigger an |
What about ignoring the order and keying on mac addresses? Does the interface have a vmware guid? Sounds like we need some api level advice as well.
In TF or in
This is something we need to get fixed or worked around better. Running a second apply will not fly. |
@thetuxkeeper as you brought up we should move to using https://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.vm.device.VirtualDevice.html#key to identify, but I am wondering if we still need 0,1,2 type keys as well. Specifically other projects like mantl need a list of devices. Can we do this non-breaking?? |
If not I can get the mantl code changed, and I don't think we need to worry about too many people integrating at this point. We need TF vsphere to run off of the keys, and not 'order'. This apples to all objects disks, CD-ROM, etc. |
@chrislovecnm : Thanks for confirming this. |
@thetuxkeeper we need to engage the |
@chrislovecnm : I think we need to know how we can identify a device after creating the VM.
|
@chrislovecnm : Found some hints in govc code:
I'll try to implement something as starting point. There still the question how we get the ID/Name matched to the interfaces in the config. |
Implementation PR: #7154 |
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. |
Config:
Results in (removed ipv6 parts):
As you can see, interface
0
in the config becomes interface1
in vmware (confirmed over webinterface of vsphere API `<vsphere-server/mob/?moid=vm-&doPath=guest.net)Perhaps a different approach for the index of the interfaces would be good (perhaps
deviceConfigId
?)?The text was updated successfully, but these errors were encountered: