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
This commit is contained in:
Dan Smith
2020-06-08 12:33:59 -07:00
parent bcd94d1f7e
commit a81189b0e2
2 changed files with 60 additions and 1 deletions
+10
View File
@@ -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