stx 5.0: python3 wheels: build fails

Bug #1942912 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
-----------------
Container builds fail in stx/5.0.

Note: we don't need any new containers for the upcoming stx/5.0.1 release.

This bug is likely already fixed in master, see bug #1941901 .

Severity
--------
Major

Expected Behaviour
------------------
Wheels are built successfully

Actual Behavior
----------------
Module "lz4" fails to compile

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

Branch/Pull Time/Commit
-----------------------
stx 5.0/2021-05-24

Last Pass
---------
stx 5.0/2021-08-26

Timestamp/Logs
--------------
13:55:39 [python3] Running: docker run --rm --env DISPLAY_RESULT=no -v /localdisk/loadbuild/jenkins/rc-5.0-containers/20210826T173128Z/std/build-wheels-centos-stable/base:/wheels jenkins-20210826t173128z-wheelbuilder:centos-stable /docker-build-wheel.sh
13:55:39 [python3]
13:55:39 [python3] ############################################################
13:55:39 [python3] Building lz4-0.9.0-cp36-cp36m-linux_x86_64.whl
13:55:39 [python3] ############################################################
13:55:39 [python3] Cloning into 'python-lz4'...
13:55:39 [python3] /build-wheels/python-lz4 /build-wheels
13:55:39 [python3] From https://github.com/python-lz4/python-lz4
13:55:39 [python3] * tag v0.9.0 -> FETCH_HEAD
13:55:39 [python3] Note: checking out 'FETCH_HEAD'.
13:55:39 [python3]
13:55:39 [python3] You are in 'detached HEAD' state. You can look around, make experimental
13:55:39 [python3] changes and commit them, and you can discard any commits you make in this
13:55:39 [python3] state without impacting any branches by performing another checkout.
13:55:39 [python3]
13:55:39 [python3] If you want to create a new branch to retain commits you create, you may
13:55:39 [python3] do so (now or later) by using -b with the checkout command again. Example:
13:55:39 [python3]
13:55:39 [python3] git checkout -b new_branch_name
13:55:39 [python3]
13:55:39 [python3] HEAD is now at bc6fb12... Update README.rst
13:55:39 [python3] Traceback (most recent call last):
13:55:39 [python3] File "setup.py", line 160, in <module>
13:55:39 [python3] 'Programming Language :: Python :: 3.6',
13:55:39 [python3] File "/root/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
13:55:39 [python3] return distutils.core.setup(**attrs)
13:55:39 [python3] File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup
13:55:39 [python3] _setup_distribution = dist = klass(attrs)
13:55:39 [python3] File "/root/.local/lib/python3.6/site-packages/setuptools/dist.py", line 448, in __init__
13:55:39 [python3] k: v for k, v in attrs.items()
13:55:39 [python3] File "/usr/lib64/python3.6/distutils/dist.py", line 281, in __init__
13:55:39 [python3] self.finalize_options()
13:55:39 [python3] File "/root/.local/lib/python3.6/site-packages/setuptools/dist.py", line 740, in finalize_options
13:55:39 [python3] ep.load()(self)
13:55:39 [python3] File "/root/.local/lib/python3.6/site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords
13:55:39 [python3] ep.load()(self, ep.name, value)
13:55:39 [python3] File "/build-wheels/python-lz4/.eggs/setuptools_scm-6.1.0-py3.6.egg/setuptools_scm/integration.py", line 26, in version_keyword
13:55:39 [python3] dist.metadata.version = _get_version(config)
13:55:39 [python3] File "/build-wheels/python-lz4/.eggs/setuptools_scm-6.1.0-py3.6.egg/setuptools_scm/__init__.py", line 192, in _get_version
13:55:39 [python3] template=config.write_to_template,
13:55:39 [python3] File "/build-wheels/python-lz4/.eggs/setuptools_scm-6.1.0-py3.6.egg/setuptools_scm/__init__.py", line 94, in dump_version
13:55:39 [python3] version_fields = parsed_version.release
13:55:39 [python3] AttributeError: 'Version' object has no attribute 'release'
13:55:39 [python3] Could not find dist/lz4-0.9.0-cp36-cp36m-linux_x86_64.whl
13:55:39 [python3] Searching for wheel:
13:55:39 [python3] find: 'dist/': No such file or directory
13:55:39 [python3] /build-wheels

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

Davlet Panech (dpanech)
summary: - python3 wheels: build fails
+ stx 5.0: python3 wheels: build fails
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (r/stx.5.0)

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

Ghada Khalil (gkhalil)
tags: added: stx.5.0 stx.build
Changed in starlingx:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Davlet Panech (dpanech)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (r/stx.5.0)

Reviewed: https://review.opendev.org/c/starlingx/root/+/807950
Committed: https://opendev.org/starlingx/root/commit/205781e766617edb9eab71f92904af0e458fa36c
Submitter: "Zuul (22348)"
Branch: r/stx.5.0

commit 205781e766617edb9eab71f92904af0e458fa36c
Author: Davlet Panech <email address hidden>
Date: Fri Aug 27 11:33:27 2021 -0400

    build-wheels: ignore yanked pypi.org modules

    1) Pip3 9.0.3 provided by CentOS does not ignore "yanked" modules
    published to pypi.org. This causes the builds to download modules
    that are broken. Solution: use the earliest version of pip where
    that bug is fixed (19.2.3)

    2) A number of recent versions of setuptools-scm are broken in pypi.org.
    Use last version known to work, 6.0.1

    Closes-Bug: 1942912
    Change-Id: I3ba746d36983ee3f24bf1d4089be71bf01f8066a
    Signed-off-by: Davlet Panech <email address hidden>
    (cherry picked from commit 699a7d4207415fd57e40894443aff28bd86675c5)

Revision history for this message
Davlet Panech (dpanech) wrote :

stx 5.0 container build succeeds now

Changed in starlingx:
status: Triaged → 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.