5 - print: "**** done ceph"
14 test: qa/workunits/rbd/run_devstack_tempest.sh
15 image_url: https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img
17 - type: text/cloud-config
23 sudo: ["ALL=(root) NOPASSWD:ALL\nDefaults:stack,tempest !requiretty"]
28 - "ALL=(root) NOPASSWD:/sbin/ip"
29 - "ALL=(root) NOPASSWD:/sbin/iptables"
30 - "ALL=(root) NOPASSWD:/usr/bin/ovsdb-client"
33 wget -q -O- "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc" | apt-key add -
34 wget -q -O /etc/apt/sources.list.d/ceph.list "https://shaman.ceph.com/api/repos/ceph/{ceph_branch}/{ceph_sha1}/ubuntu/xenial/repo"
37 mount --bind /mnt/test_b /opt
39 chown -R stack:stack /home/stack
40 chown -R stack:stack /opt/stack
43 chmod a+rwx /mnt/log/stack
44 chown -R stack:stack /mnt/log/stack
46 apt-get install -y ceph-common librbd1
48 mkdir /mnt/log/stack/ceph
49 chown -R stack:stack /mnt/log/stack/ceph
50 chmod a+rwx /mnt/log/stack/ceph
52 # sanity check that the cluster is reachable from the VM
53 echo '[client]' >> /etc/ceph/ceph.conf
54 echo 'log file = /mnt/log/stack/ceph/$name.$pid.log' >> /etc/ceph/ceph.conf
55 rbd --debug-ms=10 --debug-rbd=20 info client.0.1
56 - print: "**** done qemu task!"