]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: do not error out on service rm|action if no daemons
authorSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 13:22:08 +0000 (07:22 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 20:25:31 +0000 (14:25 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 1c6ed178cae9831adf560b92e1487f1264731be8..9597d84348890abd7cd4d8587a5ef9ab3d8f202a 100644 (file)
@@ -1732,9 +1732,6 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                 if d.matches_service(service_name):
                     args.append((d.daemon_type, d.daemon_id,
                                  d.hostname, action))
-        if not args:
-            raise orchestrator.OrchestratorError(
-                'Unable to find %s.%s.* daemon(s)' % (service_name))
         self.log.info('%s service %s' % (action, service_name))
         return self._daemon_actions(args)
 
@@ -1800,9 +1797,6 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                         (d.name(), d.hostname, force)
                     )
                     self.spec_store.rm(d.service_name())
-        if not args:
-            raise OrchestratorError('Unable to find daemons in %s service' % (
-                service_name))
         self.log.info('Remove service %s (daemons %s)' % (
             service_name, [a[0] for a in args]))
         return self._remove_daemons(args)