Bug 914667 - [RHSC] Volume creation with name 'volume' fails with 'Unexpected exception'
Summary: [RHSC] Volume creation with name 'volume' fails with 'Unexpected exception'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.1
Hardware: All
OS: All
low
medium
Target Milestone: ---
: RHGS 2.1.2
Assignee: Sahina Bose
QA Contact: Shruti Sampat
URL:
Whiteboard: https://engineering.redhat.com/trac/r...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-22 13:13 UTC by Shruti Sampat
Modified: 2015-05-15 18:20 UTC (History)
11 users (show)

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.
Clone Of:
Environment:
Last Closed: 2014-02-25 07:24:20 UTC
Embargoed:


Attachments (Terms of Use)
screenshot (103.45 KB, image/png)
2013-02-22 13:13 UTC, Shruti Sampat
no flags Details
engine logs (138.65 KB, text/x-log)
2013-03-01 11:09 UTC, Shruti Sampat
no flags Details
vdsm logs from server 1 (21.75 KB, text/x-log)
2013-03-01 11:09 UTC, Shruti Sampat
no flags Details
vdsm logs from server 2 (37.45 KB, text/x-log)
2013-03-01 11:10 UTC, Shruti Sampat
no flags Details


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 12709 0 None None None Never

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


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