Bug 1273722

Summary: [RFE]: [SNAPSHOT]: Deleting a clone should remove the entries from /run/gluster/snaps and should not be mounted.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shashank Raj <sraj>
Component: snapshotAssignee: rjoseph
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: asengupt, rhs-bugs, sashinde
Target Milestone: ---Keywords: FutureFeature, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 06:22:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1268895    

Description Shashank Raj 2015-10-21 06:26:06 UTC
Description of problem:

Whenever we delete a snapshot-clone, the entries of clones under /run/gluster/snaps doesn't get deleted. and we have to manually clean up the system.

Version-Release number of selected component (if applicable):
glusterfs-3.7.5-0.3

How reproducible:
Always

Steps to Reproduce:
1.Craete a volume and then a snapshot of it.
2.Create a clone of this snapshot.
3.Delete the clone using volume delete command.
4.Observe that after deleting the clones, the entries for clones still persists inside /run/gluster/snaps and it still shows as mounted.
5. We have to manually delete the entries and clean up the system.

Actual results:
Clone entries under /run/gluster/snaps doesn't get deleted and clone still shows as mounted.


Expected results:
Clone entries should be removed from /run/gluster/snaps and it should get umounted.


Additional info:

Comment 2 Avra Sengupta 2016-07-14 09:17:30 UTC
*** Bug 1273716 has been marked as a duplicate of this bug. ***

Comment 3 Avra Sengupta 2016-07-14 09:21:51 UTC
*** Bug 1309209 has been marked as a duplicate of this bug. ***

Comment 4 Avra Sengupta 2016-10-18 06:22:35 UTC
A cloned snapshot, is similar to a gluster volume, and hence following the same protocol, will not clear it's entries itself. The issue of not being able to create clone with the same name will be handled as part of https://bugzilla.redhat.com/show_bug.cgi?id=1309209