Description of problem: ======================= While creating snapshot, the output message is not same when the snapshot creation is successful and when it fails Create snapshot with the snap name that already exists. ------------------------------------------------------- gluster snapshot create snapa vol0 snapshot create: failed: Snap snapa already exists Snapshot command failed Create another snapshot ----------------------- gluster snapshot create snapb vol0 snapshot create: snapb: snap created successfully In the first scenario, we mention snapshot create:failed Snap <snap-name> exists In the second scnario, we mention snapshot create: snapb: snap created successfully The output message is not the same . We should get the same message in both the scenarios as shown below (as in the gluster volume command). This would be needed in automation when parsing is done gluster snapshot create snapa vol0 snapshot create: snapa: failed: Snap snapa already exists Snapshot command failed gluster snapshot create snapb vol0 snapshot create: snapb: success: Snap snapb created successfully gluster volume command ====================== Gluster volume create command: ----------------------------- gluster volume create vol4 replica 2 10.70.43.74:/brick4/b4 10.70.43.151:/brick4/b4 10.70.43.32:/brick4/b4 10.70.43.71:/brick4/b4 volume create: vol4: success: please start the volume to access data gluster volume create vol0 replica 2 10.70.43.74:/brick0/b0 10.70.43.151:/brick0/b0 10.70.43.32:/brick0/b0 10.70.43.71:/brick0/b0 volume create: vol0: failed: Volume vol0 already exists Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Marking snapshot BZs to RHS 3.0.
Fixed in http://review.gluster.org/7518
Setting flags required to add BZs to RHS 3.0 Errata
Version : glusterfs-3.6.0.4-1. ======= Output is as expected. Marking bug as 'Verified' [root@snapshot01 ~]# gluster snapshot create snap1 vol0 snapshot create: failed: Snap snap1 already exists Snapshot command failed [root@snapshot01 ~]# gluster snapshot create snap2 vol0 snapshot create: success: Snap snap2 created successfully
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