]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: test "orchestrator host ls" 32881/head
authorKefu Chai <kchai@redhat.com>
Fri, 31 Jan 2020 06:01:52 +0000 (14:01 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 6 Feb 2020 01:53:17 +0000 (09:53 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/cephadm.py

index 7e198b47397909a606e839549474eae7a4460844..c9854badc33ade50199b761ba23b4fee7815d5b7 100644 (file)
@@ -417,6 +417,11 @@ def ceph_bootstrap(ctx, config):
                 'ceph', 'orchestrator', 'host', 'add',
                 remote.shortname
             ])
+            r = _shell(ctx, cluster_name, remote,
+                       ['ceph', 'orchestrator', 'host', 'ls', '--format=json'],
+                       stdout=StringIO())
+            hosts = [node['host'] for node in json.loads(r.stdout.getvalue())]
+            assert remote.shortname in hosts
 
         yield