Description of problem: When we use random service_name with ceph orch rm command it shows the service has been removed need validation or appropriate msg to be displayed that the given service_name does not exist. (note: dummy is a non-existent service_name which is not listed when ceph orch ls o/p is captured) eg: # ceph orch rm dummy Removed service dummy Version-Release number of selected component (if applicable): ceph version 16.2.7-74.el8cp How reproducible: 2/2 Steps to Reproduce: 1. Have a 5.1 cluster 2. use ceph orch rm command with random service name and see the displayed msg which says as below Actual results: # ceph orch rm dummy_name Removed service dummy_name Expected results: # ceph orch rm dummy_name Service dummy_name does not exist
PR to fix the issue: https://github.com/ceph/ceph/pull/45314
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 Security, Bug Fix, 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-2022:5997