Project

General

Profile

Actions

Bug #15764

closed

rbd-mirror bootstrap fails with -EEXIST when creating local image

Added by Jason Dillaman almost 8 years ago. Updated over 6 years ago.

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

0%

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

Description

The rbd-mirror daemon had previously crashed so it's possible that it raced creating the image and registering it with the mirroring directory:

2016-05-05 21:01:18.089290 7f2abdff3700 20 rbd::mirror::image_replayer::BootstrapRequest: 0x7f2aa000aec0 get_local_image_id
2016-05-05 21:01:18.089990 7f2adcff9700 20 rbd::mirror::image_replayer::BootstrapRequest: 0x7f2aa000aec0 handle_get_local_image_id: r=-2
2016-05-05 21:01:18.089995 7f2adcff9700 10 rbd::mirror::image_replayer::BootstrapRequest: 0x7f2aa000aec0 handle_get_local_image_id: image not registered locally
2016-05-05 21:01:18.142899 7f2ae5bc7700 20 rbd::mirror::image_replayer::BootstrapRequest: 0x7f2aa000aec0 handle_create_local_image: r=-17
2016-05-05 21:01:18.142903 7f2ae5bc7700 -1 rbd::mirror::image_replayer::BootstrapRequest: 0x7f2aa000aec0 handle_create_local_image: failed to create local image: (17) File exists
Actions

Also available in: Atom PDF