To disable the orchestrator again, use the empty string ``""``::
ceph orchestrator set backend ""``
- ceph mgr module disalbe rook
+ ceph mgr module disable rook
Usage
=====
def test_crash(self):
self._selftest_plugin("crash")
+ def test_orchestrator_cli(self):
+ self._selftest_plugin("orchestrator_cli")
+
+
def test_selftest_config_update(self):
"""
That configuration updates are seen by running mgr modules
return self._get_module_option(key, default, self.get_mgr_id())
def _set_module_option(self, key, val):
- return self._ceph_set_module_option(self.module_name, key, str(val))
+ return self._ceph_set_module_option(self.module_name, key,
+ None if val is None else str(val))
def set_module_option(self, key, val):
"""
"""
mgr_map = self.get("mgr_map")
- if module_name == "":
+ if module_name is None or module_name == "":
self.set_module_option("orchestrator", None)
return HandleCommandResult()
o, avail,
" ({0})".format(why) if not avail else ""
))
+
+ def self_test(self):
+ old_orch = self._select_orchestrator()
+ self._set_backend('')
+ assert self._select_orchestrator() is None
+ self._set_backend(old_orch)