Nova "./run_tests.sh" fails on Debian 6.0
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:
No virtual environment found...create one? (Y/n) y
not found.
done.
Creating venv...
Traceback (most recent call last):
File "tools/
main(sys.argv)
File "tools/
create_
File "tools/
run_
File "tools/
proc = subprocess.
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
-Technologov, 22.02.2012.
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-3 → 2013.1 |
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): run_command( ['which' , cmd],
check_ exit_code= False). strip() )
return bool(self.
def install_ virtualenv( self): cmd('virtualenv '):
if self.check_
return
if self.check_ cmd('easy_ install' ): command( ['easy_ install' , 'virtualenv']):
print 'Succeeded'
return
print 'Failed'
print 'Installing virtualenv via easy_install...',
if self.run_
else:
' requires virtualenv, please install it using your'
' favorite package management tool' % self.project)