Red Hat Bugzilla – Bug 903287
When creating a network the default network doesn't get chosen.
Last modified: 2016-02-10 14:55:26 EST
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.
Steps to Reproduce:
1.create a vm.
2.add new nic
Combo list defaults to empty network
in case only one network is available (rhevm for example) the ui should default to it.
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
> 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
- 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.