Description of problem: When creating a new nic for a vm instead of chosing the "rhevm" network by default the combo list defaults to an empty network entry. How reproducible: always Steps to Reproduce: 1.create a vm. 2.add new nic 3. Actual results: Combo list defaults to empty network Expected results: in case only one network is available (rhevm for example) the ui should default to it. Additional info:
please note the rhevm network isn't the "default" one. it may not be a vm network user may have no permissions for it. it make sense to choose the first network the user has permissin to. (also makes sense to keep their last choice per cluster in a cookie probably)
If the vm's cluster compatibility version is 3.2, empty network is a valid choice. There is no special logic for choosing the default network. The first one in the list is the default. In case "empty" network is permitted it is the first in the network list, therefore it is the default. Do you think there should be a special logic for choosing the default network?
(In reply to comment #5) > If the vm's cluster compatibility version is 3.2, empty network is a valid > choice. > > There is no special logic for choosing the default network. The first one in > the list is the default. In case "empty" network is permitted it is the > first in the network list, therefore it is the default. > > Do you think there should be a special logic for choosing the default > network? - For sake of backwards compatibility (and the AllInOne) we'll need to keep rhevm if it's defined as VM network. - If there is only one VM network, then show only that - If there is more then one, then I would consider to leave the default maybe with a tooltip saying select a network or leave as is to remain detached.
In the last bug scrubbing meeting the agreement was to sort the list as following: 1. If the management network (rhevm) is VM network is first on the list 2. Sort the rest alphabetically. 3. Default network is always the last.
(In reply to comment #7) Clarification of the comment (Got ack from Simon)- 1. The networks list is sorted alphabetically. 2. If the management network is in the list- it should be the default. Otherwise, the first network in the list will be the default. 3. Empty network is always the last.
Verified on rhevm-3.2.0-8.el6ev.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0888.html