Generate /etc/glance/policy.json 76/69576/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 24 Jan 2020 19:59:03 +0000 (20:59 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 24 Jan 2020 19:59:03 +0000 (20:59 +0100)
It takes into account the following change in glance [1]

[1] https://github.com/openstack/glance/commit/5c17e4c7ef533b57ba15ead931b0452e23f46b4b#diff-335462891f7178710c6ca7185f9f877c

Change-Id: I61e37cd2383620fa6db665f1858830b9c5d13938
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/smoke/Dockerfile

index 16b9f52..e62a350 100644 (file)
@@ -56,11 +56,12 @@ RUN apk --no-cache add --update libxml2 libxslt && \
         /src/octavia-tempest-plugin && \
     mkdir -p /home/opnfv/functest/data/refstack && \
     mkdir -p /etc/neutron /etc/cinder /etc/glance /etc/keystone /etc/nova && \
-    wget -q -O /etc/glance/policy.json https://opendev.org/openstack/glance/raw/branch/$OPENSTACK_TAG/etc/policy.json && \
     virtualenv --no-pip --no-setuptools --no-wheel oslo && . oslo/bin/activate && \
     pip3 install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
-        oslo.policy -e git+https://opendev.org/openstack/neutron.git@$OPENSTACK_TAG#egg=neutron && \
+        oslo.policy -e git+https://opendev.org/openstack/neutron.git@$OPENSTACK_TAG#egg=neutron \
+        -e git+https://opendev.org/openstack/glance.git@$OPENSTACK_TAG#egg=glance && \
     oslopolicy-sample-generator  --format json --output-file /etc/neutron/policy.json --namespace neutron && \
+    oslopolicy-sample-generator  --format json --output-file /etc/glance/policy.json --namespace glance && \
     deactivate && \
     rm -r oslo upper-constraints.txt upper-constraints.opnfv.txt \
         /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin \