Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1224046 - [Backup]: Misleading error message when glusterfind delete is given with non-existent volume
[Backup]: Misleading error message when glusterfind delete is given with non-...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfind (Show other bugs)
3.1
Unspecified Unspecified
medium Severity unspecified
: ---
: RHGS 3.1.0
Assigned To: Milind Changire
Sweta Anandpara
:
Depends On:
Blocks: 1202842 1223636 1224043
  Show dependency treegraph
 
Reported: 2015-05-22 01:47 EDT by Sweta Anandpara
Modified: 2016-09-17 11:19 EDT (History)
6 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1225424 (view as bug list)
Environment:
Last Closed: 2015-07-29 00:45:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Sweta Anandpara 2015-05-22 01:47:37 EDT
Description of problem:
When an incorrect session name is given, it displays that the session name is invalid, or session not found. Similarly, it should give a related error message when an incorrect volume name is given.

Version-Release number of selected component (if applicable):
glusterfs-3.7.0-2.el6rhs.x86_64

How reproducible: Always

Additional info:

root@dhcp43-140 ~]# glusterfind delete 
usage: glusterfind delete [-h] [--debug] session volume
glusterfind delete: error: too few arguments
[root@dhcp43-140 ~]# glusterfind delete sess vol11
Failed to parse Volume Info: 'NoneType' object has no attribute 'findall'
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sess                      vol1                      2015-05-19 15:30:19      
[root@dhcp43-140 ~]# 

Expected: Glusterfind session 'sess' with 'vol11' not found
Comment 2 Aravinda VK 2015-05-27 11:54:34 EDT
Upstream patch sent for review.
http://review.gluster.org/#/c/10945
Comment 4 Aravinda VK 2015-06-12 01:56:22 EDT
Downstream patch https://code.engineering.redhat.com/gerrit/#/c/50563/
Comment 6 Sweta Anandpara 2015-06-22 00:10:16 EDT
Verified this on the build glusterfs-3.7.1-4.el6rhs.x86_64. 

Whenever an invalid/non-existent volume name is given for glusterfind create, it does display a valid error on the console mentioning that the specified volume is not found. Pasted below are the logs. Did observe an unexpected issue where an invalid session name is given - separate bug for which will be filed.

Moving this bug to verfied for Everglades 3.1. 

The rest of the regression is executed - logs of which can be found at the link: https://polarion.engineering.redhat.com/polarion/#/project/RHG3/testrun?id=glusterfs-3_7_1_3_RHEL6_7_FUSE

