Project

General

Profile

Bug #22059

It's impossible to add rbd image-meta key/value on opened image

Added by Марк Коренберг over 6 years ago. Updated almost 5 years ago.

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

0%

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

Description

If RBD image is opened (say, used in virtual machine), `rbd image-meta set` will hang.

If it is not a bug:
1. it should be mentioned in documentation.
2. it should refuse to operate immediatelly instead of hanging.

bug.txt View (28 KB) Марк Коренберг, 11/30/2017 05:26 AM

History

#1 Updated by Nathan Cutler over 6 years ago

  • Project changed from Ceph to rbd

#2 Updated by Jason Dillaman over 6 years ago

  • Status changed from New to Need More Info

@Марк: I am unable to repeat this issue under 12.2.1. Are both your QEMU and rbd CLI clients running the same version?

#3 Updated by Марк Коренберг over 6 years ago

Yes, the same. Both are Luminous 12.2.1.

BUT! on some images it works, and on some images it doesn't. Please tell me how to debug.

Both images have snapshots (made using Luminous client). Both are used by the same version of Qemu now. I have at lest two images where setting tag hangs.

#4 Updated by Jason Dillaman over 6 years ago

@Марк: please run "rbd --debug-rbd=20 image-meta set <image> <key> <value>" and attach the generated log messages from when it hangs.

#5 Updated by Марк Коренберг over 6 years ago

I have attached the file.

#6 Updated by Jason Dillaman over 6 years ago

Hmm -- you can see that the rbd CLI properly sent a lock request to the current owner:

2017-11-30 10:24:55.011277 7fb5d7fff700 10 librbd::ImageWatcher: 0x7fb5c8001840 notify request lock

For whatever reason, that lock owner hasn't responded within the time frame included in the logs. Any chance you can inject the config value of "debug_rbd = 15" into that client that currently owns the lock and collect its logs?

#7 Updated by Jason Dillaman almost 5 years ago

  • Status changed from Need More Info to Closed

Closing due to a lack of activity

Also available in: Atom PDF