]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: use osd ids instead of device name in ooo_collocation
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 22 Oct 2019 11:27:20 +0000 (13:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 22 Oct 2019 11:45:19 +0000 (13:45 +0200)
on master, it doesn't make sense anymore to use device name, we should
use osd id instead.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/conftest.py

index 47b10c2ee3664b1452cec6c6fc054a9ce42dff15..032e704a0ff448fed2afdca28ff8df1bf8473597 100644 (file)
@@ -60,12 +60,6 @@ def setup(host):
         if cmd.rc == 0:
             osd_ids = cmd.stdout.rstrip("\n").split("\n")
             osds = osd_ids
-            if docker and fsid == "6e008d48-1661-11e8-8546-008c3214218a":
-                osds = []
-                for device in ansible_vars.get("devices", []):
-                    real_dev = host.run("sudo readlink -f %s" % device)
-                    real_dev_split = real_dev.stdout.split("/")[-1]
-                    osds.append(real_dev_split)
 
     address = host.interface(public_interface).addresses[0]