]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk workunit uses the ceph task 6828/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 21 Oct 2015 23:48:31 +0000 (01:48 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 8 Dec 2015 18:41:18 +0000 (19:41 +0100)
The ceph-disk workunit deploy keys that are not deployed by default by
the ceph teuthology task.

The OSD created by the ceph task are removed from the default
bucket (via osd rm) so they do not interfere with the tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 163de5b0f8f46695ab41b3f2288e9b5c1feaedab)

qa/workunits/ceph-disk/ceph-disk.sh

index 69bf525baa6dee787e048cfe7034e9a88e4ba303..044517db8615d6ae73f04070221494bacb80e3ab 100755 (executable)
@@ -9,6 +9,17 @@ fi
 install python-pytest || true
 install pytest || true
 
+# complete the cluster setup done by the teuthology ceph task
+sudo chown $(id -u) /etc/ceph/ceph.conf
+if ! test -f /etc/ceph/ceph.client.admin.keyring ; then
+    sudo cp /etc/ceph/ceph.keyring /etc/ceph/ceph.client.admin.keyring
+fi
+if ! sudo test -f /var/lib/ceph/bootstrap-osd/ceph.keyring ; then
+    sudo ceph-create-keys --id a
+fi
+sudo ceph osd crush rm osd.0 || true
+sudo ceph osd crush rm osd.1 || true
+
 PATH=$(dirname $0)/..:$PATH
 
 if ! which py.test > /dev/null; then