Bug 1071687 - External users unable to live migrate disks to new storage domain
Summary: External users unable to live migrate disks to new storage domain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 3.4.1
Assignee: Daniel Erez
QA Contact: Pavel Stehlik
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-02 21:35 UTC by Maurice James
Modified: 2023-09-14 02:04 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-08 13:38:20 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 27169 0 ovirt-engine-3.4 MERGED core: LiveMigrateVmDisksCommand - disk id for perm subject Never
oVirt gerrit 27170 0 master MERGED core: LiveMigrateVmDisksCommand - disk id for perm subject Never

Description Maurice James 2014-03-02 21:35:41 UTC
Description of problem:
LDAP users or groups with the Power User and Super User permissions are unable to migrate storage. Only admin@internal is able to live migrate disks. 

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

How reproducible:
100%

Steps to Reproduce:
1.Enable external authentication
2.Give specific users or groups the Super User and or Power user role over the data center
3. Attempt to live migrate storage to another storage domain

Actual results:
USER_NOT_AUTHORIZED_TO_PERFORM_ACTION

Expected results:
Disk should migrate to other storage domain

Additional info:

Comment 1 Oved Ourfali 2014-03-03 06:15:50 UTC
PowerUser shouldn't be able to do that.
However, SuperUser on the DC should, assuming that you move the disks to a storage domain in the same DC (iiuc you can't really do that to a different DC).

Comment 2 Maurice James 2014-03-03 12:37:53 UTC
(In reply to Oved Ourfali from comment #1)
> PowerUser shouldn't be able to do that.
> However, SuperUser on the DC should, assuming that you move the disks to a
> storage domain in the same DC (iiuc you can't really do that to a different
> DC).

Yes I'm moving disks between storage domains on the same DC. And like I said in the problem description the admin@internal user has no problems doing so

Comment 3 Allon Mureinik 2014-03-16 12:55:04 UTC
Daniel, please take a look?

Comment 4 Daniel Erez 2014-04-27 16:58:36 UTC
Hi Maurice,

- Can you please attach the relevant engine logs?

- For live migration, a disk should have "Edit Storage" action group (Under: Role -> Disk -> Provisioning Operations). Hence, 'SuperUser' should have sufficient permissions whereas PowerUser shouldn't.

Comment 5 Allon Mureinik 2014-04-28 00:08:16 UTC
(In reply to Daniel Erez from comment #4)
> - For live migration, a disk should have "Edit Storage" action group (Under:
> Role -> Disk -> Provisioning Operations). Hence, 'SuperUser' should have
> sufficient permissions whereas PowerUser shouldn't.

Daniel, AFAIK, these are the same permissions a cold move operation requires. If a Power User can't move a disk, this seems like a bug. 
What am I missing?

Comment 6 Daniel Erez 2014-04-28 06:11:46 UTC
(In reply to Allon Mureinik from comment #5)
> (In reply to Daniel Erez from comment #4)
> > - For live migration, a disk should have "Edit Storage" action group (Under:
> > Role -> Disk -> Provisioning Operations). Hence, 'SuperUser' should have
> > sufficient permissions whereas PowerUser shouldn't.
> 
> Daniel, AFAIK, these are the same permissions a cold move operation
> requires. If a Power User can't move a disk, this seems like a bug. 
> What am I missing?

We're currently not exposing the 'Move' button in the user portal at all,
hence it wasn't needed to add these permissions to a PowerUser.

Comment 7 Sandro Bonazzola 2014-05-08 13:38:20 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.

Comment 8 Red Hat Bugzilla 2023-09-14 02:04:23 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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