periodic containers build push jobs master & train broken distutils.errors.DistutilsError: `allow-hosts` option not supported

Bug #1853803 reported by Marios Andreou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

In [1][2] for train and [3][4] for master the container build push job failed with trace like:

        2019-11-24 21:20:55.088816 | TASK [build-containers : pip install kolla]
        2019-11-24 21:21:11.538232 | primary | ERROR
        2019-11-24 21:21:11.538774 | primary | {
        2019-11-24 21:21:11.538869 | primary | "msg": "stdout: Already using interpreter /usr/bin/python\n No LICENSE.txt / LICENSE found in source\nNew python executable in /home/zuul/workspace/venv_build/bin/python\nPlease make sure you remove any previous custom paths from your /home/zuul/.pydistutils.cfg file.\nInstalling setuptools, pip, wheel...\ndone.\nLooking in indexes: http://mirror.regionone.rdo-cloud-tripleo.rdoproject.org/pypi/simple, http://mirror.regionone.rdo-cloud-tripleo.rdoproject.org/wheel/centos-7.7-x86_64\nProcessing /home/zuul/src/opendev.org/openstack/kolla\n\n:stderr: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support\n ERROR: Command errored out with exit status 1:\n command: /home/zuul/workspace/venv_build/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-req-build-pcTIhw/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-req-build-pcTIhw/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-req-build-pcTIhw/pip-egg-info\n cwd: /tmp/pip-req-build-pcTIhw/\n Complete output (21 lines):\n Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/tmp/pip-req-build-pcTIhw/setup.py\", line 29, in <module>\n pbr=True)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/setuptools/__init__.py\", line 144, in setup\n _install_setup_requires(attrs)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/setuptools/__init__.py\", line 139, in _install_setup_requires\n dist.fetch_build_eggs(dist.setup_requires)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/setuptools/dist.py\", line 721, in fetch_build_eggs\n replace_conflicting=True,\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 782, in resolve\n replace_conflicting=replace_conflicting\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1065, in best_match\n return self.obtain(req, installer)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1077, in obtain\n return installer(requirement)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/setuptools/dist.py\", line 777, in fetch_build_egg\n return fetch_build_egg(self, req)\n File \"/home/zuul/workspace/venv_build/lib/python2.7/site-packages/setuptools/installer.py\", line 74, in fetch_build_egg\n raise DistutilsError('the `allow-hosts` option is not supported '\n distutils.errors.DistutilsError: the `allow-hosts` option is not supported when using pip to install requirements.\n ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\n"
        2019-11-24 21:21:11.538957 | primary | }

master and train promotion blocker but it looks like it may be fixed by [5]

[1] http://logs.rdoproject.org/openstack-periodic-latest-released/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-centos-7-train-containers-build-push/91c22e7/job-output.txt
[2] http://logs.rdoproject.org/openstack-periodic-latest-released/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-centos-7-train-containers-build-push/7b1eeee/job-output.txt
[3] http://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-centos-7-master-containers-build-push/1840f1d/job-output.txt
[4] http://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-centos-7-master-containers-build-push/b073071/job-output.txt
[5] https://review.opendev.org/#/c/695821/

Changed in tripleo:
milestone: none → ussuri-1
Revision history for this message
chandan kumar (chkumar246) wrote :

https://review.opendev.org/#/c/695821/ fix in zuul-jobs fixes the issue.
From rdo-jobs dnm review https://review.rdoproject.org/r/#/c/23800/
RHEL-7 and RHEL-8 train container build job passed.

Revision history for this message
Marios Andreou (marios-b) wrote :
Changed in tripleo:
status: Triaged → Confirmed
status: Confirmed → 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.