Bug 1015478

Summary: [RHSC] A user with permissions to manipulate volumes cannot delete a volume
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: Darshan <dnarayan>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: dnarayan, dpati, dtsang, knarra, mmahoney, pprakash, rhs-bugs, sdharane, sharne
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 07:50:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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