From 9bde62345bc9cf94a55c3a3c78133643615d8e68 Mon Sep 17 00:00:00 2001
From: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Sat, 2 Apr 2016 21:23:34 +0800
Subject: [PATCH] Remove the tempest version constrains in tempest container

Remove the tempest version constraint in the upper-constrains.txt
file. Otherwise, it will be failed.

Closes-Bug: #1565268
Change-Id: I693efe1818bfae0eac1649cbc058d1752724cd59
---
 docker/tempest/Dockerfile.j2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2
index b259a1054..0d7eee942 100644
--- a/docker/tempest/Dockerfile.j2
+++ b/docker/tempest/Dockerfile.j2
@@ -18,7 +18,10 @@ RUN apt-get install -y --no-install-recommends \
 {% elif install_type == 'source' %}
 
 ADD tempest-archive /tempest-source
+# NOTE(Jeffrey4l): remove the tempest version constraint in the
+# upper-constrains.txt file. Otherwise, it will be failed.
 RUN ln -s tempest-source/* tempest \
+    && sed -i 's/^tempest===.*$//' requirements/upper-constraints.txt \
     && /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tempest \
     && mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
 
-- 
GitLab