diff --git a/docker/tempest/Dockerfile.j2 b/docker/tempest/Dockerfile.j2
index b259a10543deae84a6d611c9143eed967d73dc20..0d7eee9424ce937ea43b1f8b65eba49006ad537c 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