Description of problem: The order on NICs in the Network Interfaces window is randomly picked and changes every time you open this subtab. The same issue we have in the setupNetwork window with NICs and bonds How reproducible: Always Steps to Reproduce: 1. Open Network Interfaces tab to see the order of the NICs 2. Move to different tab/subtab and return to the Network Interfaces tab 3. Open setupNetworks, create bond and check the order of the NICs 4. Reopen setupNetworks Actual results: The order of the Nics/Bonds is random Expected results: There should be always the same order and it should start with eth0 till ethn, for the bond it should start with bond0 till bond5 Additional info:
Alona, please take a look if the sorting should be done on the backend side and can benefit other usages of the queries (in the API for example).
(In reply to comment #0) > Expected results: > There should be always the same order and it should start with eth0 till > ethn, for the bond it should start with bond0 till bond5 in newer OSs you'll find different interface naming conventions. The sorting should be according to the following : - Sort by type (ATM NIC and Bond) Then withing type - Sort by alphabetical order Then within interfaces with same conventions but ending in number -sort by the number at the end The reason for the third is that if you just sort by alphabetical you often get eth1 eth11 eth12 eth2 eth3 Which is not what we want to have.
Couldn't reproduce second half of the bug - the order of the interfaces in the setup networks window didn't look random at all to me. Could you elaborate?
If the decision is to put bonds before the interfaces then the second half is working as expected
Verified in rhevm-3.2.0-10.14.beta1.el6ev.noarch
3.2 has been released