Bug #22059
It's impossible to add rbd image-meta key/value on opened image
0%
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.
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.
#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