Package "python-devel [platform:rpm test]" defined by bindep fails on RHEL 8

Bug #2007959 reported by Jorge San Emeterio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Committed
Undecided
Jorge San Emeterio

Bug Description

Description
===========
On "stable/train" at "bindep.txt", line "python-devel [platform:rpm test]" should be "python3-devel [platform:rpm test]", otherwise during CI automation tools will fail while trying to install the package on RHEL 8. Versions after train have performed this change, so I expect this is not the first time the problem has happened.

Steps to reproduce
==================
1.- On stock RHEL 8.4, run: dnf install python-devel
2.- RHEL will complain that the package is unknown.

Expected result
===============
RHEL is capable of installing the "python36-devel" package and its dependencies through the "python3-devel" alias.

Actual result
=============
RHEL does not find the "python-devel" package.

Environment
===========
RHEL 8.4
Python 3.6

Changed in nova:
assignee: nobody → Jorge San Emeterio (jsanemet)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/train)

Reviewed: https://review.opendev.org/c/openstack/nova/+/874547
Committed: https://opendev.org/openstack/nova/commit/47df96c09f0e7ca0ebaf30902607fc983590ecfa
Submitter: "Zuul (22348)"
Branch: stable/train

commit 47df96c09f0e7ca0ebaf30902607fc983590ecfa
Author: Jorge San Emeterio <email address hidden>
Date: Tue Feb 21 11:10:07 2023 +0100

    [stable-only] Add binary test dependency "python3-devel" for py3 based RPM distros.

    Coming from RHEL 8, dependency "python-devel [platform:rpm test]"
    indicated on "bindep.txt" cannot be satisfied by the distribution.
    RHEL 8 expects the package name to be "python3-devel" instead. For such
    reason, this change adds a conditional that will select the proper
    package name depending on whether the distro is based on python 2 or 3.
    Other RPM distributions like CentOS should also benefit from this
    change.

    Conditionals for the python version are inverted ("!"), that is because
    trying to filter them positively resulted in both conditions triggering
    at the same time. This way works for RHEL 8, although it would still
    need testing on something RHEL 7 based.

    Closes-Bug: #2007959
    Change-Id: I0aac20be976e687229f4759e1364718aa663cf27

tags: added: in-stable-train
Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova train-eol

This issue was fixed in the openstack/nova train-eol release.

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

Other bug subscribers

Remote bug watches

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