Bug 1829960
| Summary: | Child cinder volume created from snapshot blocks deletion of parent vol, but returns as deleted (http method code 202) | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Freddy Wissing <fwissing> |
| Component: | openstack-cinder | Assignee: | Cinder Bugs List <cinder-bugs> |
| Status: | CLOSED DUPLICATE | QA Contact: | Tzach Shefi <tshefi> |
| Severity: | high | Docs Contact: | Chuck Copello <ccopello> |
| Priority: | unspecified | ||
| Version: | 13.0 (Queens) | CC: | abishop, attila.szlovencsak, kiyyappa |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-30 16:54:47 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: | |||
|
Description
Freddy Wissing
2020-04-30 16:23:20 UTC
This is a known aspect of RBD volumes, and the behavior can be modified using cinder's rbd_flatten_volume_from_snapshot parameter. The value defaults to False, which leads to the problem you're seeing. We recently enhanced OSP-16 with a new CinderRbdFlattenVolumeFromSnapshot THT parameter (see bug #1798917). For OSP-13, bug #1744855 comment #3 describes an alternate way of setting rbd_flatten_volume_from_snapshot in cinder.conf. To clarify what's happening, the request to delete the parent volume is accepted at the API layer, but the actual deletion is blocked after the request reaches the cinder-volume service. While it would be nice if that could be caught at the API layer, it's not feasible when you consider each cinder backend driver has its own set of constraints. The delete request is accepted (request looks good!), but is rejected later by RBD backend driver. *** This bug has been marked as a duplicate of bug 1744855 *** Hi Alan, People may not want to flatten rbd images when creating volumes from snapshots, since loosing the CoW capability. It is perfectly fine for volume deletion to fail if fails on the backend ( I assume delete, this is a synchronous call to the cinder-volume/RBD driver) The bigger problem is the issue with gnocchi, which makes volumes not get billed after the delete action like that. Gnocchi should handle this correctly, or at least, should include a pollster to fix such Gnocchi resources. It may be just a 'feature' in Cinder, but certainly a bug in Gnocchi. Hi Attila, I agree with everything you say. I don't work with gnocchi, but it sounds like it's responding to the volume delete request getting accepted by the API layer, and not waiting to see if the deletion completed successfully. That should probably be investigated as a different bug than this one. |