From a12a662114dda5c19269bff6bf067271d35e7f69 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 2 Jun 2021 10:59:31 +0300 Subject: [PATCH] Install py3-dev when not building wheels When we're in CI and not building wheels, we might appear missing py3-dev inside utility container, which is required for netifaces. So we add it as `tempest_devel_distro_packages` which will get package installed on the required target. Change-Id: Ie8e04a1635a32e368ec3906082f7773dcefd30d1 --- tasks/tempest_install_source.yml | 1 + vars/debian.yml | 3 +++ vars/redhat-7.yml | 3 +++ vars/redhat-8.yml | 3 +++ 4 files changed, 10 insertions(+) diff --git a/tasks/tempest_install_source.yml b/tasks/tempest_install_source.yml index 171d9c46..06801ca4 100644 --- a/tasks/tempest_install_source.yml +++ b/tasks/tempest_install_source.yml @@ -38,6 +38,7 @@ venv_python_executable: "{{ tempest_venv_python_executable }}" venv_build_constraints: "{{ (tempest_git_repo is defined) | ternary( _u_c_contents.content.split('\n') | reject('match', '[tempest=*]') | list, tempest_git_constraints) }}" venv_install_destination_path: "{{ tempest_venv_bin | dirname }}" + venv_build_distro_package_list: "{{ tempest_devel_distro_packages }}" venv_pip_install_args: "{{ tempest_pip_install_args }}" venv_wheel_build_enable: "{{ venv_build_host != inventory_hostname }}" venv_pip_packages: "{{ tempest_pip_packages + tempest_pip_plugins }}" diff --git a/vars/debian.yml b/vars/debian.yml index 1e708d0b..2fdbaadb 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -24,6 +24,9 @@ tempest_distro_packages: - build-essential # required to build tempest plugins (TODO) remove this when repo server can satisfy the tempest plugin requirements - nmap # provides ncat tool which is required by some of the neutron-tempest-plugin scenario tests +tempest_devel_distro_packages: + - python3-dev # required for netifaces module for stackviz + tempest_service_distro_packages: - tempest - python3-junitxml diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index c38797fc..67f03dba 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -25,6 +25,9 @@ tempest_service_distro_packages: - python-subunit - subunit-filters +tempest_devel_distro_packages: + - python3-devel # required for netifaces module for stackviz + tempest_plugin_distro_packages: - "{{ (tempest_service_available_aodh | bool) | ternary('python-telemetry-tests-tempest', '') }}" - "{{ (tempest_service_available_barbican | bool) | ternary('python-barbican-tests-tempest', '') }}" diff --git a/vars/redhat-8.yml b/vars/redhat-8.yml index a8c0e2c3..ea6498bf 100644 --- a/vars/redhat-8.yml +++ b/vars/redhat-8.yml @@ -33,6 +33,9 @@ tempest_service_distro_packages: - python3-subunit - subunit-filters +tempest_devel_distro_packages: + - python3-devel # required for netifaces module for stackviz + tempest_plugin_distro_packages: - "{{ (tempest_service_available_aodh | bool) | ternary('python3-telemetry-tests-tempest', '') }}" - "{{ (tempest_service_available_barbican | bool) | ternary('python3-barbican-tests-tempest', '') }}"