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 about 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 #1

Updated by Jason Dillaman almost 8 years ago

  • Backport set to jewel
Actions #2

Updated by Venky Shankar almost 8 years ago

  • Assignee set to Venky Shankar
Actions #3

Updated by Venky Shankar over 7 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Jason Dillaman over 6 years ago

  • Backport deleted (jewel)
Actions #5

Updated by Jason Dillaman over 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions #6

Updated by liuzhong chen about 6 years ago

This issue looks serious.It means if the rbd-mirror daemon had previously crashed,I can't bootstrap it again?
And I find this patch was signed backport to Jewel but not do this,is there any problem or something else? Thank you!

Actions #7

Updated by Jason Dillaman about 6 years ago

@liuzhong chen: why are you commenting on old, resolved issues?

Actions #8

Updated by liuzhong chen about 6 years ago

@Jason Borden Dillaman because I have to use rbd mirror of Jewel.I look for all bugfix after Jewel about rbd mirror.I find some issue that may affect use was signed backport to Jewel but not do.So I try to understand how much impact on Jewel of these issues or if there are some problem to backport to Jewel.

Actions

Also available in: Atom PDF