build-tools: can't build tools Docker file

Bug #1978469 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Davlet Panech

Bug Description

Brief Description
-----------------
Dockerfile in starlingx/tools fails to build, causing daily builds on CENGN to fail.

Severity
--------
Critical

Steps to Reproduce
------------------
Try to build Docker file in starlingx/tools.

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

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

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

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

Branch/Pull Time/Commit
-----------------------
master/2022-06-13

Last Pass
---------
master/2022-06-08

Timestamp/Logs
--------------
19:04:00 + docker build --build-arg MYUID=18876 --build-arg MYUNAME=jenkins --ulimit core=0 --network host --tag jenkins:master-compiler-20220612T230001Z-builder-image --file ../Dockerfile .
[...]
19:04:00 Step 27/54 : COPY toCOPY/builder-constraints.txt /home/$MYUNAME/
19:04:00 ---> Using cache
19:04:00 ---> dfba8e678e71
19:04:00 Step 28/54 : RUN pip install -c /home/$MYUNAME/builder-constraints.txt testrepository fixtures pbr git-review python-subunit junitxml testtools
19:04:00 ---> Running in 8c5d28ea68f0
19:04:01 Collecting git-review==1.28.0 (from -c /home/jenkins/builder-constraints.txt (line 3))
19:04:01 Downloading https://files.pythonhosted.org/packages/d9/88/86360bc710b1485ca49c94481b92b5069f859354ec462d8793ec8ed4e45b/git_review-1.28.0-py2.py3-none-any.whl (46kB)
19:04:01 Collecting pbr==5.6.0 (from -c /home/jenkins/builder-constraints.txt (line 4))
19:04:01 Downloading https://files.pythonhosted.org/packages/18/e0/1d4702dd81121d04a477c272d47ee5b6bc970d1a0990b11befa275c55cf2/pbr-5.6.0-py2.py3-none-any.whl (111kB)
19:04:01 Collecting python-subunit==1.4.0 (from -c /home/jenkins/builder-constraints.txt (line 5))
19:04:02 Downloading https://files.pythonhosted.org/packages/88/de/be89fff5c30810afb101bdac2c8706764fafa8e950dc6ffa22092ad81035/python_subunit-1.4.0-py2.py3-none-any.whl (106kB)
19:04:02 Collecting junitxml==0.7 (from -c /home/jenkins/builder-constraints.txt (line 6))
19:04:02 Downloading https://files.pythonhosted.org/packages/86/df/bdf6f8d13a62b7e70fe16f93158fef72322d74d771438ae5b5931f2d33b1/junitxml-0.7.tar.gz
19:04:02 Collecting testtools==2.4.0 (from -c /home/jenkins/builder-constraints.txt (line 7))
19:04:02 Downloading https://files.pythonhosted.org/packages/1a/d5/d0e0d16478fd4700694673518842be3c159fa08230e377f5f8570c170bbd/testtools-2.4.0-py2.py3-none-any.whl (185kB)
19:04:02 Collecting testrepository==0.0.20 (from -c /home/jenkins/builder-constraints.txt (line 9))
19:04:02 Downloading https://files.pythonhosted.org/packages/0c/85/f495b58b2b0ac907def07385219e9747b75840fa01280f228546a4a5ad7f/testrepository-0.0.20.tar.gz (84kB)
19:04:02 Collecting fixtures==3.0.0 (from -c /home/jenkins/builder-constraints.txt (line 10))
19:04:03 Downloading https://files.pythonhosted.org/packages/a8/28/7eed6bf76792f418029a18d5b2ace87ce7562927cdd00f1cefe481cd148f/fixtures-3.0.0-py2.py3-none-any.whl (67kB)
19:04:03 Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/site-packages (from git-review==1.28.0->-c /home/jenkins/builder-constraints.txt (line 3))
19:04:03 Collecting requests>=1.1 (from git-review==1.28.0->-c /home/jenkins/builder-constraints.txt (line 3))
19:04:03 Downloading https://files.pythonhosted.org/packages/e9/23/384d9953bb968731212dc37af87cb75a885dc48e0615bd6a303577c4dc4b/requests-2.28.0.tar.gz (109kB)
19:04:03 Complete output from command python setup.py egg_info:
19:04:03
19:04:03 ==========================
19:04:03 Unsupported Python version
19:04:03 ==========================
19:04:03 This version of Requests requires at least Python 3.7, but
19:04:03 you're trying to install it on Python 2.7. To resolve this,
19:04:03 consider upgrading to a supported Python version.
19:04:03
19:04:03 If you can't upgrade your Python version, you'll need to
19:04:03 pin to an older version of Requests (<2.28).
19:04:03
19:04:03 ----------------------------------------
19:04:03 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vHvBLs/requests/

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

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

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/+/845590

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/+/845590
Committed: https://opendev.org/starlingx/tools/commit/26bc0d6e007971bfe007142e4390d5a43c288370
Submitter: "Zuul (22348)"
Branch: master

commit 26bc0d6e007971bfe007142e4390d5a43c288370
Author: Davlet Panech <email address hidden>
Date: Mon Jun 13 09:45:08 2022 -0400

    Lock requests to 2.27.1 for py 2.7 compatibility

    Python module "requests" was recently upgraded to version 2.28.0, which
    requires Python 3.x. Lock it to last version known to work with Python
    2.7.

    Closes-Bug: 1978469
    Change-Id: Ib478cb5ef0ca94c9f7eb3d7288726f9592f635b6
    Signed-off-by: Davlet Panech <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.7.0 stx.build stx.tools
Changed in starlingx:
importance: Undecided → High
assignee: nobody → Davlet Panech (dpanech)
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.