Buidling ramdisk with ironic-agent behind proxy fails

Bug #1449852 reported by Ramakrishnan G (rameshg87)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Medium
Ramakrishnan G (rameshg87)

Bug Description

Following is the error log:

  Downloading fixtures-1.0.0.tar.gz (43kB): 43kB downloaded
  Running setup.py (path:/tmp/pip-build-s9CLUo/fixtures/setup.py) egg_info for package fixtures
    Download error on https://pypi.python.org/simple/pbr/: hostname 'proxy-server' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org' -- Some packages may not be found!
    Couldn't find index page for 'pbr' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: hostname 'proxy-server' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org' -- Some packages may not be found!
    No local packages or download links found for pbr
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-s9CLUo/fixtures/setup.py", line 7, in <module>
        pbr=True)
      File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 559, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 797, in best_match
       return self.obtain(req, installer) # try and download/install
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 809, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 587, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/pbr/: hostname 'proxy-server' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org' -- Some packages may not be found!

Couldn't find index page for 'pbr' (maybe misspelled?)

Download error on https://pypi.python.org/simple/: hostname 'proxy-server' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org' -- Some packages may not be found!

No local packages or download links found for pbr

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-s9CLUo/fixtures/setup.py", line 7, in <module>

    pbr=True)

  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 559, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 797, in best_match

    return self.obtain(req, installer) # try and download/install

  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 809, in obtain

    return installer(requirement)

  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg

    return cmd.easy_install(req)

  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 587, in easy_install

    raise DistutilsError(msg)

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-s9CLUo/fixtures
Storing debug log for failure in /root/.pip/pip.log

Changed in diskimage-builder:
assignee: nobody → Ramakrishnan G (rameshg87)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/178512

Changed in diskimage-builder:
status: New → In Progress
Changed in diskimage-builder:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/178512
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=afe739ceedc1270e4411b4744a0412a4b6950f14
Submitter: Jenkins
Branch: master

commit afe739ceedc1270e4411b4744a0412a4b6950f14
Author: Ramakrishnan G <email address hidden>
Date: Wed Apr 29 05:40:30 2015 +0000

    Fix disk image create errors behind proxy

    This commit fixes errors while trying to create a
    DIB ramdisk with ironic-agent element when built
    behind proxy. It fixes the issue by making it install
    latest versions of pip and setuptools which has the
    fixes for them.

    Change-Id: I1ffb832ebab009b2d77a46e6c8fc758dd9632359
    Closes-Bug: 1449852

Changed in diskimage-builder:
status: In Progress → Fix Committed
Changed in diskimage-builder:
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.