]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: use CephContainer during command `enter`
authorMichael Fritch <mfritch@suse.com>
Tue, 14 Apr 2020 21:42:44 +0000 (15:42 -0600)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 22 Apr 2020 13:06:38 +0000 (15:06 +0200)
instead of the `get_container` helper func

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 3c762d0ed92d38a2c47bf273bf17600f101ed1bb)

src/cephadm/cephadm

index 73f930593f77bb6eb8a642cf6815a28890bd18db..05b6fd0ba61d417d31105728074230406e8605a1 100755 (executable)
@@ -2779,8 +2779,12 @@ def command_enter():
             '-e', 'LANG=C',
             '-e', "PS1=%s" % CUSTOM_PS1,
         ]
-    c = get_container(args.fsid, daemon_type, daemon_id,
-                      container_args=container_args)
+    c = CephContainer(
+        image=args.image,
+        entrypoint='doesnotmatter',
+        container_args=container_args,
+        cname='ceph-%s-%s.%s' % (args.fsid, daemon_type, daemon_id),
+    )
     command = c.exec_cmd(command)
     return call_timeout(command, args.timeout)