Project

General

Profile

Bug #16471

Image removal doesn't necessarily clean up all rbd_mirroring entries

Added by Jason Dillaman over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
06/24/2016
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

If an image was partially created (due to a failure), attempting to remove the image will not clean up its rbd_mirroring entries. Therefore, when the rbd-mirror daemon attempts to re-create the image, the image creation will fail:

2016-06-24 09:41:02.854974 7f803220c700 -1 librbd: cannot enable mirroring: (17) File exists
2016-06-24 09:41:02.854989 7f803220c700 -1 librbd: error enabling mirroring: (17) File exists
2016-06-24 09:43:46.170620 7f803220c700 -1 rbd::mirror::image_replayer::CreateImageRequest: 0x7f802417e1e0 handle_create_image: failed to create local image: (17) File exists
2016-06-24 09:43:46.170634 7f803220c700 -1 rbd::mirror::image_replayer::BootstrapRequest: 0x7f7ef48fcab0 handle_create_local_image: failed to create local image: (17) File exists

Related issues

Copied to rbd - Backport #16514: jewel: Image removal doesn't necessarily clean up all rbd_mirroring entries Resolved

History

#1 Updated by Jason Dillaman over 2 years ago

  • Status changed from In Progress to Need Review

#2 Updated by Mykola Golub over 2 years ago

  • Status changed from Need Review to Pending Backport

#3 Updated by Loic Dachary over 2 years ago

  • Copied to Backport #16514: jewel: Image removal doesn't necessarily clean up all rbd_mirroring entries added

#4 Updated by Loic Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF