← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1210441] Re: run_tests.sh fails to install venv when installing pbr

 

Matt, thanks for your comments.


** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1210441

Title:
  run_tests.sh fails to install venv when installing pbr

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  On the latest nova source(2013/08/08 commit: a943f1403f66272655c337c5863c79dc2ed79549),
  run_tests.sh fails with following log:

  == start of log =========================================================================
  $ ./run_tests.sh
  [snip]
  Downloading/unpacking python-cinderclient>=1.0.1 (from -r /opt/stack/nova/requirements.txt (line 24))
    Downloading python-cinderclient-1.0.5.tar.gz (117kB): 117kB downloaded
    Running setup.py egg_info for package python-cinderclient
      Download error on https://pypi.python.org/simple/pbr/: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!
      Couldn't find index page for 'pbr' (maybe misspelled?)
      Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!
      No local packages or download links found for pbr>=0.5.20
      Traceback (most recent call last):
        File "<string>", line 16, in <module>
        File "/opt/stack/nova/.venv/build/python-cinderclient/setup.py", line 22, in <module>
          pbr=True)
        File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
          _setup_distribution = dist = klass(attrs)
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
          self.fetch_build_eggs(attrs.pop('setup_requires'))
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
          parse_requirements(requires), installer=self.fetch_build_egg
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
          dist = best[req.key] = env.best_match(req, self, installer)
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
          return self.obtain(req, installer) # try and download/install
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
          return installer(requirement)
        File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
          return cmd.easy_install(req)
        File "/opt/stack/nova/.venv/local/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>=0.5.20')
      Complete output from command python setup.py egg_info:
      Download error on https://pypi.python.org/simple/pbr/: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!

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

  Download error on https://pypi.python.org/simple/: [Errno 1]
  _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
  protocol -- Some packages may not be found!

  No local packages or download links found for pbr>=0.5.20

  Traceback (most recent call last):
    File "<string>", line 16, in <module>
    File "/opt/stack/nova/.venv/build/python-cinderclient/setup.py", line 22, in <module>
      pbr=True)
    File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
      _setup_distribution = dist = klass(attrs)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
      self.fetch_build_eggs(attrs.pop('setup_requires'))
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
      parse_requirements(requires), installer=self.fetch_build_egg
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
      dist = best[req.key] = env.best_match(req, self, installer)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
      return self.obtain(req, installer) # try and download/install
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
      return installer(requirement)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
      return cmd.easy_install(req)
    File "/opt/stack/nova/.venv/local/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>=0.5.20')

  ----------------------------------------
  Cleaning up...
  Command python setup.py egg_info failed with error code 1 in /opt/stack/nova/.venv/build/python-cinderclient
  Storing complete log in /home/oomichi/.pip/pip.log
  Command "tools/with_venv.sh pip install --upgrade -r /opt/stack/nova/requirements.txt" failed.
  None
  $
  == end of log =========================================================================

  The environment where this problem happens is in http proxy, and run_tests.sh should get necessary python library through http proxy.
  On the other environment where possible to access to the internet directly, this problem does not happen and run_tests.sh succeeds.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1210441/+subscriptions