f/antelope: Failed to build stx-ceph-manager docker image

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

Bug Description

Brief Description
-----------------
f/antelope branch build of stx-ceph-manager container image is failing to find a version of python3-prometheus-client that satisfies requirements.

Severity
--------
Critical

Steps to Reproduce
------------------
1. Build Base image: $MY_BUILD_TOOLS_DIR/build-docker-images/build-stx-base.sh --local --version DEV --cache; BASE_IMAGE=$(docker image ls | grep 'stx-debian' | awk '{print $1":"$2}')
2. Build wheels: $MY_BUILD_TOOLS_DIR/build-wheels/build-wheel-tarball.sh --keep-image
3. Build stx-horizon image: $MY_BUILD_TOOLS_DIR/build-docker-images/build-stx-images.sh --base $BASE_IMAGE --wheels $MY_WORKSPACE/std/build-wheels-debian-stable/stx-debian-stable-wheels.tar --cache --only stx-ceph-manager

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

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

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

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

Branch/Pull Time/Commit
-----------------------
f/antelope (2023 Sept 12th)

Last Pass
---------
master branch

Timestamp/Logs
--------------
[2023-09-13T02:07:20.783Z] Building stx-ceph-manager
[2023-09-13T02:07:20.783Z] Running: docker build /localdisk/designer/jenkins/f-antelope-debian/cgcs-root/stx/utilities/ceph/ceph-manager/debian/docker --file /localdisk/designer/jenkins/f-antelope-debian/cgcs-root/stx/utilities/ceph/ceph-manager/debian/docker/Dockerfile --build-arg BASE=starlingx/stx-debian:f-antelope-stable-20230912T160000Z --tag jenkins/stx-ceph-manager:f-antelope-debian-stable-build
(...)
[2023-09-13T02:08:30.859Z] The following packages have unmet dependencies:
[2023-09-13T02:08:30.859Z] python3-oslo.metrics : Depends: python3-prometheus-client but it is not installable
[2023-09-13T02:08:30.859Z] E: Unable to correct problems, you have held broken packages.
[2023-09-13T02:08:31.410Z] The command '/bin/sh -c apt-get update -y && apt-get install -y python3-oslo.messaging python3-eventlet python3-fm-api fm-rest-api python3-fmclient fm-common librados2 librbd1 ceph-common ceph-mon ceph-osd ceph-mgr' returned a non-zero code: 100
[2023-09-13T02:08:31.410Z] Command (docker) failed, attempt 3 of 3.
[2023-09-13T02:08:31.410Z] Max command attempts reached. Aborting...
[2023-09-13T02:08:31.410Z] Failed to build stx-ceph-manager... Aborting

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

Workaround
----------
N/A

description: updated
tags: added: stx.9.0 stx.distro.openstack
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/+/894921

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (f/antelope)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/894921
Committed: https://opendev.org/starlingx/tools/commit/e72f3a89054f40541b9f7077efa0becdc9d0287d
Submitter: "Zuul (22348)"
Branch: f/antelope

commit e72f3a89054f40541b9f7077efa0becdc9d0287d
Author: Lucas de Ataides <email address hidden>
Date: Wed Sep 13 10:50:17 2023 -0300

    Add prometheus-client to downloader list

    Since the python3-prometheus-client is not build nor downloaded
    anywhere, the stx-ceph-manager image is failing to build because of
    that. The python3-oslo.metrics (which is a dependency of this image)
    reqquires this package.

    The purpose of this change is to add this python3-prometheus-client
    package to the container downloader list in order to build the
    stx-ceph-manager in the flock layer.

    This change does not impact the default StarlingX build process as this
    is on the `f/antelope` branch.

    Test Plan:
    PASS: Run downloader for the containers layer
    PASS: Build stx-debian image
    PASS: Build wheels
    PASS: Build stx-ceph-manager image

    Closes-Bug: 2035347

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

tags: added: in-f-antelope
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/+/896777

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

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

commit d1854147e17055c57b5ca123457c18418477fa0e
Author: Lucas de Ataides <email address hidden>
Date: Wed Sep 13 10:50:17 2023 -0300

    Add prometheus-client to downloader list

    Since the python3-prometheus-client is not build nor downloaded
    anywhere, the stx-ceph-manager image is failing to build because of
    that. The python3-oslo.metrics (which is a dependency of this image)
    reqquires this package.

    The purpose of this change is to add this python3-prometheus-client
    package to the container downloader list in order to build the
    stx-ceph-manager in the flock layer.

    This change does not impact the default StarlingX build process as this
    is on the `f/antelope` branch.

    Test Plan:
    PASS: Run downloader for the containers layer
    PASS: Build stx-debian image
    PASS: Build wheels
    PASS: Build stx-ceph-manager image

    Closes-Bug: 2035347

    Change-Id: Ia404862253b937a8eb27134ad36a28be444d77a6
    Signed-off-by: Lucas de Ataides <email address hidden>
    (cherry picked from commit e72f3a89054f40541b9f7077efa0becdc9d0287d)
    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.