with self._with_host(cephadm_module, 'test'):
c = cephadm_module.list_daemons(refresh=True)
wait(cephadm_module, c)
- c = cephadm_module.remove_osds(['0'])
+ c = cephadm_module.remove_daemons(['osd.0'])
out = wait(cephadm_module, c)
assert out == ["Removed osd.0 from host 'test'"]
)
])
))
- def test_remove_rgw(self, cephadm_module):
+ def test_remove_service(self, cephadm_module):
with self._with_host(cephadm_module, 'test'):
c = cephadm_module.list_daemons(refresh=True)
wait(cephadm_module, c)
- c = cephadm_module.remove_rgw('myrgw')
+ c = cephadm_module.remove_service('rgw', 'myrgw')
out = wait(cephadm_module, c)
assert out == ["Removed rgw.myrgw.foobar from host 'test'"]
)
- @deferred_write("remove_osds")
- def remove_osds(self, osd_ids, destroy=False):
- assert isinstance(osd_ids, list)
+ @deferred_write("remove_daemons")
+ def remove_daemons(self, names):
+ assert isinstance(names, list)
+
+ @deferred_write("remove_service")
+ def remove_service(self, service_type, service_name):
+ assert isinstance(service_type, str)
+ assert isinstance(service_name, str)
@deferred_write("blink_device_light")
def blink_device_light(self, ident_fault, on, locations):
# type: (orchestrator.NFSServiceSpec) -> None
assert isinstance(spec.pool, str)
- @deferred_write("remove_nfs")
- def remove_nfs(self, name):
- pass
-
@deferred_write("update_nfs")
def update_nfs(self, spec):
pass
def add_mds(self, spec):
pass
- @deferred_write("remove_mds")
- def remove_mds(self, name):
- pass
-
@deferred_write("add_rgw")
def add_rgw(self, spec):
pass
- @deferred_write("remove_rgw")
- def remove_rgw(self, zone):
- pass
-
-
@deferred_read
def get_hosts(self):
if self._inventory: