Actions
Bug #25346
closedshould not be allowed to restore an image when it is being deleted
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
An image that is being deleted in trash bin should not be allowed to be restored.
Steps to re-produce:
Client-A:
[root@ /clove/swb/ceph/build]# rbd du img1 NAME PROVISIONED USED img1 100 GiB 7.8 GiB [root@ /clove/swb/ceph/build]# rbd trash mv img1 [root@ /clove/swb/ceph/build]# rbd trash ls 10866b8b4567 img1 [root@ /clove/swb/ceph/build]# rbd trash rm 10866b8b4567 # doing restore operation at Client-B before the delete operation completes Removing image: 100% complete...done.
Client-B:
[root@ /clove/swb/ceph/build]# rbd trash restore 10866b8b4567 [root@ /clove/swb/ceph/build]# rbd info img1 2018-07-30 15:47:14.754 7f6e6dffb700 -1 librbd::image::OpenRequest: failed to retrieve initial metadata: (2) No such file or directory rbd: error opening image img1: (2) No such file or directory
Updated by Mykola Golub over 5 years ago
- Status changed from New to Fix Under Review
Updated by Jason Dillaman over 4 years ago
- Status changed from Fix Under Review to Resolved
- Pull request ID set to 24078
Actions