Include building python-tempestconf from source in Tempest

* python-tempestconf is an automatic Tempest config generator.
  Currently it is used in RefStack and Tripleo projects and
  installed directly RDO shipped tempest RPM package. It would
  be good to include in Tempest container so that it can be while
  using tempest container image from source.

* http://git.openstack.org/cgit/openstack/python-tempestconf

Change-Id: I47e812427343b16662378381e96ab354904256c5
This commit is contained in:
Chandan Kumar 2018-01-08 16:19:54 +05:30
parent d38a885a01
commit fd85895a54
2 changed files with 12 additions and 0 deletions

View File

@ -23,17 +23,25 @@ RUN ln -sf /var/lib/tempest /tempest
{% elif install_type == 'source' %}
ADD tempest-archive /tempest-source
ADD plugins-archive /
{% set tempest_pip_packages = [
'/tempest',
'nose'
] %}
{% set tempest_base_plugins_pip_packages = [
'/plugins/*'
] %}
# 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 \
&& {{ macros.install_pip(tempest_pip_packages | customizable("pip_packages")) }} \
&& if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(tempest_base_plugins_pip_packages) }}; \
fi \
&& mkdir -p /etc/tempest /var/log/tempest /etc/tempest/tempest_lock
{% endif %}

View File

@ -621,6 +621,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/panko/'
'panko-master.tar.gz')},
'tempest-plugin-tempest-conf': {
'type': 'url',
'location': ('$tarballs_base/python-tempestconf/'
'python-tempestconf-master.tar.gz')},
'rally': {
'type': 'url',
'location': ('$tarballs_base/rally/'