stx-tools: package conflict causes docker image build failures

Bug #2003261 reported by Davlet Panech
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Zhixiong Chi

Bug Description

Brief Description
-----------------
Docker image builds fail due to conflicting package versions in base-bullseye.lst

Looks like this was caused by https://review.opendev.org/c/starlingx/tools/+/869624 .

That commit updated some, but not all Kerberos-related libraries. Yet the Debian snapshot contains packages that still depend on the old versions of krb5. The wheels docker file attempts to install them and fails.

Failing build: http://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/20230118T070000Z/logs/build-wheels-stable.log.txt

We need to add krb5-multidev and any dependencies to match the other krb5 packages.

We need to make sure all 3rd-party packages referenced by this docker file are installable (ie between the Debian snapshot and the packages downloaded by stx-tools):

https://opendev.org/starlingx/root/src/commit/c722f84e07556eabe48b10ea12d98dacb6f2bcef/build-tools/build-wheels/debian/Dockerfile#L46

Severity
--------
Major

Steps to Reproduce
------------------
Try to build the wheels tarball

Expected Behavior
------------------
Build succeeds

Actual Behavior
----------------
Build fails

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

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
master/2023-01-17

Last Pass
---------
master/2023-01-11

Timestamp/Logs
--------------

Failing build: http://mirror.starlingx.cengn.ca/mirror/starlingx/master/debian/monolithic/20230118T070000Z/logs/build-wheels-stable.log.txt

[...]
[2023-01-18T16:18:00.447Z] Running: docker build --build-arg RELEASE=11.2 --build-arg BUILD_STREAM=stable -t jenkins-debian-master-wheelbuilder:debian-stable -f /localdisk/loadbuild/jenkins/debian-master//std/build-wheels-debian-stable/docker/debian/Dockerfile /localdisk/loadbuild/jenkins/debian-master//std/build-wheels-debian-stable/docker
[...]
[2023-01-18T16:18:27.466Z] + apt-get -y --no-install-recommends --no-install-suggests install bzip2 g++ gcc git libev-dev liberasurecode-dev libffi-dev libkrb5-dev libldap2-dev libmariadb-dev libnss3-dev libpcre3-dev libpq-dev libsasl2-dev libsystemd-dev libvirt-dev libxml2-dev libxslt1-dev pkg-config python3 python3-dev python3-nss python3-pip python3-setuptools python3-thriftpy python3-wheel swig unzip wget zip
[2023-01-18T16:18:28.017Z] Reading package lists...
[2023-01-18T16:18:28.267Z] Building dependency tree...
[2023-01-18T16:18:28.267Z] Reading state information...
[2023-01-18T16:18:28.518Z] Some packages could not be installed. This may mean that you have
[2023-01-18T16:18:28.518Z] requested an impossible situation or if you are using the unstable
[2023-01-18T16:18:28.518Z] distribution that some required packages have not yet been created
[2023-01-18T16:18:28.518Z] or been moved out of Incoming.
[2023-01-18T16:18:28.518Z] The following information may help to resolve the situation:
[2023-01-18T16:18:28.518Z]
[2023-01-18T16:18:28.518Z] The following packages have unmet dependencies:
[2023-01-18T16:18:28.518Z] krb5-multidev : Depends: libkrb5-3 (= 1.18.3-6+deb11u1) but 1.18.3-6+deb11u3 is to be installed
[2023-01-18T16:18:28.518Z] Depends: libk5crypto3 (= 1.18.3-6+deb11u1) but 1.18.3-6+deb11u3 is to be installed
[2023-01-18T16:18:28.518Z] Depends: libgssapi-krb5-2 (= 1.18.3-6+deb11u1) but 1.18.3-6+deb11u3 is to be installed
[2023-01-18T16:18:28.518Z] E: Unable to correct problems, you have held broken packages.

Test Activity
-------------
N/A

Workaround
----------
None

Changed in starlingx:
assignee: nobody → Zhixiong Chi (zhixiongchi)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/871082

Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
tags: added: stx.8.0 stx.build
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/871082
Committed: https://opendev.org/starlingx/tools/commit/2e7bc38e216a3f9e601e9a53cf16c362b8333d96
Submitter: "Zuul (22348)"
Branch: master

commit 2e7bc38e216a3f9e601e9a53cf16c362b8333d96
Author: Zhixiong Chi <email address hidden>
Date: Wed Jan 18 23:34:12 2023 -0800

    libkrb5-dev: Add libkrb5-dev to support docker images build

    After the commit https://review.opendev.org/c/starlingx/tools/+/869624,
    krb5 sub-packages have been upgraded to 1.18.3-6+deb11u3, but the
    package libkrb5-dev is not included in the deb-local-binary repo.
    We will encounter the version conflicts during the docker images
    building.
    Add libkrb5-dev and the dependencies into the deb-local-binary to
    avoid the conflict.

    TestPlan:
    PASS: downloader
    PASS: build-pkgs
    PASS: build-image
    PASS: Jenkins Installation
    PASS:
      stx shell
      $cd $MY_REPO/build-tools/build-docker-images
      $./build-stx-base.sh --local --version DEV --cache
      $cd $MY_REPO/build-tools/build-wheels
      $./build-wheel-tarball.sh --keep-image --cache
      $cd $MY_REPO/build-tools/build-docker-images
      $./build-stx-images.sh --os distroless --base \
       starlingx/stx-debian:master-stable-latest \
       --cache --only intel-qat-plugin
      Build OK without the docker images building failure.

    Closes-Bug: 2003261

    Signed-off-by: Zhixiong Chi <email address hidden>
    Change-Id: Ie4c5851df135899be20b0fe8e7ae2a28553af6e5

Changed in starlingx:
status: In Progress → Fix Released
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.