[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# gluster v list
gluster_shared_storage
ozone
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# rpm -qa | grep glusterfs
glusterfs-libs-3.7.1-4.el6rhs.x86_64
glusterfs-api-3.7.1-4.el6rhs.x86_64
glusterfs-client-xlators-3.7.1-4.el6rhs.x86_64
glusterfs-fuse-3.7.1-4.el6rhs.x86_64
glusterfs-cli-3.7.1-4.el6rhs.x86_64
glusterfs-3.7.1-4.el6rhs.x86_64
glusterfs-server-3.7.1-4.el6rhs.x86_64
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind create fdjksl fjdksl
Unable to get volume details: Volume fjdksl does not exist

[root@dhcp43-191 ~]# glusterfind create fdjksl whatever
Unable to get volume details: Volume whatever does not exist

[root@dhcp43-191 ~]# glusterfind create fdjksl 4327894523
Unable to get volume details: Volume 4327894523 does not exist

[root@dhcp43-191 ~]# glusterfind create fdjksl %^*fdjkls
Unable to get volume details: Volume %^*fdjkls does not exist

[root@dhcp43-191 ~]# glusterfind create fdjksl ozone
Session fdjksl created with volume ozone
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-19 23:20:19      
sesso5                    ozone                     2015-06-20 00:18:03      
fdjksl                    ozone                     2015-06-22 14:58:09      
sesso2                    ozone                     2015-06-19 22:44:40      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# glusterfind create fdjksl ozone123
Unable to get volume details: Volume ozone123 does not exist

[root@dhcp43-191 ~]# glusterfind create fdjksl ozone 
Session fdjksl already created
[root@dhcp43-191 ~]# glusterfind create fds "ozone "
Unable to get volume details: Volume ozone  does not exist

[root@dhcp43-191 ~]# glusterfind create fds "ozone"
Session fds created with volume ozone
[root@dhcp43-191 ~]# glusterfind create fds "ozone ozone"
Unable to get volume details: Volume ozone ozone does not exist

[root@dhcp43-191 ~]# glusterfind create 5543 ozone 
Session 5543 created with volume ozone
[root@dhcp43-191 ~]# glusterfind create ^%&* ozone 
[1] 22820
-bash: anaconda-ks.cfg: command not found
[root@dhcp43-191 ~]# usage: glusterfind create [-h] [--debug] [--force] [--reset-session-time]
                          session volume
glusterfind create: error: too few arguments

[1]+  Exit 2                  glusterfind create ^%
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind create ^%#@* ozone
10.70.42.202 - create failed: percent_expand: unknown key %#

10.70.42.147 - create failed: percent_expand: unknown key %#

10.70.42.202 - create failed: percent_expand: unknown key %#

10.70.42.147 - create failed: percent_expand: unknown key %#

10.70.42.30 - create failed: percent_expand: unknown key %#

10.70.42.30 - create failed: percent_expand: unknown key %#

Command create failed in 10.70.42.202:/rhs/thinbrick1/ozone
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
fds                       ozone                     2015-06-22 14:58:44      
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-19 23:20:19      
^%#@*                     ozone                     Session Corrupted        
sesso5                    ozone                     2015-06-20 00:18:03      
fdjksl                    ozone                     2015-06-22 14:58:09      
sesso2                    ozone                     2015-06-19 22:44:40      
5543                      ozone                     2015-06-22 14:59:10      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind delete 5543 ozone
root@10.70.42.147's password: root@10.70.42.30's password: root@10.70.42.202's password: root@10.70.42.147's password: 


root@10.70.42.30's password: 

root@10.70.42.147's password: 


root@10.70.42.147's password: 
Session 5543 with volume ozone deleted
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
fds                       ozone                     2015-06-22 14:58:44      
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-19 23:20:19      
^%#@*                     ozone                     Session Corrupted        
sesso5                    ozone                     2015-06-20 00:18:03      
fdjksl                    ozone                     2015-06-22 14:58:09      
sesso2                    ozone                     2015-06-19 22:44:40      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# glusterfind delete 5543 ozone
Invalid session 5543
[root@dhcp43-191 ~]# glusterfind delete fgdsdfd  ozone
Invalid session fgdsdfd
[root@dhcp43-191 ~]# glusterfind delete fdjksl ozone
root@10.70.42.147's password: root@10.70.42.30's password: root@10.70.42.147's password: 


root@10.70.42.30's password: 

root@10.70.42.30's password: 
Session fdjksl with volume ozone deleted
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# glusterfind delete fds  ozone
root@10.70.42.147's password: root@10.70.42.147's password: 


root@10.70.42.147's password: 
Session fds with volume ozone deleted
[root@dhcp43-191 ~]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
sesso3                    ozone                     2015-06-18 16:27:30      
sesso1                    ozone                     2015-06-19 23:20:19      
^%#@*                     ozone                     Session Corrupted        
sesso5                    ozone                     2015-06-20 00:18:03      
sesso2                    ozone                     2015-06-19 22:44:40      
sesso4                    ozone                     2015-06-18 16:27:38      
[root@dhcp43-191 ~]# vi /var/lib/glusterd/glusterfind/
^%#@*/  .keys/  sesso1/ sesso2/ sesso3/ sesso4/ sesso5/ 
[root@dhcp43-191 ~]# ls -l  /var/lib/glusterd/glusterfind/
total 24
drwxr-xr-x. 3 root root 4096 Jun 22 14:59 ^%#@*
drwxr-xr-x. 3 root root 4096 Jun 18 16:25 sesso1
drwxr-xr-x. 3 root root 4096 Jun 18 16:26 sesso2
drwxr-xr-x. 3 root root 4096 Jun 18 16:27 sesso3
drwxr-xr-x. 3 root root 4096 Jun 18 16:27 sesso4
drwxr-xr-x. 3 root root 4096 Jun 20 00:07 sesso5
[root@dhcp43-191 ~]# ls /var/lib/glusterd/glusterfind/\^%#\@\*/
ozone
[root@dhcp43-191 ~]# ls /var/lib/glusterd/glusterfind/\^%#\@\*/ozone
%2Frhs%2Fthinbrick1%2Fozone.status  %2Frhs%2Fthinbrick2%2Fozone.status  ^%#@*_ozone_secret.pem  ^%#@*_ozone_secret.pem.pub
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/
^%#@*/   5543/    cli.log  fdjksl/  fds/     sesso1/  sesso2/  sesso3/  sesso4/  sesso5/  
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/\^%#\@\*/ozone/cli.log 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/fds/ozone/cli.log 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/fdjksl/ozone/cli.log 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/5543/ozone/cli.log 
[root@dhcp43-191 ~]# vi /var/log/glusterfs/glusterfind/sesso1/ozone/cli.log 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]# 
[root@dhcp43-191 ~]#
Comment 7 Sweta Anandpara 2015-06-22 02:29:56 EDT
Correcting the link of log location of the functional testing that was executed in and around this bug, and the rest of the feature:
https://polarion.engineering.redhat.com/polarion/testrun-attachment/RHG3/glusterfs-3_7_1_3_RHEL6_7_FUSE/RHG3-5400_Logs_6.7_3.7.1-3_output_file_validation.odt
Comment 8 errata-xmlrpc 2015-07-29 00:45:24 EDT
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.

https://rhn.redhat.com/errata/RHSA-2015-1495.html

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