stx-tools: Dockerfile build fails

Bug #1936832 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 due to compile errors in python package "testtools".

This hasn't affected CENGN builds yet because they use Docker cache that bypasses this step.

This likely affects all branches.

Severity
--------
Major

Steps to Reproduce
------------------
Clear docker cache and to build starlingx/tools Docker file

Expected Behavior
------------------
Build works

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

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

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

Branch/Pull Time/Commit
-----------------------
master/2021-07-17

Last Pass
---------
Approx Jul 15 2021

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

docker build --build-arg MYUID=18876 --build-arg MYUNAME=jenkins --ulimit core=0 --network host --tag jenkins:WRCP_20.06_POSTGA_Build-2021-07-17_20-00-09-builder-image --file ../Dockerfile --label DOCKER_BUILD_IMAGE_LABEL=jenkins:WRCP_20.06_POSTGA_Build-builder-image --no-cache .
[...]
22:08:20 Step 1/42 : FROM centos:7.4.1708
22:08:20 ---> 9f266d35e02c
[...]
22:47:50 Step 16/42 : RUN cpanm --notest Fatal && cpanm --notest XML::SAX && cpanm --notest XML::SAX::Expat && cpanm --notest XML::Parser && cpanm --notest XML::Simple
[...]
22:48:03 Removing intermediate container 3060c1582917
22:48:08 ---> 8e86f758e3f3
22:48:08 Step 17/42 : RUN pip install -c /home/$MYUNAME/builder-constraints.txt python-subunit junitxml --upgrade && pip install -c /home/$MYUNAME/builder-constraints.txt tox --upgrade
22:48:09 ---> Running in e16e19343e71
22:48:11 Collecting python-subunit
22:48:11 Downloading https://files.pythonhosted.org/packages/88/de/be89fff5c30810afb101bdac2c8706764fafa8e950dc6ffa22092ad81035/python_subunit-1.4.0-py2.py3-none-any.whl (106kB)
22:48:11 Collecting junitxml
22:48:11 Downloading https://files.pythonhosted.org/packages/86/df/bdf6f8d13a62b7e70fe16f93158fef72322d74d771438ae5b5931f2d33b1/junitxml-0.7.tar.gz
22:48:12 Collecting testtools>=0.9.34 (from python-subunit)
22:48:12 Downloading https://files.pythonhosted.org/packages/29/0f/99dbb1801e341d74cd74e493906a16d8ddffffa86879d90ac3dc1f367b13/testtools-2.5.0.tar.gz (235kB)
22:48:12 Complete output from command python setup.py egg_info:
22:48:12 /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
22:48:12 warnings.warn(msg)
22:48:12 Traceback (most recent call last):
22:48:12 File "<string>", line 1, in <module>
22:48:12 File "/tmp/pip-build-EG4KtR/testtools/setup.py", line 17, in <module>
22:48:12 pbr=True)
22:48:12 File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
22:48:12 _setup_distribution = dist = klass(attrs)
22:48:12 File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
22:48:12 _Distribution.__init__(self,attrs)
22:48:12 File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
22:48:12 self.finalize_options()
22:48:12 File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
22:48:12 ep.load()(self, ep.name, value)
22:48:12 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
22:48:12 entry = __import__(self.module_name, globals(),globals(), ['__name__'])
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/core.py", line 53, in <module>
22:48:12 from pbr import util
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/util.py", line 86, in <module>
22:48:12 import pbr.hooks
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 16, in <module>
22:48:12 from pbr.hooks import backwards
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/hooks/backwards.py", line 17, in <module>
22:48:12 from pbr import packaging
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/packaging.py", line 45, in <module>
22:48:12 from pbr import testr_command
22:48:12 File "/usr/lib/python2.7/site-packages/pbr/testr_command.py", line 162, in <module>
22:48:12 from testrepository import commands
22:48:12 File "/usr/lib/python2.7/site-packages/testrepository/commands/__init__.py", line 40, in <module>
22:48:12 import subunit
22:48:12 File "/usr/lib/python2.7/site-packages/subunit/__init__.py", line 130, in <module>
22:48:12 from testtools import content, content_type, ExtendedToOriginalDecorator
22:48:12 File "testtools/__init__.py", line 53, in <module>
22:48:12 from testtools.runtest import (
22:48:12 File "testtools/runtest.py", line 12, in <module>
22:48:12 from testtools.testresult import ExtendedToOriginalDecorator
22:48:12 File "testtools/testresult/__init__.py", line 29, in <module>
22:48:12 from testtools.testresult.real import (
22:48:12 File "testtools/testresult/real.py", line 34, in <module>
22:48:12 from testtools.content import (
22:48:12 File "testtools/content.py", line 277
22:48:12 yield from _iter_chunks(stream,
22:48:12 ^
22:48:12 SyntaxError: invalid syntax
22:48:12
22:48:12 ----------------------------------------
22:48:12 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EG4KtR/testtools/
22:48:12 You are using pip version 8.1.2, however version 21.1.3 is available.
22:48:12 You should consider upgrading via the 'pip install --upgrade pip' command.
22:48:12 The command '/bin/sh -c pip install -c /home/$MYUNAME/builder-constraints.txt python-subunit junitxml --upgrade && pip install -c /home/$MYUNAME/builder-constraints.txt tox --upgrade' returned a non-zero code: 1

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

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

Ghada Khalil (gkhalil)
tags: added: stx.build
Changed in starlingx:
importance: Undecided → High
assignee: nobody → Davlet Panech (dpanech)
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/+/801344

Changed in starlingx:
status: New → In Progress
Ghada Khalil (gkhalil)
tags: added: stx.4.0 stx.5.0 stx.6.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

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

commit a85cf1cbac6cca612d1344a38331569ef10b7034
Author: Davlet Panech <email address hidden>
Date: Mon Jul 19 11:06:48 2021 -0400

    Dockerfile: pin testtools==2.4.0

    Latest python package testtools, 2.5.0 is not compatible with Python 2.
    Use the previous version in Dockerfile

    Change-Id: Ie4143dd575b34f42d72f4962f7c0e40437a344fc
    Partial-Bug: 1936832
    Signed-off-by: Davlet Panech <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (r/stx.5.0)

Fix proposed to branch: r/stx.5.0
Review: https://review.opendev.org/c/starlingx/tools/+/801351

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (r/stx.5.0)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/801351
Committed: https://opendev.org/starlingx/tools/commit/345509b115f487b103a00aa3c296316cc150a144
Submitter: "Zuul (22348)"
Branch: r/stx.5.0

commit 345509b115f487b103a00aa3c296316cc150a144
Author: Davlet Panech <email address hidden>
Date: Mon Jul 19 11:06:48 2021 -0400

    Dockerfile: pin testtools==2.4.0

    Latest python package testtools, 2.5.0 is not compatible with Python 2.
    Use the previous version in Dockerfile

    Change-Id: Ie4143dd575b34f42d72f4962f7c0e40437a344fc
    Closes-Bug: 1936832
    Signed-off-by: Davlet Panech <email address hidden>
    (cherry picked from commit a85cf1cbac6cca612d1344a38331569ef10b7034)

Davlet Panech (dpanech)
Changed in starlingx:
status: In Progress → Fix Committed
Ghada Khalil (gkhalil)
Changed in starlingx:
status: Fix Committed → 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.