Bug #11113
RBD snapshot, created while flattening image, is unremovable
0%
Description
The following actions will create an unremovable RBD snapshot:
- Clone an image from an origin snapshot
- Flatten the clone
- While flattening, snapshot the clone
- Delete the origin snapshot and image
Result:
- The new snapshot appears in
rbd snap ls
, butrbd snap rm
fails withrbd: failed to remove snapshot: (2) No such file or directory
. rbd ls -l
on the pool will segfault.
This bug was previously reported here and is still present in 0.87.1. The attached script demonstrates the problem.
Associated revisions
librbd: snap_remove should ignore -ENOENT errors
If the attempt to deregister the snapshot from the parent
image fails with -ENOENT, ignore the error as it is safe
to assume that the child is not associated with the parent.
Fixes: #11113
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
librbd: snap_remove should ignore -ENOENT errors
If the attempt to deregister the snapshot from the parent
image fails with -ENOENT, ignore the error as it is safe
to assume that the child is not associated with the parent.
Fixes: #11113
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit cf8094942ccdba831e03e5a79451cfa5d78a135f)
librbd: snap_remove should ignore -ENOENT errors
If the attempt to deregister the snapshot from the parent
image fails with -ENOENT, ignore the error as it is safe
to assume that the child is not associated with the parent.
Fixes: #11113
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit cf8094942ccdba831e03e5a79451cfa5d78a135f)
History
#1 Updated by Jason Dillaman about 9 years ago
- Status changed from New to In Progress
#2 Updated by Jason Dillaman about 9 years ago
- Status changed from In Progress to Fix Under Review
- Assignee set to Jason Dillaman
- Backport set to hammer,firefly,dumpling
#3 Updated by Josh Durgin about 9 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport changed from hammer,firefly,dumpling to hammer,firefly
#4 Updated by Jason Dillaman almost 9 years ago
Firefly Backport: https://github.com/ceph/ceph/pull/4245
Hammer Backport: https://github.com/ceph/ceph/pull/4246
#5 Updated by Loïc Dachary almost 9 years ago
- Status changed from Pending Backport to Resolved
- Regression set to No