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] [91mERROR: Cannot install horizon==18.3.6.dev18 because these package versions have conflicting dependencies.
[2023-09-13T01:43:29.029Z] [0m
[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
A similar issue was seen in the past, when docker images were centos based: https:/ /bugs.launchpad .net/starlingx/ +bug/1907290