Bug 914667

Summary: [RHSC] Volume creation with name 'volume' fails with 'Unexpected exception'
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: medium Docs Contact:
Priority: low    
Version: 2.1CC: dpati, dtsang, grajaiya, knarra, mmahoney, pprakash, rhs-bugs, sabose, sdharane, sharne, shtripat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: All   
OS: All   
Whiteboard: https://engineering.redhat.com/trac/rhs-tests/ticket/911
Fixed In Version: cb14 Doc Type: Bug Fix
Doc Text:
Previously, when creating volumes with restricted names, correct error message was not displayed from the gluster CLI. Now, appropriate error message is displayed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 07:24:20 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:
Attachments:
Description Flags
screenshot
none
engine logs
none
vdsm logs from server 1
none
vdsm logs from server 2 none

Description Shruti Sampat 2013-02-22 13:13:06 UTC
Created attachment 701188 [details]
screenshot

Description of problem:
---------------------------------------
When trying to create a volume with name 'volume' from the UI, the action fails with the following error message - 
"Error while executing action Create Gluster Volume: Unexpected exception"

Volume creation with the name 'volume' is not permitted from gluster CLI - 

[root@localhost yum.repos.d]# gluster volume create volume 10.70.35.109:/opt/gluster/b1
"volume" cannot be the name of a volume.
Usage: volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [device vg] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ...

The UI should tell the user in a similar way that naming a volume as 'volume' is not permitted.

Version-Release number of selected component (if applicable):
Red Hat Storage Console Version: 2.1.0-0.qa6.el6rhs 

How reproducible:
always

Steps to Reproduce:
1. Create a volume from the UI with the name 'volume'
  
Actual results:
the above described error message is seen.

Expected results:
The UI should tell the user that the name is not permitted.

Additional info:
Find screenshot attached.

Comment 2 Shireesh 2013-03-01 07:15:13 UTC
engien and vdsm logs please

Comment 3 Shruti Sampat 2013-03-01 11:09:39 UTC
Created attachment 704134 [details]
engine logs

Comment 4 Shruti Sampat 2013-03-01 11:09:56 UTC
Created attachment 704135 [details]
vdsm logs from server 1

Comment 5 Shruti Sampat 2013-03-01 11:10:22 UTC
Created attachment 704136 [details]
vdsm logs from server 2

Comment 6 Dustin Tsang 2013-03-08 18:40:22 UTC
verified in 2.1.0-0.qa7.el6rhs

Comment 7 Shruti Sampat 2013-04-24 10:38:44 UTC
Re-opening this bug as the error message now says - 

Error while executing action Create Gluster Volume: Internal Engine Error

The Console should convey to the user that 'volume' is not a permitted volume name, similar to the way gluster does.

Comment 8 Shalaka 2013-12-26 10:19:29 UTC
As this bug has been identified as known issue, please add the DocText.

Comment 9 Sahina Bose 2014-01-03 05:49:34 UTC
While looking at updating doc text, noticed that this bug has been fixed.
It now returns error message like this:
Error while executing action Create Gluster Volume: Command execution failed
error: "volume" cannot be the name of a volume_
Usage: volume create [stripe ] [replica ] [device vg] [transport ] ___ [force]
return code: 1

Moving to ON_QA

Comment 10 Gowrishankar Rajaiyan 2014-01-03 09:09:38 UTC
(In reply to Sahina Bose from comment #9)
> While looking at updating doc text, noticed that this bug has been fixed.

Please set the appropriate flags, whiteboard and keywords.

Comment 11 Shruti Sampat 2014-01-03 19:09:30 UTC
Tested with Red Hat Storage Console Version: 2.1.2-0.32.el6rhs 

The following message is seen when 'volume' is used as the name of a volume.

Error while executing action Create Gluster Volume: Command execution failed
error: "volume" cannot be the name of a volume_
Usage: volume create [stripe ] [replica ] [device vg] [transport ] ___ [force]
return code: 1

The UI now conveys to the user that volume cannot be the name of a volume. But the gluster CLI usage information and return code is not of use to a user of RHSC and should not be displayed. Logged BZ#1048096 for this.

Marking this as VERIFIED.

Comment 12 Shalaka 2014-01-27 10:43:21 UTC
Please review the edited DocText and signoff.

Comment 13 Sahina Bose 2014-01-30 07:14:53 UTC
Doctext ok

Comment 15 errata-xmlrpc 2014-02-25 07:24:20 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