Skip to content

Commit

Permalink
qa/tasks/cephadm: test "orchestrator host ls"
Browse files Browse the repository at this point in the history
Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Feb 5, 2020
1 parent e100019 commit 988fc9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qa/tasks/cephadm.py
Expand Up @@ -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

Expand Down

0 comments on commit 988fc9a

Please sign in to comment.