]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk tests pid files must exist
authorLoic Dachary <ldachary@redhat.com>
Mon, 1 Feb 2016 11:26:05 +0000 (18:26 +0700)
committerLoic Dachary <ldachary@redhat.com>
Thu, 4 Feb 2016 10:01:46 +0000 (17:01 +0700)
http://tracker.ceph.com/issues/13422 made it so ceph-osd won't start
unless the pidfile can be created successfully. The default location
being the current directory, ceph-osd must explicitly be told to write
in a directory where it has write permissions.

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-disk/ceph-disk-test.py

index 76c99a4187ea8c6b047e3dad3da5d845122b7425..0ab5de2a08acb193a342cd22b478fa9c97a4987c 100644 (file)
@@ -209,6 +209,7 @@ class TestCephDisk(object):
         c = CephDisk()
         if c.sh("lsb_release -si").strip() == 'CentOS':
             c.helper("install multipath-tools device-mapper-multipath")
+        c.conf['global']['pid file'] = '/var/run/ceph/$cluster-$name.pid'
         #
         # objecstore
         #