Project

General

Profile

Actions

Bug #76094

closed
CB AE

multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload

Bug #76094: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload

Added by Casey Bodley 8 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-862-g9f77776598
Released In:
Upkeep Timestamp:
2026-08-28T01:41:34+00:00

Description

from https://qa-proxy.ceph.com/teuthology/cbodley-2026-04-17_13:04:17-rgw-wip-cbodley-testing-distro-default-trial/156931/teuthology.log

during rgw_multisite_tests.py setup, radosgw-admin period update --commit triggers a realm reload that crashes radosgw

    -2> 2026-04-17T13:27:08.283+0000 7fac33f06640  5 dedup background: dedup_bg paused
    -1> 2026-04-17T13:27:08.283+0000 7fac33f06640  1 rgw realm reloader: Frontends paused
     0> 2026-04-17T13:27:08.283+0000 7fac7bfd8640 -1 *** Caught signal (Segmentation fault) **
 in thread 7fac7bfd8640 thread_name:io_context_pool

 ceph version 21.0.0-618-gdb7fb701 (db7fb701fdeb928b40ffe4f46a674392ee30418c) umbrella (dev - None)
 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fad65187520]
 2: radosgw(+0x710eec) [0x55ba65f42eec]
 3: radosgw(+0x741681) [0x55ba65f73681]
 4: (void boost::asio::detail::executor_function::complete<boost::asio::detail::binder2<boost::asio::detail::composed_op<boost::beast::http::detail::read_some_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::beast::flat_static_buffer<65536ul>, true>, boost::asio::detail::composed_work<void (boost::asio::any_io_executor)>, boost::asio::detail::composed_op<boost::beast::http::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::beast::flat_static_buffer<65536ul>, true, boost::beast::http::detail::parser_is_header_done>, boost::asio::detail::composed_work<void (boost::asio::any_io_executor)>, boost::asio::detail::spawn_handler<boost::asio::any_io_executor, void (boost::system::error_code, unsigned long), void>, void (boost::system::error_code, unsigned long)>, void (boost::system::error_code, unsigned long)>, boost::system::error_code, unsigned long>, std::allocator<void> >(boost::asio::detail::executor_function::impl_base*, bool)+0x24d) [0x55ba65f881ed]
 5: (boost::asio::detail::executor_op<boost::asio::detail::executor_function, std::allocator<void>, boost::asio::detail::scheduler_operation>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long)+0xab) [0x55ba65f63dcb]
 6: radosgw(+0x711be5) [0x55ba65f43be5]
 7: radosgw(+0x75d8ff) [0x55ba65f8f8ff]
 8: (void boost::asio::execution::detail::any_executor_base::execute_ex<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator<void>, 4ul> > >(boost::asio::execution::detail::any_executor_base const&, boost::asio::detail::executor_function&&)+0x17d) [0x55ba65f9743d]
 9: (boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffer, boost::asio::detail::composed_op<boost::beast::http::detail::read_some_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::beast::flat_static_buffer<65536ul>, true>, boost::asio::detail::composed_work<void (boost::asio::any_io_executor)>, boost::asio::detail::composed_op<boost::beast::http::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::any_io_executor>, boost::beast::flat_static_buffer<65536ul>, true, boost::beast::http::detail::parser_is_header_done>, boost::asio::detail::composed_work<void (boost::asio::any_io_executor)>, boost::asio::detail::spawn_handler<boost::asio::any_io_executor, void (boost::system::error_code, unsigned long), void>, void (boost::system::error_code, unsigned long)>, void (boost::system::error_code, unsigned long)>, boost::asio::any_io_executor>::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long)+0x385) [0x55ba65f982a5]
 10: radosgw(+0x1889535) [0x55ba670bb535]
 11: radosgw(+0x71a1f7) [0x55ba65f4c1f7]
 12: /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253) [0x7fad65551253]
 13: /lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7fad651d9ac3]
 14: /lib/x86_64-linux-gnu/libc.so.6(+0x1268d0) [0x7fad6526b8d0]


