Bug 1015478 - [RHSC] A user with permissions to manipulate volumes cannot delete a volume
Summary: [RHSC] A user with permissions to manipulate volumes cannot delete a volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Darshan
QA Contact: Shruti Sampat
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-04 11:07 UTC by Shruti Sampat
Modified: 2015-05-13 16:26 UTC (History)
9 users (show)

Fixed In Version: CB6
Doc Type: Bug Fix
Doc Text:
Previously, users with volume manipulate permission were unable to delete a volume. Now, with this update, a checkbox is added for delete permission under Volume category to provide the volume deletion permission.
Clone Of:
Environment:
Last Closed: 2014-02-25 07:50:23 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC
oVirt gerrit 20290 0 None None None Never

Description Shruti Sampat 2013-10-04 11:07:56 UTC
Description of problem:
-----------------------
When a user of RHSC is assigned with permissions to manipulate volumes tries to delete a volume, the user is not allowed to do so. The action fails with an error that the user is not authorized to perform this action.

"Error while executing action: User is not authorized to perform this action."

Version-Release number of selected component (if applicable):
Red Hat Storage Console Version: 2.1.1-0.0.2.master.el6ev 

How reproducible:
Always

Steps to Reproduce:
1. Create a role with permissions to create and manipulate volumes.
2. Assign this role to a user.
3. Login as that user, create a volume and try to delete it.

Actual results:
User is not allowed to remove the volume.

Expected results:
User should be allowed to delete the volume as removing a volume is part of manipulation.

Additional info:

Comment 2 Darshan 2013-10-31 04:54:08 UTC
Now a separate check-box has been added for delete permission. If a user wants to delete a volume he must be given this permission.

Comment 3 Shruti Sampat 2013-11-07 11:43:18 UTC
Verified as fixed in Red Hat Storage Console Version: 2.1.2-0.22.master.el6_4. A checkbox is seen with the delete volume permission under 'Configure Volumes'. When a user is provided this permission, the user can delete a volume.

Comment 4 Shalaka 2014-01-03 11:10:31 UTC
Please review the edited DocText and signoff.

Comment 5 Darshan 2014-01-03 12:06:12 UTC
(In reply to Shalaka from comment #4)
> Please review the edited DocText and signoff.

It would be better to remove "all permission", as user with all permission will have manipulate permission also. So it would be more apt to have doc_text as follows: 

Previously, users with volume manipulate permission were unable to delete a volume. Now, with this update, a check-box is added for delete permission under Volume category to provide the volume deletion permission.

Comment 7 errata-xmlrpc 2014-02-25 07:50:23 UTC
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.

http://rhn.redhat.com/errata/RHEA-2014-0208.html


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