Project

General

Profile

Actions

Bug #18325

closed

Removing a clone that fails to open its parent might leave dangling rbd_children reference

Added by Jason Dillaman over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
kraken,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Create a parent image in pool X, and a clone in pool Y. Using a user that doesn't have any permission to pool X, remove the clone image:

        # rbd --id test -p rbd rm destination
        2016-12-21 11:50:03.758221 7f32b7459700 -1 librbd::image::OpenRequest: failed to retreive name: (1) Operation not permitted
        2016-12-21 11:50:03.758288 7f32b6c58700 -1 librbd::image::RefreshParentRequest: failed to open parent image: (1) Operation not permitted
        2016-12-21 11:50:03.758312 7f32b6c58700 -1 librbd::image::RefreshRequest: failed to refresh parent image: (1) Operation not permitted
        2016-12-21 11:50:03.758333 7f32b6c58700 -1 librbd::image::OpenRequest: failed to refresh image: (1) Operation not permitted
        2016-12-21 11:50:03.759366 7f32b6c58700 -1 librbd::ImageState: failed to open image: (1) Operation not permitted
        Removing image: 100% complete...done.

Now the clone image has been removed, but the parent image cannot be deleted because there is a dangling reference to the deleted clone image.


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #18608: jewel: Removing a clone that fails to open its parent might leave dangling rbd_children referenceResolvedRicardo DiasActions
Copied to rbd - Backport #18609: kraken: Removing a clone that fails to open its parent might leave dangling rbd_children referenceResolvedRicardo DiasActions
Actions

Also available in: Atom PDF