stx-openstackclients image fails to build due to python2.7

Bug #2043390 reported by Lucas de Ataides Barreto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Lucas de Ataides Barreto

Bug Description

Brief Description
-----------------
After the introduction of https://opendev.org/starlingx/tools/commit/55eebf2d6a2d0acfe7127431ca8395d86b629846 , the stx-openstackclients is failing to build due to the python2.7 package

Severity
--------
Critical: System/Feature is not usable due to the defect

Steps to Reproduce
------------------
Build the stx-openstackclients image

Expected Behavior
------------------
Image builds

Actual Behavior
----------------
Image fails to build

Reproducibility
---------------
Reproducible

Timestamp/Logs
--------------
07:17:46 The following packages have unmet dependencies:
07:17:46 libpython2.7-dev : Depends: libpython2.7-stdlib (= 2.7.18-8) but 2.7.18-8+deb11u1 is to be installed
07:17:46 Depends: libpython2.7 (= 2.7.18-8) but it is not going to be installed
07:17:46 python2.7-dev : Depends: python2.7 (= 2.7.18-8) but 2.7.18-8+deb11u1 is to be installed
07:17:46 Depends: libpython2.7 (= 2.7.18-8) but it is not going to be installed
07:17:46 E: Unable to correct problems, you have held broken packages.
07:17:48 The command '/bin/sh -c /opt/loci/stx-scripts/install.sh' returned a non-zero code: 100
07:17:48 Command (docker) failed, attempt 1 of 3.
07:17:48 Waiting 30 seconds before retrying...

Changed in starlingx:
assignee: nobody → Lucas de Ataides Barreto (ldeataid)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-armada-app (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-armada-app (master)

Reviewed: https://review.opendev.org/c/starlingx/openstack-armada-app/+/900812
Committed: https://opendev.org/starlingx/openstack-armada-app/commit/dd70c154bf4628d49d97ad56528f94a0823402ca
Submitter: "Zuul (22348)"
Branch: master

commit dd70c154bf4628d49d97ad56528f94a0823402ca
Author: Lucas de Ataides <email address hidden>
Date: Mon Nov 13 14:14:13 2023 -0300

    Move python2 to python3 in DIST_PACKAGES

    The change [1] updates the version of the libpython2.7-minimal,
    libpython2.7-stdlib, python2.7 and python2.7-minimal packages, which
    caused the build for the stx-openstackclients image to fail, as it
    requires the `python-dev` package [2].

    Since Python 2 is not used by any Openstack project anymore, this
    package wasn't doing anything, so it's safe to upgrade it to the Python
    3 version of the same package. This not only solves the build issue but
    keeps the image coherent due to the reason mentioned in the beginning of
    this paragraph.

    [1] https://opendev.org/starlingx/tools/commit/55eebf2d6a2d0acfe7127431ca8395d86b629846
    [2] https://opendev.org/starlingx/openstack-armada-app/src/branch/master/upstream/openstack/python-openstackclient/debian/stx-openstackclient.stable_docker_image#L17

    Test Plan:
    PASS: Build stx-debian base image
    PASS: Build stx-openstackclients image
    PASS: Upload / apply stx-openstack
    PASS: Manually upload built image to the system's registry and perform
          helm-override to use it in the clients containers
    PASS: Issue Openstack commands for all CLIs and verify they're working:
          Cinder, Glance, Heat, Neutron, Nova and Openstack

    Closes-Bug: 2043390

    Change-Id: Id8d3b3572eefd7e8b0cdbd4b8c3129728647ede7
    Signed-off-by: Lucas de Ataides <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
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.