]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #34690 from sebastian-philipp/cephadm-crush-keyring-erro
authorKefu Chai <kchai@redhat.com>
Fri, 1 May 2020 05:02:18 +0000 (13:02 +0800)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 05:02:18 +0000 (13:02 +0800)
mgr/cephadm: raise, if crash keyring fails

Reviewed-by: Michael Fritch <mfritch@suse.com>
1  2 
src/pybind/mgr/cephadm/module.py

index 89af9d14b044bc3e4d125e15dc64447422698897,c8d1976b6fef8929df61b2a0fe8bb71d18ca9160..438c56a885c3d8a5cf776149bdd1cf77cdf49bfa
@@@ -1555,10 -1573,9 +1553,10 @@@ class CephadmOrchestrator(orchestrator.
              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',
          })