Related issues 5 (0 open — 5 closed)

Related to rgw - Bug #77883: rgw: dedicated GC RGW crashes while expiring cloud restore entriesDuplicateMatthew Heler

Actions
Has duplicate rgw - Bug #77993: startup crash due to race between lifecycle and quota handlerDuplicateCasey Bodley

Actions
Copied to rgw - Backport #78120: squid: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reloadResolvedAdam Emerson

Actions
Copied to rgw - Backport #78121: umbrella: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reloadResolvedAdam Emerson

Actions
Copied to rgw - Backport #78122: tentacle: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reloadResolvedAdam Emerson

Actions

AE Updated by Adam Emerson 7 months ago Actions #1

  • Status changed from New to In Progress
  • Assignee set to Adam Emerson

LS Updated by Lumir Sliva 7 months ago ยท Edited Actions #2

  • Pull request ID set to 68600

Reproduced on a vstart multisite (2 zones, 1 zonegroup) on a dev box. SIGSEGV triggers when AsioFrontend::pause() closes a keep-alive socket from the reloader thread while the connection's coroutine, on its own strand, is starting its next async_read_some(). epoll_reactor::start_op() then dereferences the descriptor_state that close() already freed.

Same pattern as 86ad0b891b0, which fixed the off-strand timeout_timer, different caller.

PR: #68600. It dispatches socket.close() onto each connection's strand via asio::dispatch so it serializes with the coroutine's own socket ops.

With the fix applied, 30 period-commit iterations under concurrent keep-alive load completed clean; 43 realm reload cycles recorded, no crashes. Unpatched main SEGVs within a few iterations.

Adam, this sits next to your #68265 work on the reloader lifecycle, which has been really useful context while tracing this one. No file overlap between the two (ours is entirely in rgw_asio_frontend.cc), and either order of merging should be fine. If you have time, I'd appreciate your eyes on the asio-side change whenever #68265 gives you a breather.

LS Updated by Lumir Sliva 7 months ago Actions #3

  • Pull request ID deleted (68600)

AE Updated by Adam Emerson 7 months ago Actions #4

  • Pull request ID set to 68265

AE Updated by Adam Emerson 7 months ago Actions #5

  • Pull request ID changed from 68265 to 68920

AE Updated by Adam Emerson 5 months ago Actions #6

  • Backport set to squid tentacle umbrella

MH Updated by Matthew Heler 5 months ago Actions #7

  • Related to Bug #77883: rgw: dedicated GC RGW crashes while expiring cloud restore entries added

CB Updated by Casey Bodley 5 months ago Actions #8

  • Has duplicate Bug #77993: startup crash due to race between lifecycle and quota handler added

UB Updated by Upkeep Bot 5 months ago Actions #9

  • Status changed from In Progress to Pending Backport
  • Merge Commit set to 9f77776598cff0331cc75d86326590a225ab9d65
  • Fixed In set to v21.3.0-862-g9f77776598
  • Upkeep Timestamp set to 2026-07-09T20:47:48+00:00

UB Updated by Upkeep Bot 5 months ago Actions #10

  • Copied to Backport #78120: squid: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload added

UB Updated by Upkeep Bot 5 months ago Actions #11

  • Copied to Backport #78121: umbrella: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload added

UB Updated by Upkeep Bot 5 months ago Actions #12

  • Copied to Backport #78122: tentacle: multisite: "failed to read metadata sync status for zone=test-zone2" due to crash on realm reload added

UB Updated by Upkeep Bot 5 months ago Actions #13

  • Tags (freeform) set to backport_processed

AE Updated by Adam Emerson 4 months ago Actions #14

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-09T20:47:48+00:00 to 2026-08-28T01:41:34+00:00
Actions

Also available in: PDF Atom