]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: supply cluster name to ceph CLI 16212/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 7 Jul 2017 15:21:51 +0000 (11:21 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 7 Jul 2017 15:21:51 +0000 (11:21 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/tasks/ceph.py

index 23e01f23b9ed8498811f1feba187cef9a9c026ad..1eaab1f1a4e95683b494684ff61e2fcec7a9cbd2 100644 (file)
@@ -1121,38 +1121,24 @@ def run_daemon(ctx, config, type_):
                 try:
                     remote.run(
                         args=[
-                            'sudo',
-                            'ceph',
-                            'osd',
-                            'new',
-                            osd_uuid,
-                            id_,
+                            'sudo', 'ceph', '--cluster', cluster_name,
+                            'osd', 'new', osd_uuid, id_,
                         ]
                     )
                 except:
                     # fallback to pre-luminous
                     remote.run(
                         args=[
-                            'sudo',
-                            'ceph',
-                            'osd',
-                            'create',
-                            osd_uuid,
-                            id_,
+                            'sudo', 'ceph', '--cluster', cluster_name,
+                            'osd', 'create', osd_uuid, id_,
                         ]
                     )
                 if config.get('add_osds_to_crush'):
                     remote.run(
                         args=[
-                            'sudo',
-                            'ceph',
-                            'osd',
-                            'crush',
-                            'create-or-move',
-                            'osd.' + id_,
-                            '1.0',
-                            'host=localhost',
-                            'root=default',
+                            'sudo', 'ceph', '--cluster', cluster_name,
+                            'osd', 'crush', 'create-or-move', 'osd.' + id_,
+                            '1.0', 'host=localhost', 'root=default',
                         ]
                     )