Red Hat Bugzilla – Bug 987957
[RFE] edit VM dialog - nics appear in random order (not sorted by name)
Last modified: 2015-03-31 04:30:41 EDT
Created attachment 777777 [details]
Description of problem:
edit VM dialog - nics appear in random order (not sorted by name)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.open edit VM dialog for more than one nic
2.nics appear in strange order
nics sorted alphabetically
After the review of this patch it seems that the nics are not in random order but sorted according to the mac addresses. The reason is to have them in the same order as on the host.
@Livnat: do you thing that it is ok to have the NICs ordered according to mac addresses on FE in edit VM dialog? Or should they be ordered according to NIC name?
Proposing this for 3.4.0.
> @Livnat: do you thing that it is ok to have the NICs ordered according to
> mac addresses on FE in edit VM dialog? Or should they be ordered according
> to NIC name?
That's a good question.
According to the MAC address the engine passes the vNICs to libvirt and the first NIC is the one used as the network bootable device (in case network is specified in the boot order parameter).
In addition for RHEL and fedora guests we suspected that the MAC address order also determines the order of the NICs within the guest.
All of the above are not good reasons for sorting the NICs by MAC.
So the last call on this is that for UI we want the NICs to be ordered by their name and the first one would also be the network bootable device (at least until a full boot order could be set by the user), when passing to libvirt the NICs would still be ordered by their MAC address.
see BZ 737564 for information about NIC ordering
pushing to target release 3.5, assuming its not planned for 3.4 at this point...
patch rejected -> NEW
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.
I confirm this issue still is relevant.
It is key in our automated provisionning setup.
Do I have to convert my claim into a RFE (never did that...)?
Adding that https://bugzilla.redhat.com/show_bug.cgi?id=1045022 is NOT fixed, actually.