]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/suites/rbd: sanity check cluster connection before devstack runs
authorJason Dillaman <dillaman@redhat.com>
Mon, 22 May 2017 20:51:10 +0000 (16:51 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 27 Jun 2017 16:48:08 +0000 (12:48 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/suites/rbd/openstack/workloads/devstack-tempest-gate.yaml

index 38d13ece6d234483e3de717264d72e3cbc6b6a57..26ddda9edcc402f2344ad77ef59f0c42ddb84f66 100644 (file)
@@ -38,3 +38,14 @@ tasks:
         mkdir /mnt/log/stack
         chmod a+rwx /mnt/log/stack
         chown -R stack:stack /mnt/log/stack
+
+        apt-get install -y ceph-common librbd1
+
+        mkdir /mnt/log/stack/ceph
+        chown -R stack:stack /mnt/log/stack/ceph
+        chmod a+rwx /mnt/log/stack/ceph
+
+        # sanity check that the cluster is reachable from the VM
+        echo '[client]' >> /etc/ceph/ceph.conf
+        echo 'log file = /mnt/log/stack/ceph/$name.$pid.log' >> /etc/ceph/ceph.conf
+        rbd --debug-ms=10 --debug-rbd=20 info client.0.1