https://github.com/ManageIQ/manageiq-providers-vmware/pull/223
Assigning to adam to get credit for the PR. :)
New commit detected on ManageIQ/manageiq-providers-vmware/master: https://github.com/ManageIQ/manageiq-providers-vmware/commit/282f0c05c53b9a00321227a1a91e42247074cf6e commit 282f0c05c53b9a00321227a1a91e42247074cf6e Author: Adam Grare <agrare> AuthorDate: Thu Mar 29 12:07:29 2018 -0400 Commit: Adam Grare <agrare> CommitDate: Thu Mar 29 12:07:29 2018 -0400 Sort unitNumber as an integer not a string The get_network_adapters method was sorting NICs by their unitNumber as an integer. This was causing '10' to be sorted before '7', '8', and '9'. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1562089 app/models/manageiq/providers/vmware/infra_manager/provision/configuration/network.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Issue re-cap - The VMware unitNumber value was being sorted assuming it was an integer but was actually a string. Once the unitNumber went above 9 the sort order was wrong. unitNumbers were: 7, 8, 9, 10, 11 and were sorted as: "10", "11", "7", "8", "9"
You should be able to find "Config spec:" in evm.log which will dump the config spec structure we send to VMware to help confirm the ordering.
On 5.10.0.20 I was able to attach the NICs in the order that I wanted.