Actions
Bug #75161
closed
ID
ID
ImageState::shut_down_update_watchers() can complete prematurely
Bug #75161:
ImageState::shut_down_update_watchers() can complete prematurely
Due date:
% Done:
0%
Source:
Backport:
squid,tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-5677-g472e267f03
Released In:
v21.2.0~1151
Upkeep Timestamp:
2026-10-24T02:01:41+00:00
Tags:
Description
Most often reproduced by TestImageReplayer/2.Resync and TestImageReplayer/3.Resync:
2026-02-24T14:06:03.235+0000 7fd1aeff5640 10 librbd::ImageWatcher: 0x7fd0c4044200 image header updated
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::ImageState: 0x7fd09c03e9c0 handle_update_notification: refresh_seq = 13, last_refresh = 10
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::notify
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::send_notify: handle=0, watcher=0x7fd138041cf0
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::ImageState: 0x7fd09c03e9c0 flush_update_watchers
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::flush
2026-02-24T14:06:03.235+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::handle_notify: handle=0, watcher=0x7fd138041cf0
2026-02-24T14:06:03.235+0000 7fd159feb640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_image_update_notify:
2026-02-24T14:06:03.235+0000 7fd159feb640 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_image_update_notify: flagging snapshot rescan required
2026-02-24T14:06:03.235+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::handle_notify: handle=0, watcher=0x7fd138041cf0
2026-02-24T14:06:03.235+0000 7fd159feb640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_image_update_notify:
2026-02-24T14:06:03.235+0000 7fd159feb640 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_image_update_notify: flagging snapshot rescan required
2026-02-24T14:06:03.235+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::operator(): completing flush
2026-02-24T14:06:03.235+0000 7fd159feb640 10 librbd::ImageWatcher: 0x7fd0fc062ac0 C_ResponseMessage: r=0
2026-02-24T14:06:03.235+0000 7fd159feb640 10 librbd::Watcher::C_NotifyAck 0x7fd0c4007dd0 finish: r=0
2026-02-24T14:06:03.235+0000 7fd1ae7f4640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_prune_non_primary_snapshot: r=0
2026-02-24T14:06:03.235+0000 7fd1ae7f4640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 load_local_image_meta:
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::watcher::Notifier: 0x7fd0c40442c0 handle_notify: r=0
2026-02-24T14:06:03.235+0000 7fd1aeff5640 20 librbd::watcher::Notifier: 0x7fd0c40442c0 handle_notify: pending=0
2026-02-24T14:06:03.235+0000 7fd1ae7f4640 15 librbd::mirror::snapshot::ImageMeta: 0x7fd0c4006940 load: oid=rbd_header.50d8a074018, key=.rbd_mirror.1bab7071-68ba-48b5-8a85-dd7b51ca9272
2026-02-24T14:06:03.235+0000 7fd1aeff5640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_load_local_image_meta: r=0
2026-02-24T14:06:03.235+0000 7fd1aeff5640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 refresh_local_image: local image resync requested
2026-02-24T14:06:03.235+0000 7fd1aeff5640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 notify_status_updated:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] handle_replayer_notification:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] handle_replayer_notification: resync requested
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] on_stop_replay:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] cancel_update_mirror_image_replay_status:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] set_state_description: r=0, desc=resync requested
2026-02-24T14:06:03.235+0000 7fd1adff3640 15 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] update_mirror_image_status: force=1, state=--
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] shut_down: r=0, state=3
2026-02-24T14:06:03.235+0000 7fd1adff3640 15 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] shut_down: waiting for in-flight operations to complete
2026-02-24T14:06:03.235+0000 7fd1adff3640 15 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] set_mirror_image_status_update: force=1, state=--
2026-02-24T14:06:03.235+0000 7fd1adff3640 15 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] set_mirror_image_status_update: status={state=up+stopping_replay, description=resync requested, last_update=0.000000]}
2026-02-24T14:06:03.235+0000 7fd1adff3640 15 rbd::mirror::MirrorStatusUpdater 0x55cdb202b4a0 set_mirror_image_status: global_image_id=0da913a8-41f6-4c19-b4ca-660074e0e016, mirror_image_site_status={state=up+stopping_replay, description=resync requested, last_update=0.000000]}
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::MirrorStatusUpdater 0x55cdb202b4a0 queue_update_task:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::ImageReplayer: 0x55cdb202a390 [61/0da913a8-41f6-4c19-b4ca-660074e0e016] shut_down: r=0, state=3
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::MirrorStatusUpdater 0x55cdb202b4a0 update_task:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 shut_down:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 unregister_remote_update_watcher:
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_unregister_remote_update_watcher: r=0
2026-02-24T14:06:03.235+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 unregister_local_update_watcher:
2026-02-24T14:06:03.235+0000 7fd1aeff5640 15 librbd::mirror::snapshot::ImageMeta: 0x7fd0c4006940 handle_load: r=0
2026-02-24T14:06:03.235+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03e9c0 unregister_update_watcher: handle=0
2026-02-24T14:06:03.235+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::unregister_watcher: handle=0
2026-02-24T14:06:03.236+0000 7fd1aeff5640 10 rbd::mirror::MirrorStatusUpdater 0x55cdb202b4a0 handle_update_task:
2026-02-24T14:06:03.235+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd13804d3c0 unregister_update_watcher: handle=0
2026-02-24T14:06:03.235+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd138034310 ImageUpdateWatchers::unregister_watcher: handle=0
2026-02-24T14:06:03.235+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd138034310 ImageUpdateWatchers::unregister_watcher: completing unregister
2026-02-24T14:06:03.236+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::handle_notify: handle=0, watcher=0x7fd138041cf0
2026-02-24T14:06:03.236+0000 7fd159feb640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_image_update_notify:
2026-02-24T14:06:03.236+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::handle_notify: completing unregister
2026-02-24T14:06:03.236+0000 7fd159feb640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_unregister_local_update_watcher: r=0
2026-02-24T14:06:03.236+0000 7fd159feb640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 wait_for_in_flight_ops:
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 handle_wait_for_in_flight_ops: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 ~Replayer:
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 rbd::mirror::image_replayer::snapshot::Replayer: 0x7fd0c404b6c0 unregister_perf_counters:
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 rbd::mirror::image_replayer::snapshot::StateBuilder: 0x7fd13800c800 close:
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 rbd::mirror::image_replayer::StateBuilder: 0x7fd13800c800 close_local_image:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 rbd::mirror::image_replayer::CloseImageRequest: 0x7fd0fc05d610 close_image
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03e9c0 close
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::ImageState: 0x7fd09c03e9c0 0x7fd09c03e9c0 send_close_unlock
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::ConfigWatcher: shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_block_image_watcher
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::ImageWatcher: 0x7fd0c4044200 block_notifies
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 librbd::Watcher: 0x7fd0c4044200 block_notifies: blocked_count=1
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_block_image_watcher: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_shut_down_update_watchers
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03e9c0 shut_down_update_watchers
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::shut_down
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::shut_down: completing shut down
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_shut_down_update_watchers: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_flush
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AsyncOperation: 0x7fd0fc05f790 start_op
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::Dispatcher: 0x7fd09c040a30 send: dispatch_spec=0x7fd0fc062950
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::QueueImageDispatch: 0x7fd09c040c60 flush: tid=4
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::Dispatcher: 0x7fd09c040a30 send: dispatch_spec=0x7fd0fc062950
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::QosImageDispatch: 0x7fd09c03f230 flush: tid=4
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::Dispatcher: 0x7fd09c040a30 send: dispatch_spec=0x7fd0fc062950
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::RefreshImageDispatch: 0x7fd09c040ca0 flush: tid=4
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::WriteBlockImageDispatch: 0x7fd138047020 flush: tid=4
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::ImageDispatch: 0x7fd09c040c00 flush:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::ImageRequest: 0x7fd1adfedbc0 send: aio_flush: ictx=0x7fd09c00d270, completion=0x7fd0fc05f6a0
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AioCompletion: 0x7fd0fc05f6a0 set_request_count: pending=1
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::Dispatcher: 0x7fd09c041680 send: dispatch_spec=0x7fd0fc05ff90
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::SimpleSchedulerObjectDispatch: 0x55cdb2207780 flush:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::SimpleSchedulerObjectDispatch: 0x55cdb2207780 dispatch_all_delayed_requests:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::Dispatcher: 0x7fd09c041680 send: dispatch_spec=0x7fd0fc05ff90
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AioCompletion: 0x7fd0fc05f6a0 complete_request: cb=1, pending=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AioCompletion: 0x7fd0fc05f6a0 finalize: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_flush: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_unregister_image_watcher
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::ImageWatcher: 0x7fd0c4044200 unregistering image watcher
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::Watcher: 0x7fd0c4044200 unregister_watch:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AsyncOperation: 0x7fd0fc05f790 finish_op
2026-02-24T14:06:03.236+0000 7fd15a7ec640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_unregister_image_watcher: r=0
2026-02-24T14:06:03.236+0000 7fd15a7ec640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_flush_readahead
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_flush_readahead: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_shut_down_image_dispatcher
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AsyncOperation: 0x7fd0c4047570 start_op
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 librbd::io::Dispatcher: 0x7fd09c040a30 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::FlushTracker: 0x7fd138046240 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::FlushTracker: 0x7fd138046110 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::AsyncOperation: 0x7fd0c4047570 finish_op
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_shut_down_image_dispatcher: r=0
2026-02-24T14:06:03.236+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_shut_down_object_dispatcher
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 librbd::io::Dispatcher: 0x7fd09c041680 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 librbd::io::ObjectDispatch: 0x7fd09c041500 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 5 librbd::io::SimpleSchedulerObjectDispatch: 0x55cdb2207780 shut_down:
2026-02-24T14:06:03.236+0000 7fd1adff3640 20 librbd::io::FlushTracker: 0x7fd0c4006400 shut_down:
2026-02-24T14:06:03.237+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_shut_down_object_dispatcher: r=0
2026-02-24T14:06:03.237+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 send_flush_op_work_queue
2026-02-24T14:06:03.237+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_flush_op_work_queue: r=0
2026-02-24T14:06:03.237+0000 7fd1adff3640 10 librbd::image::CloseRequest: 0x7fd0c404bd30 handle_flush_image_watcher: r=0
2026-02-24T14:06:03.237+0000 7fd1adff3640 10 librbd::ImageState: 0x7fd09c03e9c0 0x7fd09c03e9c0 handle_close: r=0
2026-02-24T14:06:03.237+0000 7fd15a7ec640 10 librbd::ImageCtx: 0x7fd09c00d270 ~ImageCtx
2026-02-24T14:06:03.237+0000 7fd159feb640 20 librbd::ImageState: 0x7fd09c03ebc0 ImageUpdateWatchers::operator(): completing flush
2026-02-24T14:06:03.237+0000 7fd159feb640 10 librbd::ImageWatcher: 0x7fd0c400a7e0 C_ResponseMessage: r=0
2026-02-24T14:06:03.237+0000 7fd159feb640 10 librbd::Watcher::C_NotifyAck 0x55cdb21f3b20 finish: r=0
[5475751.518910] tp_librbd[1390040]: segfault at a00000000 ip 000055f21f8e2fa3 sp 00007fd7c97f5360 error 4 in unittest_rbd_mirror[55f21eb87000+dcb000] likely on CPU 7 (core 3, socket 0) [5475751.519466] Code: 00 ff 90 a0 00 00 00 48 83 c4 08 c3 90 48 83 ec 08 48 8b 3f 48 8b 07 ff 90 a0 00 00 00 48 83 c4 08 c3 90 48 83 ec 08 48 8b 3f <48> 8b 07 ff 90 a8 00 00 00 48 83 c4 08 c3 90 48 83 ec 08 48 8b 3f
ID Updated by Ilya Dryomov 9 months ago
- Description updated (diff)
ID Updated by Ilya Dryomov 9 months ago
- Pull request ID set to 67524
ID Updated by Ilya Dryomov 9 months ago
- Status changed from In Progress to Fix Under Review
ID Updated by Ilya Dryomov 9 months ago
- Tags set to make-check-failure
UB Updated by Upkeep Bot 9 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 472e267f03705145ee306d15f3d566ec4ac3f726
- Fixed In set to v20.3.0-5677-g472e267f03
- Upkeep Timestamp set to 2026-02-26T19:50:46+00:00
UB Updated by Upkeep Bot 9 months ago
- Copied to Backport #75203: squid: ImageState::shut_down_update_watchers() can complete prematurely added
UB Updated by Upkeep Bot 9 months ago
- Copied to Backport #75204: tentacle: ImageState::shut_down_update_watchers() can complete prematurely added
UB Updated by Upkeep Bot 9 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 8 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2026-02-26T19:50:46+00:00 to 2026-04-07T01:22:29+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-04-07T01:22:29+00:00 to 2026-08-28T01:41:24+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1151
- Upkeep Timestamp changed from 2026-08-28T01:41:24+00:00 to 2026-10-24T02:01:41+00:00
Actions