]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #36232 from mgfritch/cephadm-ok-to-stop
authorKefu Chai <kchai@redhat.com>
Wed, 29 Jul 2020 12:29:01 +0000 (20:29 +0800)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 12:29:01 +0000 (20:29 +0800)
mgr/cephadm: add `orch ok-to-stop` commands

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
1  2 
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/module.py

Simple merge
index d7230b320613e43f905f72052c43a51b98c5dd90,2bbf89b02a09d56a8e8e3f79bf56a3727db54fc1..4a90ad333229a42ace5836c1cb7203d7dbe7636d
@@@ -840,8 -845,16 +846,16 @@@ class Orchestrator(object)
          """
          raise NotImplementedError()
  
+     def host_ok_to_stop(self, hostname:str) -> Completion:
+         """
+         Check if the specified host can be safely stopped without reducing availability
+         :param host: hostname
+         """
+         raise NotImplementedError()
      def get_inventory(self, host_filter=None, refresh=False):
 -        # type: (Optional[InventoryFilter], bool) -> Completion
 +        # type: (Optional[InventoryFilter], bool) -> Completion[List[InventoryHost]]
          """
          Returns something that was created by `ceph-volume inventory`.
  
Simple merge