vNIC ordering inside VM

Asked by Neb Miljanovic

Using Folsom with Quantum Linux Bridge. When I launch VMs using nova boot command, I expect VMs to be created with eth0-eth3 in order of --nic argument provided in the command line. For example:

nova boot --image cdf63c19-4c75-481c-a86e-018384c313be --flavor 12345 --nic net-id=c4c5183a-d6a8-4555-a328-b2bb74fd2f82 --nic net-id=19ff69df-f62b-4375-92d3-eddf5f6ce983 --nic net-id=e7182f99-e4b8-4e06-9e04-bec5dad8347c --meta "host"="sd-1-a" --meta "myfixedip"="192.168.1.3" my_multi_nic_vm

However, when VM gets launched, it appears that vNICs are ordered based on port id as visible with quantum port-list command.

Is there a way to control vNIC order inside VM?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
dan wendlandt
Solved:
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1
Revision history for this message
Neb Miljanovic (neb-c) said :
#2

Thanks for the reply. But your link appears to be related to logging only. I can't find anything related to vNIC ordering in there.

Revision history for this message
Best dan wendlandt (danwent) said :
#3

this is a bug and is already filed with a fix under review: https://bugs.launchpad.net/nova/+bug/1064524

Revision history for this message
Neb Miljanovic (neb-c) said :
#4

Thanks dan wendlandt, that solved my question.