Bug 1664540
| Summary: | UserRole cannot Change CD on VM Portal | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> | ||||
| Component: | ovirt-engine | Assignee: | Scott Dickerson <sdickers> | ||||
| Status: | CLOSED ERRATA | QA Contact: | samuel macko <smacko> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.2.7 | CC: | emarcus, gshereme, gveitmic, lwright, mtessun, pmatyas, Rhev-m-bugs, sdickers | ||||
| Target Milestone: | ovirt-4.3.1 | Flags: | lsvaty:
testing_plan_complete-
|
||||
| Target Release: | 4.3.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
A user with a UserRole or a role with a Change CD permit can now change CDs on running VMs in the VM Portal
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-05-08 12:39:09 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | UX | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Germano Veit Michel
2019-01-09 05:29:05 UTC
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:
[Found non-acked flags: '{'rhevm-4.3-ga': '?'}', ]
For more info please contact: rhv-devops: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:
[Found non-acked flags: '{'rhevm-4.3-ga': '?'}', ]
For more info please contact: rhv-devops
User with UserRole or role with permit 'Change CD' on the running VM can't still change CD. See attachment. engine log contains: 2019-01-29 09:31:08,832+01 ERROR [org.ovirt.engine.core.bll.GetPermissionsForObjectQuery] (default task-58) [4e1a663a-ef9e-4a21-999c-139989bb53ef] Query execution failed due to insufficient permissions. 2019-01-29 09:31:08,834+01 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-58) [] Operation Failed: query execution failed due to insufficient permissions. when going to VM detail. browser console shows "permits":["edit_profile","login","change_vm_cd"] in UPDATE_VMS tested in ovirt-web-ui-1.5.0-1.el7ev.noarch with ovirt-engine-4.3.0-0.8.rc2.el7.noarch Created attachment 1524486 [details]
VM detail
Here is a link to the design document that features a couple different design options. I'm partial to the third option in the doc. https://docs.google.com/document/d/1bDfsIf9UPuEJyxwTmoPs4iAZ6bQ2kd-Kv6TbHCeisxk/edit?usp=sharing Update the Details card so "normal" users can edit the CD. I needed to update the "editVm" saga as well to support only changing the current CD. All other change CD operations requires edit VM permissions. PR: https://github.com/oVirt/ovirt-web-ui/pull/952 INFO: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [No relevant external trackers attached] For more info please contact: rhv-devops Verified on ovirt-engine-4.3.1.1-0.1.el7.noarch. Verified by following the reproducer. 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. https://access.redhat.com/errata/RHEA-2019:1085 sync2jira sync2jira |