Project

General

Profile

Actions

Bug #80550

closed
IF IF

using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crash

Bug #80550: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crash

Added by Igor Fedotov 3 months ago. Updated 23 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
-
Due date:
% Done:

0%

Source:
Development
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3793-ga3984319ae
Released In:
Upkeep Timestamp:
2026-09-30T00:07:23+00:00

Description

Here is a backtrace:

-1> 2026-09-15T19:05:44.162+0300 7f12656006c0  7 mon.a@0(leader).mds e6 prepare_update mon_command({"prefix": "fs new", "fs_name": "cephfs_ad", " 
metadata": "cephfs_metadata_ad", "data": "cephfs_data_hdd_ec_ad", "set": ["set", "max_mds", "2", "allow_standby_replay", "true"], "force": true} v 0)
     0> 2026-09-15T19:05:44.162+0300 7f12656006c0 -1 *** Caught signal (Aborted) **
 in thread 7f12656006c0 thread_name:ms_dispatch

 ceph version 21.3.0-3000-gcb76fd5ba42 (cb76fd5ba4263a0f64e2e9feb8f34f8a9e495538) umbrella (dev - Release)
 1: /lib64/libc.so.6(+0x42910) [0x7f126e442910]
 2: /lib64/libc.so.6(+0x9dd5c) [0x7f126e49dd5c]
 3: gsignal()
 4: abort()
 5: /lib64/libstdc++.so.6(+0xb2cf4) [0x7f126e8b2cf4]
 6: /lib64/libstdc++.so.6(+0xc53bc) [0x7f126e8c53bc]
 7: (std::unexpected()+0) [0x7f126e8b287a]
 8: /lib64/libstdc++.so.6(+0xc5668) [0x7f126e8c5668]
 9: (std::__throw_out_of_range(char const*)+0x40) [0x7f126e8b5d1a]
 10: /home/if/ceph.2/build/bin/ceph-mon(+0x2f9fcd) [0x55a9861e1fcd]
 11: (FsNewHandler::handle(Monitor*, FSMap&, boost::intrusive_ptr<MonOpRequest>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, st
d::allocator<char> >, boost::variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, double, std::vector
<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<ch
ar>, std::allocator<char> > > >, std::vector<long, std::allocator<long> >, std::vector<double, std::allocator<double> > >, std::less<void>, std::allo
cator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::variant<std::__cxx11::basic_string<char
, std::char_traits<char>, std::allocator<char> >, bool, long, double, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::alloc
ator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::vector<long, std::allocator<lo
ng> >, std::vector<double, std::allocator<double> > > > > > const&, std::ostream&)+0x10a6) [0x55a9865cd1a6]
 12: (MDSMonitor::prepare_command(boost::intrusive_ptr<MonOpRequest>)+0x549) [0x55a9865a2f29]
 13: (MDSMonitor::prepare_update(boost::intrusive_ptr<MonOpRequest>)+0xeb) [0x55a9865a813b]
 14: (PaxosService::dispatch(boost::intrusive_ptr<MonOpRequest>)+0x704) [0x55a9864a91f4]
 15: (Monitor::handle_command(boost::intrusive_ptr<MonOpRequest>)+0x208e) [0x55a9862f537e]
 16: (Monitor::dispatch_op(boost::intrusive_ptr<MonOpRequest>)+0x9ba) [0x55a9862f982a]
 17: (Monitor::_ms_dispatch(Message*)+0x876) [0x55a9862fb066]
 18: (Monitor::handle_forward(boost::intrusive_ptr<MonOpRequest>)+0x7ff) [0x55a9862fc2ff]
 19: (Monitor::dispatch_op(boost::intrusive_ptr<MonOpRequest>)+0x11d2) [0x55a9862fa042]
 20: (Monitor::_ms_dispatch(Message*)+0x876) [0x55a9862fb066]
 21: (Dispatcher::ms_dispatch2(boost::intrusive_ptr<Message> const&)+0x45) [0x55a9863232b5]
 22: (Messenger::ms_deliver_dispatch(boost::intrusive_ptr<Message> const&)+0x4b9) [0x7f126fcb2219]
 23: (DispatchQueue::entry()+0x607) [0x7f126fcaf8a7]
 24: (DispatchQueue::DispatchThread::entry()+0xd) [0x7f126fd8a26d]
 25: (Thread::entry_wrapper()+0x45) [0x7f126fa0de85]
 26: /lib64/libc.so.6(+0x9be11) [0x7f126e49be11]
 27: /lib64/libc.so.6(+0x120c8c) [0x7f126e520c8c]

Looks like the root cause is an incomplete modification in https://github.com/ceph/ceph/pull/51993 which omitted relevant modifications for allow_standby_replay option.
Legacy form of fs modification is still in use for this option handler:

    } else if (var == "allow_standby_replay") {
...
      fsmap.modify_filesystem(fsp->get_fscid(), std::move(f));
    }


Related issues 4 (1 open — 3 closed)

Has duplicate Ceph - Bug #82655: ceph fs new with multiple options crashes monitorDuplicate

Actions
Copied to CephFS - Backport #81144: umbrella: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crashFix Under ReviewDhairya Parmar

Actions
Copied to CephFS - Backport #81145: squid: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crashRejectedDhairya Parmar

Actions
Copied to CephFS - Backport #81146: tentacle: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crashResolvedDhairya Parmar

Actions

IF Updated by Igor Fedotov 3 months ago Actions #1

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 71806

UB Updated by Upkeep Bot 2 months ago Actions #2

  • Copied to Backport #81144: umbrella: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crash added

UB Updated by Upkeep Bot 2 months ago Actions #3

  • Copied to Backport #81145: squid: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crash added

UB Updated by Upkeep Bot 2 months ago Actions #4

  • Copied to Backport #81146: tentacle: using 'set allow_standby_replay true' option withing 'ceph fs new' command caused monitor crash added

UB Updated by Upkeep Bot 2 months ago Actions #5

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to a3984319aec20972ccf5fe6c50a4ce3c34c0bf6e
  • Fixed In set to v21.3.0-3793-ga3984319ae
  • Upkeep Timestamp set to 2026-09-30T00:07:23+00:00

VS Updated by Venky Shankar 29 days ago Actions #6

  • Has duplicate Bug #82655: ceph fs new with multiple options crashes monitor added

KS Updated by Konstantin Shalygin 23 days ago Actions #7

  • Category set to Administration/Usability
  • Source set to Development
Actions

Also available in: PDF Atom