Bug 1381827 - Volume mount is failing when volume option "cluster.extra-hash-regex" is set to '(.*)\.swp*'
Summary: Volume mount is failing when volume option "cluster.extra-hash-regex" is set...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute
Version: rhgs-3.2
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Atin Mukherjee
QA Contact: Prasad Desala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-05 07:08 UTC by Byreddy
Modified: 2018-03-16 08:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-16 08:33:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Byreddy 2016-10-05 07:08:54 UTC
Description of problem:
======================
Volume mount is failing when volume option "cluster.extra-hash-regex"  is set to '(.*)\.swp*'


errors in the mount log when it failed:

[2016-10-05 06:55:42.211060] I [MSGID: 100030] [glusterfsd.c:2412:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.8.4 (args: /usr/sbin/glusterfs --volfile-server=10.70.43.190 --volfile-id=/Dis-Rep /mnt)
[2016-10-05 06:55:42.233791] I [MSGID: 101190] [event-epoll.c:628:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2016-10-05 06:55:42.239278] E [MSGID: 101021] [graph.y:362:graphyyerror] 0-parser: syntax error: line 160 (volume 'Dis-Rep-dht'): ".swp*"
allowed tokens are 'volume', 'type', 'subvolumes', 'option', 'end-volume'()
[2016-10-05 06:55:42.239570] E [MSGID: 100026] [glusterfsd.c:2265:glusterfs_process_volfp] 0-: failed to construct the graph
[2016-10-05 06:55:42.240020] E [graph.c:982:glusterfs_graph_destroy] (-->/usr/sbin/glusterfs(mgmt_getspec_cbk+0x3c1) [0x7f01e876cf51] -->/usr/sbin/glusterfs(glusterfs_process_volfp+0x149) [0x7f01e8767519] -->/lib64/libglusterfs.so.0(glusterfs_graph_destroy+0x84) [0x7f01e82a5364] ) 0-graph: invalid argument: graph [Invalid argument]
[2016-10-05 06:55:42.240111] W [glusterfsd.c:1288:cleanup_and_exit] (-->/usr/sbin/glusterfs(mgmt_getspec_cbk+0x3c1) [0x7f01e876cf51] -->/usr/sbin/glusterfs(glusterfs_process_volfp+0x172) [0x7f01e8767542] -->/usr/sbin/glusterfs(cleanup_and_exit+0x6b) [0x7f01e8766abb] ) 0-: received signum (1), shutting down
[2016-10-05 06:55:42.240154] I [fuse-bridge.c:5793:fini] 0-fuse: Unmounting '/mnt'.




Version-Release number of selected component (if applicable):
=============================================================
glusterfs-3.8.4-2

How reproducible:
==================
Always


Steps to Reproduce:
===================
1. Create a replica of any size and start it
2. Set the volume option "cluster.extra-hash-regex"  is set to '(.*)\.swp*'
3. Try to fuse mount the volume  // It will fail

Actual results:
===============
mount is failing when volume option "cluster.extra-hash-regex"  is set to '(.*)\.swp*'

Expected results:
=================
i don't the reason why mount should fail when this volume option is set.

Additional info:

Comment 2 Byreddy 2016-10-05 07:10:42 UTC
Expected results:
=================
i don't know the reason why mount should fail when this volume option is set.

Comment 3 Nithya Balachandran 2016-10-17 09:58:43 UTC
This is not a commonly used option. Moving this to 3.2.0-beyond.

Comment 4 Nithya Balachandran 2016-10-25 07:33:56 UTC
Note to self:

I was able to get the mount to succeed by editing the volinfo file to put quotes around the regex value.

Comment 7 Nithya Balachandran 2017-08-22 08:31:36 UTC
This is not really a dht BZ seeing that this seems to be an issue with volfile generation or the graph parsing when dealing with wildcards.

Moving this to Atin to process accordingly.


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