run_tests.sh hangs while trying to install distribute using pip

Bug #1006441 reported by Ophir Tal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

Hi,

I'm new to this project. Trying to follow the instructions on how to run unit tests, I came across the following problem:

when running ./run_tests.sh the first time, and installing a virtual environment, the script hangs on "pip install distribute".
However, running "python tools/install_venv.py" works fine.
Digging deeper, the root cause for this problem seems to be this line in run_tests.sh:
export PIP_USE_MIRRORS=true
A simple workaround for this - changing it to "PIP_USE_MIRRORS=false" (or deleting it altogether) - fixes the problem.

So, we're left with a pip bug when using mirroring. Searched a bit for an open bug regarding this, but did not find anything.
A couple of open questions here:
1. Is it happening only to me, or can someone else reproduce this?
2. (assuming the answer to (1) is that it's not only me) how do we want to handle this? for example, looking at Nova's code, there's no use of PIP_USE_MIRRORS there, so that's one possibility.

Tested this on two environments - both running Ubuntu-12.04 (64 bit) - a physical host running Ubuntu, and a VM (running on VMWare player within Windows 7)

Thanks,
Ophir

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

I've never heard of the pip "use mirrors" flag breaking things... I don't have a machine running 12.04 handy to test right this minute... if anyone else can confirm that would be very helpful.

Devin Carlen (devcamcar)
Changed in horizon:
status: New → Incomplete
Revision history for this message
Paul Belanger (pabelanger) wrote :

Just had the same issue. Running 'python tools/install_venv.py' works like a champ, run_tests.sh just hung. Checking the process I see tons of:

 Could not fetch URL http://aztw.pypi.python.org/simple/distribute/: <urlopen error [Errno -2] Name or service not known>
  Will skip URL http://aztw.pypi.python.org/simple/distribute/ when looking for download links for distribute>=0.6.24

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
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.