Bug 1393933 - RFE: Power user should be able to create snapshots in userportal
Summary: RFE: Power user should be able to create snapshots in userportal
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.0.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: ---
Assignee: Michal Skrivanek
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 16:28 UTC by Petr Matyáš
Modified: 2019-04-28 09:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-05 11:26:40 UTC
oVirt Team: UX
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine log (331.85 KB, text/plain)
2016-11-10 16:28 UTC, Petr Matyáš
no flags Details

Description Petr Matyáš 2016-11-10 16:28:12 UTC
Created attachment 1219458 [details]
engine log

Description of problem:
I have a user that has power user persmissions to whole system and he is unable to perform any operations with snapshots on any VM.

Version-Release number of selected component (if applicable):
4.0.5-6

How reproducible:
always

Steps to Reproduce:
1. create a user with power user permission to system
2. log in with this user to userportal - extended tab
3. try to create/preview/delete a snapshot

Actual results:
insufficient permissions

Expected results:
can perform any action with snapshots on VMs the user has rights to

Additional info:
2016-11-10 15:11:13,227 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-30) [318a2699] Correlation ID: 318a2699, Call
Stack: null, Custom Event ID: -1, Message: User/Group tester, Namespace *, Authorization provider: internal-authz was granted permission for Role PowerUserRole on VM asdfjklhasef,
 by admin@internal-authz.
2016-11-10 15:11:23,749 INFO  [org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand] (default task-11) [21d4b138] No permission found for user '136de501-3f2c-490e-8
24c-1844011fa1eb' or one of the groups he is member of, when running action 'CreateAllSnapshotsFromVm', Required permissions are: Action type: 'USER' Action group: 'MANIPULATE_VM_
SNAPSHOTS' Object type: 'VM'  Object ID: '640f453b-3388-47a7-8e60-904a1bb62e17'.
2016-11-10 15:11:23,749 WARN  [org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand] (default task-11) [21d4b138] Validation of action 'CreateAllSnapshotsFromVm' fa
iled for user tester@internal-authz. Reasons: VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION

Comment 1 Tomas Jelinek 2016-11-14 15:33:40 UTC
That is because the MANIPULATE_VM_SNAPSHOTS is not part of the Power User Role.
I don't think it ever was.
@Petr: from documentation it is not really clear what it should do. If you still think MANIPULATE_VM_SNAPSHOTS should be part of Power User Role, please change this BZ to be an RFE.

Comment 2 Greg Sheremeta 2019-02-05 11:26:40 UTC
Implemented in oVirt 4.3.0


Note You need to log in before you can comment on or make changes to this bug.