Bug 1254470

Summary: [Doc] Fail to delete a snapshot after creating a volume from that snapshot using Cinder RBD driver
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: openstack-cinderAssignee: Cinder Bugs List <cinder-bugs>
Status: CLOSED DUPLICATE QA Contact: Tzach Shefi <tshefi>
Severity: high Docs Contact: Laura Marsh <lmarsh>
Priority: low    
Version: 7.0 (Kilo)CC: dcadzow, eharney, jbiao, jobernar, ljozsa, lmarsh, mabrams, msufiyan, pgrist, rchincho, scohen, sgotliv, slinaber, srevivo, tshefi, tvignaud, yrabl
Target Milestone: ---Keywords: Documentation, Triaged, ZStream
Target Release: ---Flags: tshefi: automate_bug+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1570420 1574364 1575652 (view as bug list) Environment:
Last Closed: 2019-10-08 21:52:31 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: 1135132, 1570420, 1574364    

Description Yogev Rabl 2015-08-18 08:22:15 UTC
Description of problem:
The deletion of a snapshot fails with the error 

2015-08-18 11:11:39.198 4418 ERROR cinder.volume.manager [req-e721e329-ba76-4088-bce6-dbfb0757fe05 b7bc6cb74f5d4935b8a994d4c4582de2 e577bce6013b4fde98e5e44bc82e7ca1 - - -] Cannot delete snapshot 0b33c534-7f52-4aa5-9fbb-725eb929b771: snapshot is busy

while exists a volume that was created from it. 

Version-Release number of selected component (if applicable):
python-cinder-2015.1.0-3.el7ost.noarch
ceph-common-0.80.8-7.el7cp.x86_64
openstack-cinder-2015.1.0-3.el7ost.noarch
python-cinderclient-1.2.1-1.el7ost.noarch


How reproducible:
100% 

Steps to Reproduce:
1. Create a volume 
2. Take a snapshot of the volume
3. Create a new volume from the snapshot
4. Delete the snapshot 
5. Check the snapshot list

Actual results:
The snapshot stays in a available state

Expected results:
The Cinder client will provide an output that explains why the action failed or set the snapshot with a deleted tag in the Ceph pool and delete the snapshot record in Cinder

Comment 3 Sergey Gotliv 2015-09-21 12:58:00 UTC
*** Bug 1254471 has been marked as a duplicate of this bug. ***

Comment 4 Jon Bernard 2016-02-17 22:23:06 UTC
I believe the current patch in review most correctly addresses the problem.

Comment 5 Jon Bernard 2016-08-18 14:31:17 UTC
Just to clarify, patch is complete and awaiting reviews upstream.

Comment 6 Elise Gafford 2016-11-01 16:53:09 UTC
No recent progress on this issue (no review attention on upstream patch). Low priority. Moving to RHOS 11 for triage.

Comment 17 Sean Cohen 2018-05-07 14:30:40 UTC
This issue will be addressed by Bug 1575652 - [RFE] RBD driver update to postpone snapshot removal until final volume deleted that is scoped for OSP15 release.

Sean

Comment 18 Sean Cohen 2018-05-07 14:31:53 UTC
*** Bug 1574364 has been marked as a duplicate of this bug. ***

Comment 19 Sean Cohen 2018-05-07 14:31:56 UTC
*** Bug 1570420 has been marked as a duplicate of this bug. ***

Comment 27 Paul Grist 2019-01-16 18:52:56 UTC
Is this something that will never be fixed for RBD?  I think the dictates how we want to documented it - either as a known bug or a permanent warning.

Comment 28 Jon Bernard 2019-01-17 00:22:54 UTC
We could provide a solution where the snapshot is hidden or the volume is flattened, but I’m not aware of any existing requests for this.  I don’t expect it change in in the near-term.