Failed to build centos container

Bug #1926621 reported by Chuck Short
This bug report is a duplicate of:  Bug #1927137: Docker build env fails on git-review. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Chuck Short

Bug Description

While building the container to setup the developer environment for centos7, the container will fail to build because newer versions on git-review do not support python2.7, from the release notes:

https://docs.opendev.org/opendev/git-review/latest/releasenotes.html

"As of this release, git-review no longer supports running under the Python 2.7 interpreter. The major version component has been increased accordingly. Users wishing to use git-review with Python 2.7 can cap their installations like pip install "git-review<2", though pip version 9 and later will use python_requires package metadata to avoid installing git-review on an unsupported interpreter. Future removal of support for Python 3 minor versions will only result in a minor version increase for corresponding git-review releases."

Traceback is below:

Collecting git-review
  Downloading https://files.pythonhosted.org/packages/52/32/314cdb83186d43661a36d3e49390f818bce4e878b90a0bc980a3c70252bb/git-review-2.1.0.tar.gz (62kB)
    Complete output from command python setup.py egg_info:
    Couldn't find index page for 'pbr' (maybe misspelled?)
    No local packages or download links found for pbr>=4.1.0
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-UkHpmF/git-review/setup.py", line 20, in <module>
        setuptools.setup(setup_requires=['pbr>=4.1.0'], pbr=True)
      File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 617, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr>=4.1.0')

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

Changed in starlingx:
status: New → In Progress
Chuck Short (zulcss)
description: updated
Ghada Khalil (gkhalil)
tags: added: stx.build
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: stx.6.0 / high; issue affects developer build environments. Unsure if the same change is needed for the r/stx.5.0 branch. If it is, please make sure to cherrypick the changes after they are merged in the main branch

Changed in starlingx:
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → High
tags: added: stx.6.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tools (master)

Change abandoned by "Chuck Short <email address hidden>" on branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/788751

Revision history for this message
Ghada Khalil (gkhalil) wrote :

@Chuck, Is this still an issue? Or has this been addressed?

Revision history for this message
Chuck Short (zulcss) wrote :
Changed in starlingx:
status: In Progress → 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.