]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk: only install multipath on CentOS
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 20:05:09 +0000 (22:05 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:57 +0000 (08:46 +0200)
If installed on Ubuntu where multipath does not activate properly, it
interferes with the other tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
qa/workunits/ceph-disk/ceph-disk-test.py

index cca4b81deebbecdccf580e699e065b3f5ca7dc5e..bcd153d6ce809808b856be0ff4eca24e43b68525 100644 (file)
@@ -185,7 +185,8 @@ class TestCephDisk(object):
         logging.basicConfig(level=logging.DEBUG)
         c = CephDisk()
         c.helper("install augeas-tools augeas")
-        c.helper("install multipath-tools device-mapper-multipath")
+        if c.sh("lsb_release -si") == 'CentOS':
+            c.helper("install multipath-tools device-mapper-multipath")
         c.augtool("set /files/etc/ceph/ceph.conf/global/osd_journal_size 100")
 
     def test_destroy_osd(self):