Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2302464

Summary: [CEE/SD][RFE][cephadm] "ceph orch" commands should report the exit code after checking the command results.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Geo Jose <gjose>
Component: CephadmAssignee: Kushal Deb <kdeb>
Status: CLOSED ERRATA QA Contact: Sayalee <saraut>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: adking, cephqe-warriors, enothen, jcaratza, kdeb, rsachere, sabose, saraut, vdas
Target Milestone: ---Keywords: FutureFeature, RFE
Target Release: 9.0Flags: kdeb: needinfo? (rsachere)
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-20.1.0-13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-29 06:48:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Geo Jose 2024-08-02 08:16:40 UTC
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.

Comment 13 Abhishek Kane 2025-06-10 04:17:48 UTC
Moving the RFEs out of 9.0 as they were not prioritized by PMs and engineering doesn't have bandwidth to take them up.

Comment 21 errata-xmlrpc 2026-01-29 06:48:33 UTC
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