Bug 1400884

Summary: attempting to remove a protected snapshot from a clone will dissociate from parent
Product: Red Hat Ceph Storage Reporter: Harald Klein <hklein>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED CURRENTRELEASE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 1.3.3CC: bniver, ceph-eng-bugs, flucifre, icolle, vumrao
Target Milestone: rc   
Target Release: 1.3.4   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-10 19:09:22 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:

Description Harald Klein 2016-12-02 08:51:18 UTC
Description of problem:

Given a clone with a single protected snapshot, flatten the parent to dissociate the HEAD revision from the parent image. If you attempt to remove the protected snapshot, the first step will dissociate the snapshot from the parent image but later the operation will fail due to the snapshot being protected. This leaves the snapshot no longer associated with the parent image and will permit the parent image's snapshot to be unprotected and deleted. 

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

Ceph 1.3 (Hammer)

Expected results:

The protected status should be verified first before altering the image.

Comment 2 Jason Dillaman 2017-03-01 13:53:44 UTC
Note that this issue only affects RHCS <= 1.3.x and does not affect RHCS >= 2.0.

Comment 5 Jason Dillaman 2017-04-10 19:09:22 UTC
Issue does not exist in RHCS 2.0 and later releases.