summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorDan Smith <dansmith@redhat.com>2020-06-08 12:33:59 -0700
committerDan Smith <dansmith@redhat.com>2020-07-14 09:11:42 -0700
commita81189b0e2957ac0f0253735aea02c4413eb91f0 (patch)
tree513f555b0587306b8d379d55dfa79af0ab2fbfb5 /playbooks
parentbcd94d1f7ee5a036294d7b20c0f6a25f2a387030 (diff)
downloadnova-a81189b0e2957ac0f0253735aea02c4413eb91f0.tar.gz
Make our ceph job test with glance in multistore mode
This makes our ceph job configure glance with multiple stores enabled. It also makes sure that devstack uploads the cirros image to the file- backed store, and configures nova for automatic copy-to-store functionality. In order to allow this, we must grant all users ability to copy-to-store for public images, since the tempest tests run as their own users. This broadens the coverage of our ceph job to hit not only the ceph paths, but the copy-to-store paths, as well as glance's multi-store paths, and glance's async task paths. Related to bp/rbd-glance-multistore Depends-On: https://review.opendev.org/#/c/740322 Depends-On: https://review.opendev.org/#/c/738703 Change-Id: Iff5e9eaed7eb2345eaafc90c8cd6466a2cbca08c
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/ceph/glance-copy-policy.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/playbooks/ceph/glance-copy-policy.yaml b/playbooks/ceph/glance-copy-policy.yaml
new file mode 100644
index 0000000000..3e9f7f0201
--- /dev/null
+++ b/playbooks/ceph/glance-copy-policy.yaml
@@ -0,0 +1,10 @@
+- hosts: controller
+ tasks:
+ - name: create local.sh
+ become: yes
+ blockinfile:
+ path: /opt/stack/devstack/local.sh
+ create: True
+ mode: 0777
+ block: |
+ echo $'{"copy_image": "\'public\':%(visibility)s"}' > /etc/glance/policy.json