From: Andrew Schoen Date: Mon, 1 May 2017 15:45:44 +0000 (-0500) Subject: tests: test that all docker OSDs are up and in X-Git-Tag: v2.3.0rc1~34^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1485%2Fhead;p=ceph-ansible.git tests: test that all docker OSDs are up and in Signed-off-by: Andrew Schoen --- diff --git a/tests/functional/tests/mon/test_mons.py b/tests/functional/tests/mon/test_mons.py index 73229f0a0..d97429aff 100644 --- a/tests/functional/tests/mon/test_mons.py +++ b/tests/functional/tests/mon/test_mons.py @@ -37,3 +37,13 @@ class TestOSDs(object): output = Command.check_output(cmd) phrase = "{num_osds} osds: {num_osds} up, {num_osds} in".format(num_osds=node["total_osds"]) assert phrase in output + + @pytest.mark.docker + def test_all_docker_osds_are_up_and_in(self, node, Command): + cmd = "sudo docker exec ceph-mon-ceph-{} ceph --cluster={} --connect-timeout 5 -s".format( + node["vars"]["inventory_hostname"], + node["cluster_name"] + ) + output = Command.check_output(cmd) + phrase = "{num_osds} osds: {num_osds} up, {num_osds} in".format(num_osds=node["total_osds"]) + assert phrase in output