Description of problem:
-----------------------
- Requesting to improve the exit status of the below commands after verifying the outputs:
~~~
# ceph orch host ok-to-stop <hostname>
# ceph orch host maintenance enter <hostname>
~~~
Version-Release number of selected component (if applicable):
------------------------------------------------------------
- RHCS 6
How reproducible:
- Steps to Reproduce:
------------------
Execute the command "ceph orch host ok-to-stop <hostname> ; echo $?" or "ceph orch host maintenance enter <hostname>; echo $?" in RHCS 6.
Actual results:
--------------
- Reporting non zero exit code if the node is already in maintenance mode.
- "ceph orch host maintenance enter <hostname>" shows zero exit code even though its not enter into the maintenance mode.
- "ceph orch host ok-to-stop <hostname>" is shows zero exit code even though the node is not ok to stop
Expected results:
----------------
- ceph orch command should report the exit code after checking the command results.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2026:1536