]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
monitor: Enhance historic ops command output and error handling
authorNitzan Mordechai <nmordech@redhat.com>
Thu, 19 Jun 2025 08:54:43 +0000 (08:54 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Tue, 5 Aug 2025 16:41:10 +0000 (16:41 +0000)
commit5caa2c2e295397540b9124bfd1b11852a423bc18
treeba924c79c8a125124d6f02b584cd23de686b96df
parent9e41c4c5edb4b1050abd025cbb80f9e39015f05a
monitor: Enhance historic ops command output and error handling

Dumping monitor historic operations currently yields no results
and incorrectly issues an error message indicating that
"mon_enable_op_tracker" is not enabled, even when it should be.

This commit addresses these issues by:
- Adding previously missing commands for historic operations.
- Correcting the dump operations check to only issue an error when
  "mon_enable_op_tracker" is genuinely not enabled.
- Tracking "mon_enable_op_tracker" changes
- Refactoring and organizing the historic operations dump command code.
- Improving the appearance and clarity of error messages.

Fixes: https://tracker.ceph.com/issues/71725
Signed-off-by: Nitzan Mordechai <nmordec@ibm.com>
(cherry picked from commit 5edb4099927eb4b2813115ef8756e1160345f823)
src/mon/MonCommands.h
src/mon/Monitor.cc