From b8bd982daf40403fa78df6560ea07696a4b7f3f2 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 30 Aug 2022 12:49:16 -0700 Subject: [PATCH] Install refstack with openstack constraints Refstack does not work with cryptography 37.0.0. In debugging how this passes testing I noticed that Refstack's tox.ini uses openstack constraints. Arguably it shouldn't do this as it isn't part of coinstalled opensdtack services, but since this is how they test things we should mimic it in our deployment. Update the Dockerfile to copy in the upper-contraints file to the /tmp/src dir which the assemble script should honor. Change-Id: I4603702982e5c03b4a1d110363787b1f04887a29 --- docker/refstack/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/refstack/Dockerfile b/docker/refstack/Dockerfile index d8d0ef0945..fc3e73787f 100644 --- a/docker/refstack/Dockerfile +++ b/docker/refstack/Dockerfile @@ -31,7 +31,11 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN git clone https://opendev.org/openinfra/refstack /tmp/src +# Refstack uses openstack constraints (it probably shouldn't) in CI +# unittesting. Install with constraints here to ensure we're installing +# what is in theory tested. +RUN git clone https://opendev.org/openinfra/refstack /tmp/src \ + && curl https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt -o /tmp/src/upper-constraints.txt RUN assemble