]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ssh: pass crash agent keyring to deploy 30734/head
authorSage Weil <sage@redhat.com>
Sat, 5 Oct 2019 19:24:06 +0000 (14:24 -0500)
committerSage Weil <sage@redhat.com>
Tue, 8 Oct 2019 00:53:43 +0000 (19:53 -0500)
...and adjust argument name

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/ssh/module.py

index 96334da55ebad1dac0cb1f4fb3fee2e8614606f6..c6d0b003fca26dc8a9904b563320afcf2f3d1e69 100644 (file)
@@ -546,16 +546,24 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator):
             })
             self.log.debug('config %s' % config)
 
+            ret, crash_keyring, err = self.mon_command({
+                'prefix': 'auth get-or-create',
+                'entity': 'client.crash.%s' % host,
+                'caps': ['mon', 'allow profile crash',
+                         'mgr', 'allow profile crash'],
+            })
+
             j = json.dumps({
                 'config': config,
                 'keyring': keyring,
+                'crash_keyring': crash_keyring,
             })
 
             out, code = self._run_ceph_daemon(
                 host, name, 'deploy',
                 [
                     '--name', name,
-                    '--config-and-keyring', '-',
+                    '--config-and-keyrings', '-',
                 ] + extra_args,
                 stdin=j)
             self.log.debug('create_daemon code %s out %s' % (code, out))