]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: osd adjust osd name
authorSébastien Han <seb@redhat.com>
Mon, 1 Oct 2018 14:00:21 +0000 (16:00 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Oct 2018 20:08:41 +0000 (16:08 -0400)
Now we use id of the OSD instead of the device name.

Signed-off-by: Sébastien Han <seb@redhat.com>
tests/functional/tests/osd/test_osds.py

index ed0e5a7bcf2f3d690e5d1f3b70fbe869bdd3efb8..feafc219b7da9eb9f4b61fa5705f951a4bd2364f 100644 (file)
@@ -71,7 +71,7 @@ class TestOSDs(object):
 
     @pytest.mark.docker
     def test_all_docker_osds_are_up_and_in(self, node, host):
-        cmd = "sudo docker exec ceph-osd-{hostname}-sda ceph --cluster={cluster} --connect-timeout 5 --keyring /var/lib/ceph/bootstrap-osd/{cluster}.keyring -n client.bootstrap-osd osd tree -f json".format(
+        cmd = "sudo docker exec ceph-osd-0 ceph --cluster={cluster} --connect-timeout 5 --keyring /var/lib/ceph/bootstrap-osd/{cluster}.keyring -n client.bootstrap-osd osd tree -f json".format(
             hostname=node["vars"]["inventory_hostname"],
             cluster=node["cluster_name"]
         )