Hide Forgot
Description of problem: ======================= When volume names are like vol-snap0 and vol-snap1 the CG creation fails. When the volume names are like volume4 and volume5 the CG creation is successful. [root@snapshot-09 ~]# gluster snapshot create vol-snap0 vol-snap1 -n cg1snapshot create: failed: Commit failed on localhost. Please check log file for details. Snapshot command failed [root@snapshot-09 ~]# gluster snapshot create volume4 volume5 -n cg2 snapshot create: cg2: consistency group created successfully [root@snapshot-09 ~]# From the above two command output it is clear that the volume name with "-" are not getting validated. volume name such as vol-snap are valid volnames it should be successful Version-Release number of selected component (if applicable): ============================================================= glusterfs-3.4.0.snap.dec03.2013git-1.el6.x86_64 How reproducible: ================= 1/1 Steps to Reproduce: 1. Create a CG with vol-names as "vol-snap1 vol-snap2" 2. CG creation failes Actual results: =============== CG creation fails when the volume names contains "-" Expected results: ================= volume names such as 'vol-snap1" are valid volume names the CG creation should be successful.
creation of a snap or CG with "-" in the snap name /CG name fails : gluster snapshot create volume2 -n SNAP-20 snapshot create: failed: Commit failed on localhost. Please check log file for details. Snapshot command failed [root@snapshot-01 brick7]# gluster snapshot create volume2 -n SNAP20 snapshot create: SNAP20: snap created successfully
Patch posted: http://review.gluster.org/#/c/6709/
Verified with build: glusterfs-3.4.1.1.snap.feb17.2014git-1.el6.x86_64 [root@snapshot-09 ~]# gluster snapshot create vol-snap5 snapshot create: 2014_03_03_03_30_14_244600: snap created successfully [root@snapshot-09 ~]# gluster snapshot create vol-snap5 -n rp1 snapshot create: rp1: snap created successfully [root@snapshot-09 ~]# [root@snapshot-09 ~]# gluster snapshot list vol-snap5 Volume Name : vol-snap5 Number of snaps taken : 2 Number of snaps available : 254 Snap Name : 2014_03_03_03_30_14_244600 Snap Time : 2014-03-03 09:00:16 Snap UUID : af607a75-3741-4b01-a350-f0a6c756616f Snap Name : rp1 Snap Time : 2014-03-03 09:00:26 Snap UUID : 31c8a8dd-0d72-46ea-a3a7-fd1421db14df [root@snapshot-09 ~]# Marking the bug as verified:
Marking snapshot BZs to RHS 3.0.
Setting flags required to add BZs to RHS 3.0 Errata
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-1278.html