Nova "./run_tests.sh" fails on Debian 6.0

Bug #938418 reported by Alexey Eromenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

Bug Description

In addition to "Docs: Lacking section of installing from source code" (Bug #938416),

the "./run_tests.sh" fails on Debian 6.0 host.

Unzipped Nova 11.3 "Diablo" source code..

user@xrig:~/Linstall/nova-2011.3$ ./run_tests.sh
No virtual environment found...create one? (Y/n) y
not found.
done.
Creating venv...
Traceback (most recent call last):
  File "tools/install_venv.py", line 146, in <module>
    main(sys.argv)
  File "tools/install_venv.py", line 141, in main
    create_virtualenv()
  File "tools/install_venv.py", line 92, in create_virtualenv
    run_command(['virtualenv', '-q', '--no-site-packages', VENV])
  File "tools/install_venv.py", line 57, in run_command
    proc = subprocess.Popen(cmd, cwd=ROOT, stdout=stdout)
  File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

-Technologov, 22.02.2012.

Revision history for this message
Alexey Eromenko (al4321) wrote :
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Here's what we do now. The exception information is pretty good i think. we should close this bug now

class Distro(InstallVenv):

    def check_cmd(self, cmd):
        return bool(self.run_command(['which', cmd],
                    check_exit_code=False).strip())

    def install_virtualenv(self):
        if self.check_cmd('virtualenv'):
            return

        if self.check_cmd('easy_install'):
            print 'Installing virtualenv via easy_install...',
            if self.run_command(['easy_install', 'virtualenv']):
                print 'Succeeded'
                return
            else:
                print 'Failed'

        self.die('ERROR: virtualenv not found.\n\n%s development'
                 ' requires virtualenv, please install it using your'
                 ' favorite package management tool' % self.project)

Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.1
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.