]> 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>
Mon, 18 Aug 2025 12:22:41 +0000 (12:22 +0000)
commita54bdde7138c3b4cece91fa004570a6d3bec4dd7
treeba40869923380fd1a4ba90aebb8004719de4acf0
parent59b5e22e6a63013f946180325d26cc9da4c14792
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