STX-Openstack: Can't build packages with Antelope versions

Bug #2027589 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
-----------------
During the STX-Openstack upversion (story 2010715: https://storyboard.openstack.org/#!/story/2010715), the team stumbled on an issue with the packages' dependencies versions. Since every package is limited by the upper constraints (https://opendev.org/starlingx/root/src/branch/master/build-tools/requirements/debian/upper-constraints.txt), after upversoning the packages to Antelope, they were not getting the correct versions for the dependencies, and, in some cases, the build even failed due to a version requirement that was way above the one on the upper constraints.

With this issue, the STX-Openstack Distro Team is unable to build and test the required packages for the upversion, unless we locally modify both the upper constraints and the downloader list (https://opendev.org/starlingx/tools/src/branch/master/debian-mirror-tools/config/debian/common/base-bullseye.lst) so the correct Antelope versions are downloaded / used.

Severity
--------
Critical: Packages fail to build / build with incorrect versions

Steps to Reproduce
------------------
Build any client package on starlingx/openstack-armada-app (Example: python-novaclient)

Expected Behavior
------------------
Build succeeds and buildinfo shows versions compatible with Antelope (https://releases.openstack.org/antelope/)

Actual Behavior
----------------
Build fails or packages gets versions that are not compatible with Antelope.

Reproducibility
---------------
100% reproducible

System Configuration
--------------------
Does not Apply

Branch/Pull Time/Commit
-----------------------
Master

Timestamp/Logs
--------------
sbuild-build-depends-main-dummy : Depends: python3-keystoneauth1 (>= 5.1.2) but 4.2.1-2 is to be installed

Test Activity
-------------
Build

Workaround
----------
Patch the upper-constraints.txt with the attached file and update the downloader list with these lines:

python3-keystoneauth1 5.1.2-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-keystoneauth1/python3
keystoneauth1_5.1.2-2_all.deb python3-keystonemiddleware 10.2.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-keystonemiddleware/python3-keystonemiddleware_10.2.0-2_all.deb
python3-osc-lib 2.7.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-osc-lib/python3-osc-lib_2.7.0-2_all.deb
python3-oslo.cache 3.3.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.cache/python3-oslo.cache_3.3.1-2_all.deb
python3-oslo.concurrency 5.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.concurrency/python3-oslo.concurrency_5.1.1-2_all.deb
python3-oslo.config 9.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.config/python3-oslo.config_9.1.1-2_all.deb
python3-oslo.context 5.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.context/python3-oslo.context_5.1.1-2_all.deb
python3-oslo.db 12.3.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.db/python3-oslo.db_12.3.1-2_all.deb
python3-oslo.i18n 6.0.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.i18n/python3-oslo.i18n_6.0.0-2_all.deb
python3-oslo.log 5.2.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.log/python3-oslo.log_5.2.0-2_all.deb
python3-oslo.messaging 14.2.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.messaging/python3-oslo.messaging_14.2.0-2_all.deb
python3-oslo.middleware 5.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.middleware/python3-oslo.middleware_5.1.1-2_all.deb
python3-oslo.policy 4.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.policy/python3-oslo.policy_4.1.1-2_all.deb
python3-oslo.serialization 5.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.serialization/python3-oslo.serialization_5.1.1-2_all.deb
python3-oslo.service 3.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.service/python3-oslo.service_3.1.1-2_all.deb
python3-oslo.upgradecheck 2.1.1-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.upgradecheck/python3-oslo.upgradecheck_2.1.1-2_all.deb
python3-oslo.utils 6.1.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.utils/python3-oslo.utils_6.1.0-2_all.deb
python3-oslo.versionedobjects 3.1.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-oslo.versionedobjects/python3-oslo.versionedobjects_3.1.0-2_all.deb
python3-sqlalchemy 1.4.47+ds1-1 https://snapshot.debian.org/archive/debian-ports/20230401T234825Z/pool/main/s/sqlalchemy/python3-sqlalchemy_1.4.47%2Bds1-1_all.deb
python3-stevedore 5.0.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/s/stevedore/python3-stevedore_5.0.0-2_all.deb
python3-swiftclient 1:4.2.0-2 https://snapshot.debian.org/archive/debian-ports/20230623T210953Z/pool/main/p/python-swiftclient/python3-swiftclient_4.2.0-2_all.deb

Revision history for this message
Lucas de Ataides Barreto (ldeataid) wrote :
Changed in starlingx:
assignee: nobody → Lucas de Ataides Barreto (ldeataid)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (f/antelope)

Fix proposed to branch: f/antelope
Review: https://review.opendev.org/c/starlingx/tools/+/892166

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on root (f/antelope)

Change abandoned by "Lucas de Ataides Barreto <email address hidden>" on branch: f/antelope
Review: https://review.opendev.org/c/starlingx/root/+/892163
Reason: Abandoning this as we realized this is not actually required.

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-armada-app (f/antelope)

Related fix proposed to branch: f/antelope
Review: https://review.opendev.org/c/starlingx/openstack-armada-app/+/893079

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-armada-app (master)

Change abandoned by "Lucas de Ataides Barreto <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/openstack-armada-app/+/891344

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-armada-app (master)

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

commit a8969f2988f1817854850674a810c9294a52021b
Author: Lucas de Ataides <email address hidden>
Date: Mon Aug 14 16:12:32 2023 -0300

    Remove unused packages from openstack-armada-app

    The purpose of this change is to remove packages that are not used by
    STX-Openstack from this repository. At the time these folders were
    copied from the `starlingx/upstream` repo to here on [1], the goal was
    to simply get the folder structure and all the packages, but, now that
    the this repository is being actively used for the STX-Openstack
    upversion to Antelope, we noticed that these packages are either not
    used (barbican, keystone, openstack-resource-agents, horizon,
    python-osc-lib, python-oslo.messaging, python-wsme, rabbitmq-server),
    or were dropped from Openstack (gnocchi and the python-gnocchiclient
    are not present on Antelope, as these services were removed from the
    Openstack project [2] [3]).

    Except for gnocchi and python-gnocchiclient, as explained above, these packages were present on the `starlingx/upstream` repository as they're required for the StarlingX builds and ISO, but not for the STX-Openstack application, for that reason, these are safe to be dropped from this repository.

    [1] https://review.opendev.org/c/starlingx/openstack-armada-app/+/886027
    [2] https://opendev.org/openstack/gnocchi
    [3] https://opendev.org/openstack/python-gnocchiclient

    Test Plan:
    PASS: Removed packages are not found when issuing `build-pkgs`
    PASS: Build all STX-Openstack images
    PASS: Build STX-Openstack tarball
    PASS: Upload / apply / remove STX-Openstack

    Related-Bug: 2027589

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

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.9.0
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.