-V fails to run tests

asked 2011-01-11 16:07:24 -0600

lorinh gravatar image

I'd like to set up a local Hudson server that will run the suite of nova tests on a branch of OpenStack. My plan was to have it to just run the script. However, when I try to run the script on the code in the nova trunk, I get the following output:

$ ./ -V not found. Installing virtualenv via easy_install... done. done. Creating venv... Traceback (most recent call last): File "tools/", line 136, in <module> main(sys.argv) File "tools/", line 131, in main create_virtualenv() File "tools/", line 81, in create_virtualenv run_command(['virtualenv', '-q', '--no-site-packages', VENV]) File "tools/", line 50, in run_command proc = subprocess.Popen(cmd, cwd=ROOT, stdout=stdout) File "/usr/lib/python2.6/", line 633, in __init__ errread, errwrite) File "/usr/lib/python2.6/", line 1139, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory tools/ line 4: tools/../.nova-venv/bin/activate: No such file or directory

Is there something I should be doing first? For example, Does OpenStack need to be installed to run these tests?

I'm running on Ubuntu 10.04, not as root.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-01-11 17:58:19 -0600

lorinh gravatar image

Figured it out. The problem was that virtualenv wasn't installed.

The tools/ script is supposed to install virtualenv if it's not there, but it doesn't actually do so. I'll file a bug.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-01-11 16:07:24 -0600

Seen: 65 times

Last updated: Jan 11 '11