Created attachment 1097808 [details] stack_trace.txt Description of problem: Certain permissions settings lead to NoSuchElementException while opening New VM dialog. Version-Release number of selected component (if applicable): 4.0 master, commit 47337ae How reproducible: only right after signing into UserPortal Steps to Reproduce: 1. In webadmin: create vm with disk 2. Create template of that vm 3. Add new user grant him (only) following permissions * VmCreator for template created in step 2 * VmCreator for some Cluster that is in DC that is in state 'UP' 4. In UserPortal extended: log as newly created user 5. Open New VM dialog Actual results: Exception is thrown to browser console, pink popup in UI. Expected results: New VM dialog is open and/or user is notified that permissions are insufficient/set in a wrong way.
Note: The bug disappears when Storage domain is granted VmCreator permission for the new user.
Moving from 4.0 alpha to 4.0 beta since 4.0 alpha has been already released and bug is not ON_QA.
oVirt 4.0 beta has been released, moving to RC milestone.
In Comment 0 step to reproduce 3 should state: "Add new user grant him (only) following *additional* permissions:"
Verified with the following code: -------------------------------------------------------- ovirt-engine-4.1.1.3-0.1.el7.noarc rhevm-4.1.1.3-0.1.el7.noarch vdsm-4.19.7-1.el7ev.x86_64 Verified with the following scenario: -------------------------------------------------------- Steps to Reproduce: 1. In webadmin: create vm with disk 2. Create template of that vm 3. Add new user grant him (only) following permissions * VmCreator for template created in step 2 * VmCreator for some Cluster that is in DC that is in state 'UP' 4. In UserPortal extended: log as newly created user 5. Open New VM dialog Actual results: Exception is thrown to browser console, pink popup in UI. Moving to VERIFIED!
Verified with the following code: -------------------------------------------------------- ovirt-engine-4.1.1.3-0.1.el7.noarc rhevm-4.1.1.3-0.1.el7.noarch vdsm-4.19.7-1.el7ev.x86_64 Verified with the following scenario: -------------------------------------------------------- Steps to Reproduce: 1. In webadmin: create vm with disk 2. Create template of that vm 3. Add new user grant him (only) following permissions * VmCreator for template created in step 2 * VmCreator for some Cluster that is in DC that is in state 'UP' 4. In UserPortal extended: log as newly created user 5. Open New VM dialog Actual results: No Exceptions are thrown Moving to VERIFIED!