From edca34ea6772e21a309b4bc8a404f39ed421a8b6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 31 Jan 2020 14:01:52 +0800 Subject: [PATCH] qa/tasks/cephadm: test "orchestrator host ls" Signed-off-by: Kefu Chai --- qa/tasks/cephadm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 7e198b47397..c9854badc33 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 -- 2.39.5