From: Kefu Chai Date: Fri, 31 Jan 2020 06:01:52 +0000 (+0800) Subject: qa/tasks/cephadm: test "orchestrator host ls" X-Git-Tag: v15.1.1~530^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=edca34ea6772e21a309b4bc8a404f39ed421a8b6;p=ceph.git qa/tasks/cephadm: test "orchestrator host ls" Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 7e198b473979..c9854badc33a 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -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