Description of problem: ======================= With current implementation of gluster snapshot delete, we do not have a wayout to delete all or multiple snaps of a given volume [root@snapshot-09 ~]# gluster snapshot delete Usage: snapshot delete (<volname> -s <snapname> | -c <cgname>) [root@snapshot-09 ~]# For user feasibility it is must have option to delete multiple snaps in one short or/and delete all snaps in one short. For example: 1. The below cli should have deleted snap2 and snap3 for a given volume, but it deletes only one snap2. [root@snapshot-09 ~]# gluster snapshot delete vol-snap0 -s snap2 snap3 snapshot delete: snap2: snap removed successfully [root@snapshot-09 ~]# 2. With below set of commands their is no way that all snaps of a given volume be deleted [root@snapshot-09 ~]# gluster snapshot delete vol-snap0 Usage: snapshot delete (<volname> -s <snapname> | -c <cgname>) [root@snapshot-09 ~]# gluster snapshot delete vol-snap0 all Usage: snapshot delete (<volname> -s <snapname> | -c <cgname>) [root@snapshot-09 ~]# gluster snapshot delete vol-snap0 -s Usage: snapshot delete (<volname> -s <snapname> | -c <cgname>) [root@snapshot-09 ~]# gluster snapshot delete vol-snap0 -s all snapshot remove: failed: snap all is not found Snapshot command failed [root@snapshot-09 ~]# It is debatable how we need to tackle this but it is must have as we have 256 default snapshot for any given volume and deleting them individually is not user friendly Version-Release number of selected component (if applicable): ============================================================= glusterfs-3.4.0.snap.dec30.2013git-1.el6.x86_64
Patch posted: http://review.gluster.org/#/c/6673/
With the new cli support for deleting multiple snaps in multiple volumes are not provided. We will consider this bug in the next release
Marking snapshot BZs to RHS 3.0.
Setting flags required to add BZs to RHS 3.0 Errata
See comment #4.
http://review.gluster.org/#/c/8162/ is merged upstream. However as this bug doesn't contain any blocker flags, I will not send the relevant patch downstream until the Denail release.
Version :glusterfs 3.7.1 built on Jun 9 2015 ======== Deleting all snapshots part of a volume: ======================================== gluster snapshot delete volume vol0 Volume (vol0) contains 2 snapshot(s). Do you still want to continue and delete them? (y/n) y snapshot delete: S1_GMT-2015.06.11-09.16.17: snap removed successfully snapshot delete: S2_GMT-2015.06.11-09.17.23: snap removed successfully Deleting all snapshots present in the system : ============================================= [root@inception ~]# gluster snapshot delete all System contains 80 snapshot(s). Do you still want to continue and delete them? (y/n) y snapshot delete: Scheduled-Job1-vol0_GMT-2015.06.10-13.30.01: snap removed successfully snapshot delete: Scheduled-Job2-vol1_GMT-2015.06.10-13.30.01: snap removed successfully snapshot delete: Scheduled-Job2-vol1_GMT-2015.06.10-14.00.01: snap removed successfully Marking the bug as 'Verified'
Hi Sachin, The doc text is updated. Please review the same and share your technical review comments. If it looks ok, then sign-off on the same. Regards, Bhavana
Hi Bhavana, The coc text looks good to me. Thanks, Sachin.
Sorry for the typo. ==================== Hi Bhavana, The doc text looks good to me. Thanks, Sachin.
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