f/antelope: Failed to build stx-horizon docker image

Bug #2035346 reported by Thales Elero Cervi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Thales Elero Cervi

Bug Description

Brief Description
-----------------
f/antelope branch build of stx-horizon container image is failing to find a version of Django 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-horizon

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-13T01:37:03.204Z] Building stx-horizon
[2023-09-13T01:37:03.204Z] Python3 service stx-horizon
[2023-09-13T01:37:03.204Z] Running: docker build /localdisk/loadbuild/jenkins/f-antelope-debian//std/build-images/loci --build-arg PROJECT=horizon --build-arg PROJECT_REPO=https://opendev.org/openstack/horizon.git --build-arg FROM=starlingx/stx-debian:f-antelope-stable-20230912T160000Z --build-arg WHEELS=http://f-antelope-debian-stx-builder-files-http:8088/localdisk/loadbuild/jenkins/f-antelope-debian/std/build-wheels-debian-stable/stx-debian-stable-wheels.tar --build-arg PROJECT_REF=e6f3952b878d6b04fde9742987e0f37a1cfad3e5 --build-arg UID=42425 --build-arg GID=42425 --build-arg PIP_PACKAGES=pycryptodomex python-ceilometerclient coverage pyudev ldap --build-arg PROFILES=fluent horizon apache --build-arg SPICE_REPO=https://gitlab.freedesktop.org/spice/spice-html5 --build-arg DIST_REPOS=OS --tag jenkins/stx-horizon:f-antelope-debian-stable-build
(...)
[2023-09-13T01:43:30.190Z] Command (docker) failed, attempt 3 of 3.
[2023-09-13T01:43:30.190Z] Max command attempts reached. Aborting...
[2023-09-13T01:43:30.190Z] Failed to build stx-horizon... Aborting

[2023-09-13T01:43:29.029Z] ERROR: Cannot install horizon==18.3.6.dev18 because these package versions have conflicting dependencies.
[2023-09-13T01:43:29.029Z] 
[2023-09-13T01:43:29.029Z] The conflict is caused by:
[2023-09-13T01:43:29.029Z] horizon 18.3.6.dev18 depends on Django<3.0 and >=2.2
[2023-09-13T01:43:29.029Z] The user requested (constraint) django===3.2
[2023-09-13T01:43:29.029Z]
[2023-09-13T01:43:29.029Z] To fix this you could try to:
[2023-09-13T01:43:29.029Z] 1. loosen the range of package versions you've specified
[2023-09-13T01:43:29.029Z] 2. remove package versions to allow pip attempt to solve the dependency conflict

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

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

Revision history for this message
Thales Elero Cervi (tcervi) wrote :

A similar issue was seen in the past, when docker images were centos based: https://bugs.launchpad.net/starlingx/+bug/1907290

description: updated
tags: added: stx.9.0 stx.distro.openstack
Revision history for this message
Thales Elero Cervi (tcervi) wrote :

This build failure happened during the build of the default.xml manifest, so it seems that once this change [1] is merged to f/antelope the issue will no longer be reproducible.

Will wait for this to merge and for a next build to ensure the image builds successfully and close this LP.

[1] https://review.opendev.org/c/starlingx/upstream/+/892689

Changed in starlingx:
assignee: nobody → Thales Elero Cervi (tcervi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to upstream (f/antelope)

Reviewed: https://review.opendev.org/c/starlingx/upstream/+/892689
Committed: https://opendev.org/starlingx/upstream/commit/30a8fe3cbc115462793344995ad3dc6503748ce7
Submitter: "Zuul (22348)"
Branch: f/antelope

commit 30a8fe3cbc115462793344995ad3dc6503748ce7
Author: Thales Elero Cervi <email address hidden>
Date: Thu Aug 24 12:54:45 2023 -0300

    Remove OpenStack clients not used by the platform

    This change removes OpenStack clients and services that are only
    required by stx-openstack application and are being moved to
    starlingx/openstack-armada-app repository

    TEST PLAN:
    PASS: Build remaining packages (barbican, keystone,
          openstack-pkg-tools, openstack-resource-agents,
          python-barbicanclient, horizon, python-keystoneclient,
          python-openstackclient, python-osc-lib, python-oslo.messaging,
          python-pankoclient, python-wsme, rabbitmq-server)
    PASS: Build StarlingX ISO image

    Depends-On: https://review.opendev.org/c/starlingx/tools/+/893685

    Story: 2010797
    Task: 48692
    Closes-Bug: 2035346

    Signed-off-by: Thales Elero Cervi <email address hidden>
    Signed-off-by: Lucas de Ataides <email address hidden>
    Change-Id: Iaf2d9ec932bb8dd7ace15adcbb7f72a653cbf91d

tags: added: in-f-antelope
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to upstream (master)

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

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

Reviewed: https://review.opendev.org/c/starlingx/upstream/+/896853
Committed: https://opendev.org/starlingx/upstream/commit/ac9d90575450c9571c14c2c2f6afe4ac190e7499
Submitter: "Zuul (22348)"
Branch: master

commit ac9d90575450c9571c14c2c2f6afe4ac190e7499
Author: Thales Elero Cervi <email address hidden>
Date: Thu Aug 24 12:54:45 2023 -0300

    Remove OpenStack clients not used by the platform

    This change removes OpenStack clients and services that are only
    required by stx-openstack application and are being moved to
    starlingx/openstack-armada-app repository

    TEST PLAN:
    PASS: Build remaining packages (barbican, keystone,
          openstack-pkg-tools, openstack-resource-agents,
          python-barbicanclient, horizon, python-keystoneclient,
          python-openstackclient, python-osc-lib, python-oslo.messaging,
          python-pankoclient, python-wsme, rabbitmq-server)
    PASS: Build StarlingX ISO image

    Depends-On: https://review.opendev.org/c/starlingx/tools/+/893685

    Story: 2010797
    Task: 48692
    Closes-Bug: 2035346

    Signed-off-by: Thales Elero Cervi <email address hidden>
    Signed-off-by: Lucas de Ataides <email address hidden>
    Change-Id: Iaf2d9ec932bb8dd7ace15adcbb7f72a653cbf91d
    (cherry picked from commit 30a8fe3cbc115462793344995ad3dc6503748ce7)

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.