Description of problem: Attempt to add VM network interface from User Portal could not complete since the 'OK' button is greyed out. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Login to User Portal 2. Add VM network interface Actual results: The 'OK' button is greyed out. Expected results: 'Add VM interface' dialog should be loaded properly. Additional info: Bug caused due to NPE within NewVmInterfaceModel.initSelectedNetwork() due to null value for ENGINE_NETWORK_NAME which is retrieved as null from the cache.
The bug is caused by the fix of https://bugzilla.redhat.com/903287. The fix was that management network should be the default if it is part of the network list. To determine whether the network is management a configuration value is used. The configuration value can't be accessed from user role. The proposed solution- If the configuration value of the management network can't be accessed the default network will be the first one in the list (no matter if it is the management or not).
Verified on rhevm-3.2.0-9.el6ev.noarch
3.2 has been released