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
This commit is contained in:
Dmitriy Rabotyagov 2021-06-02 10:59:31 +03:00
parent f08b2b1d4e
commit a12a662114
4 changed files with 10 additions and 0 deletions

View File

@ -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 }}"

View File

@ -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

View File

@ -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', '') }}"

View File

@ -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', '') }}"