Actions
Bug #16887
closedceph 10.2.2 rbd status on image format 2 returns "(2) No such file or directory"
Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
jewel,hammer
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Not quite sure when this started failing, it only ended up noticeable now. So, I can't tell you exactly when, but I'm reasonably sure this worked in 0.9.X.
Previous means by extraacting block_name_prefix and replacing rbd_data with rbd_header and do rados listwatchers on it fails in the same way. Older images "works", which leads me to believe that there's something with how rbd create --image-format=2 operates in 10.2.2 and missing behavior in tools/rbd/action/Status.cc or if it's something else.
kjetil@sc2-r10-u07:~$ rbd --version ceph version 10.2.2 (45107e21c568dd033c2f0a3107dec8f0b0e58374) kjetil@sc2-r10-u07:~$ rbd create --image-format=2 --size=10M watcher-fail kjetil@sc2-r10-u07:~$ rbd status watcher-fail rbd: show status failed: (2) No such file or directory kjetil@sc2-r10-u07:~$ rbd --debug-rbd=20/20 status watcher-fail 2016-08-01 12:15:39.288796 7f5e2ad95d80 5 librbd::AioImageRequestWQ: 0x561e4e0830d0 : ictx=0x561e4e081170 2016-08-01 12:15:39.288872 7f5e2ad95d80 20 librbd::ImageState: open 2016-08-01 12:15:39.288876 7f5e2ad95d80 10 librbd::ImageState: 0x561e4e076860 send_open_unlock 2016-08-01 12:15:39.288882 7f5e2ad95d80 10 librbd::image::OpenRequest: 0x561e4e083a40 send_v2_detect_header 2016-08-01 12:15:39.289842 7f5dfffff700 10 librbd::image::OpenRequest: handle_v2_detect_header: r=0 2016-08-01 12:15:39.289848 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 send_v2_get_id 2016-08-01 12:15:39.290127 7f5dfffff700 10 librbd::image::OpenRequest: handle_v2_get_id: r=0 2016-08-01 12:15:39.290132 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 send_v2_get_immutable_metadata 2016-08-01 12:15:39.291861 7f5dfffff700 10 librbd::image::OpenRequest: handle_v2_get_immutable_metadata: r=0 2016-08-01 12:15:39.291869 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 send_v2_get_stripe_unit_count 2016-08-01 12:15:39.292261 7f5dfffff700 10 librbd::image::OpenRequest: handle_v2_get_stripe_unit_count: r=-8 2016-08-01 12:15:39.292274 7f5dfffff700 10 librbd::ImageCtx: init_layout stripe_unit 4194304 stripe_count 1 object_size 4194304 prefix rbd_data.1270eb77238e1f29 format rbd_data.1270eb77238e1f29.%016llx 2016-08-01 12:15:39.292276 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 send_v2_apply_metadata: start_key=conf_ 2016-08-01 12:15:39.292538 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 handle_v2_apply_metadata: r=0 2016-08-01 12:15:39.292544 7f5dfffff700 20 librbd::ImageCtx: apply_metadata 2016-08-01 12:15:39.292632 7f5dfffff700 20 librbd::ImageCtx: enabling caching... 2016-08-01 12:15:39.292635 7f5dfffff700 20 librbd::ImageCtx: Initial cache settings: size=33554432 num_objects=10 max_dirty=25165824 target_dirty=16777216 max_dirty_age=1 2016-08-01 12:15:39.292696 7f5dfffff700 10 librbd::ImageCtx: cache bytes 33554432 -> about 1048 objects 2016-08-01 12:15:39.292724 7f5dfffff700 10 librbd::image::OpenRequest: 0x561e4e083a40 send_refresh 2016-08-01 12:15:39.292727 7f5dfffff700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 send_v2_get_mutable_metadata 2016-08-01 12:15:39.293261 7f5dfffff700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 handle_v2_get_mutable_metadata: r=0 2016-08-01 12:15:39.293265 7f5dfffff700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 send_v2_get_flags 2016-08-01 12:15:39.293551 7f5dfffff700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 handle_v2_get_flags: r=0 2016-08-01 12:15:39.293554 7f5dfffff700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 send_v2_apply 2016-08-01 12:15:39.293565 7f5dff7fe700 10 librbd::image::RefreshRequest: 0x7f5de8002e60 handle_v2_apply 2016-08-01 12:15:39.293568 7f5dff7fe700 20 librbd::image::RefreshRequest: 0x7f5de8002e60 apply 2016-08-01 12:15:39.293578 7f5dff7fe700 10 librbd::image::OpenRequest: handle_refresh: r=0 2016-08-01 12:15:39.293583 7f5dff7fe700 10 librbd::ImageState: 0x561e4e076860 handle_open: r=0 2016-08-01 12:15:39.293595 7f5e2ad95d80 20 librbd: info 0x561e4e081170 rbd: show status failed: (2) No such file or directory 2016-08-01 12:15:39.294518 7f5e2ad95d80 20 librbd::ImageState: close 2016-08-01 12:15:39.294522 7f5e2ad95d80 10 librbd::ImageState: 0x561e4e076860 send_close_unlock 2016-08-01 12:15:39.294524 7f5e2ad95d80 10 librbd::image::CloseRequest: 0x561e4e083f10 send_shut_down_aio_queue 2016-08-01 12:15:39.294526 7f5e2ad95d80 5 librbd::AioImageRequestWQ: shut_down: in_flight=0 2016-08-01 12:15:39.294537 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 handle_shut_down_aio_queue: r=0 2016-08-01 12:15:39.294540 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 send_flush 2016-08-01 12:15:39.294543 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 handle_flush: r=0 2016-08-01 12:15:39.294543 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 send_flush_readahead 2016-08-01 12:15:39.294544 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 handle_flush_readahead: r=0 2016-08-01 12:15:39.294545 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 send_shut_down_cache 2016-08-01 12:15:39.294577 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 handle_shut_down_cache: r=0 2016-08-01 12:15:39.294579 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 send_flush_op_work_queue 2016-08-01 12:15:39.294581 7f5dff7fe700 10 librbd::image::CloseRequest: 0x561e4e083f10 handle_flush_op_work_queue: r=0 2016-08-01 12:15:39.294587 7f5dff7fe700 10 librbd::ImageState: 0x561e4e076860 handle_close: r=0 kjetil@sc2-r10-u07:~$ rbd info watcher-fail rbd image 'watcher-fail': size 10240 kB in 3 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.1270eb77238e1f2 format: 2 features: layering flags:
Actions