Install neutron package due to upper-constraints 65/67665/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 22 Apr 2019 08:39:45 +0000 (10:39 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 22 Apr 2019 08:41:44 +0000 (10:41 +0200)
SFC requires constraints about neutron.
We do switch to packages instead of cloning repos when generating policy
files [1].

[1] https://build.opnfv.org/ci/view/functest%20(Installer%20gates)/job/functest-docker-iruya/25/

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

index 6b8a4ad..568646e 100644 (file)
@@ -34,12 +34,11 @@ RUN apk --no-cache add --virtual .build-deps --update \
     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 && \
     pip 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 neutron && \
     oslopolicy-sample-generator  --format json --output-file /etc/neutron/policy.json --namespace neutron && \
     deactivate && \
     rm -r oslo upper-constraints.txt upper-constraints.opnfv.txt \
-        /src/patrole /src/barbican-tempest-plugin \
-        /src/neutron && \
+        /src/patrole /src/barbican-tempest-plugin && \
     apk del .build-deps
 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
 CMD ["run_tests", "-t", "all"]