]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | tasks: |
2 | - qemu: | |
3 | all: | |
4 | type: filesystem | |
5 | cpus: 4 | |
6 | memory: 12288 | |
7 | disks: | |
8 | - image_size: 30720 | |
9 | - image_size: 30720 | |
10 | test: http://git.ceph.com/?p={repo};a=blob_plain;hb={branch};f=qa/workunits/rbd/run_devstack_tempest.sh | |
11 | image_url: https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img | |
12 | cloud_config_archive: | |
13 | - type: text/cloud-config | |
14 | content: | | |
15 | users: | |
16 | - name: stack | |
17 | lock_passwd: False | |
18 | shell: /bin/bash | |
19 | sudo: ["ALL=(root) NOPASSWD:ALL\nDefaults:stack,tempest !requiretty"] | |
20 | - name: tempest | |
21 | lock_passwd: False | |
22 | shell: /bin/bash | |
23 | sudo: | |
24 | - "ALL=(root) NOPASSWD:/sbin/ip" | |
25 | - "ALL=(root) NOPASSWD:/sbin/iptables" | |
26 | - "ALL=(root) NOPASSWD:/usr/bin/ovsdb-client" | |
27 | - | | |
28 | #!/bin/bash -ex | |
224ce89b WB |
29 | wget -q -O- "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc" | apt-key add - |
30 | wget -q -O /etc/apt/sources.list.d/ceph.list "https://shaman.ceph.com/api/repos/ceph/{ceph_branch}/{ceph_sha1}/ubuntu/xenial/repo" | |
31 | apt-get update | |
32 | ||
7c673cae FG |
33 | mount --bind /mnt/test_b /opt |
34 | mkdir /opt/stack | |
35 | chown -R stack:stack /home/stack | |
36 | chown -R stack:stack /opt/stack | |
37 | ||
38 | mkdir /mnt/log/stack | |
39 | chmod a+rwx /mnt/log/stack | |
40 | chown -R stack:stack /mnt/log/stack | |
224ce89b WB |
41 | |
42 | apt-get install -y ceph-common librbd1 | |
43 | ||
44 | mkdir /mnt/log/stack/ceph | |
45 | chown -R stack:stack /mnt/log/stack/ceph | |
46 | chmod a+rwx /mnt/log/stack/ceph | |
47 | ||
48 | # sanity check that the cluster is reachable from the VM | |
49 | echo '[client]' >> /etc/ceph/ceph.conf | |
50 | echo 'log file = /mnt/log/stack/ceph/$name.$pid.log' >> /etc/ceph/ceph.conf | |
51 | rbd --debug-ms=10 --debug-rbd=20 info client.0.1 |