On Ubuntu Focal, Victoria os-tempest playbook fails when installing pip packages

Bug #1925331 reported by JF Taltavull
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

On Ubuntu Focal, os-tempest playbook fails when installing pip packages in utility container.

"python.h: file not found" is logged in /var/log/python_venv_build.log

"python.h" file is part of "python3-dev" apt package.

Revision history for this message
Jonathan Heathcote (mossblaser) wrote :

See extra details of this bug (and why it escaped CI) can be found in the duplicate bug: https://bugs.launchpad.net/openstack-ansible/+bug/1933349.

The bug is fixed by https://review.opendev.org/q/a12a662114dda5c19269bff6bf067271d35e7f69 and a backport to stable/victoria is on its way.

In the meantime, you can cherry-pick the bugfix into your own checkout of the os_tempest role. For example, if you're following the AIO guide, after running scripts/bootstrap-ansible.sh, run the following to apply the fix:

    # cd /etc/ansible/roles/os_tempest
    # git fetch "https://review.opendev.org/openstack/openstack-ansible-os_tempest" refs/changes/58/794158/1 && git cherry-pick FETCH_HEAD

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_tempest (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/797031
Committed: https://opendev.org/openstack/openstack-ansible-os_tempest/commit/c81740773db15b32393413ef3fd3036774832365
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit c81740773db15b32393413ef3fd3036774832365
Author: Dmitriy Rabotyagov <email address hidden>
Date: Wed Jun 2 10:59:31 2021 +0300

    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
    Closes-Bug: 1925331
    (cherry picked from commit a12a662114dda5c19269bff6bf067271d35e7f69)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_tempest victoria-eom

This issue was fixed in the openstack/openstack-ansible-os_tempest victoria-eom release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.