if not image:
daemon_type = entity.split('.', 1)[0] # type: ignore
if daemon_type in CEPH_TYPES or \
- daemon_type == 'nfs':
+ daemon_type == 'nfs' or \
+ daemon_type == 'iscsi':
# get container image
- ret, image, err = self.mon_command({
+ ret, image, err = self.check_mon_command({
'prefix': 'config get',
'who': utils.name_to_config_section(entity),
'key': 'container_image',
return ret_all
def _run_ceph_volume_command(self, host: str, cmd: str) -> Tuple[List[str], List[str], int]:
- self._require_hosts(host)
+ self.inventory.assert_host(host)
# get bootstrap key
- ret, keyring, err = self.mon_command({
+ ret, keyring, err = self.check_mon_command({
'prefix': 'auth get',
'entity': 'client.bootstrap-osd',
})