Description of problem: Currently attempt to drain non-existing host returns 0, It creates confusion. Commands to return 1 (fail) when an operations is tried on non-existing node. User will have to go to mgr logs to determine what went wrong as stdout doesn't highlight user error. Version-Release number of selected component (if applicable): 16.2.8-80.el8cp How reproducible: 3/3 Steps to Reproduce: 1. Configure cluster. 2. Try to drain a non existing host. Actual results: # sudo ceph orch host drain non_existing_host --force; echo $? Scheduled to remove the following daemons from host 'non_existing_host' type id -------------------- --------------- 0 Expected results: Command must error out highlighting user to check his hostname Additional info: In mgr logs we get to see >> [cephadm ERROR orchestrator._interface] host magna006 does not exist In my initial attempt I tried hort name of the host but cluster knew that host by its fqdn.
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 (Important: Red Hat Ceph Storage 8.1 security, bug fix, and enhancement updates), 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-2025:9775