cloudbuilders/devstack — Issue #75: easyinstall scripts in /usr/local/bin do not work
Author: smoser
Created: 2011-10-17 17:39:34+00:00
State: open

$ which nova-manage
/usr/local/bin/nova-manage

$ nova-manage flavor list
Command failed, please check log for more info
2011-10-17 13:37:49,222 CRITICAL nova [-] (OperationalError) no such table: instance_types u'SELECT instance_types.created_at AS instance_types_created_at, instance_types.updated_at AS instance_types_updated_at, instance_types.deleted_at AS instance_types_deleted_at, instance_types.deleted AS instance_types_deleted, instance_types.id AS instance_types_id, instance_types.name AS instance_types_name, instance_types.memory_mb AS

...

$ /opt/stack/nova/bin/nova-manage flavor list
2011-10-17 13:38:51,685 DEBUG nova.utils [-] backend from (pid=22843) __get_backend /opt/stack/nova/nova/utils.py:447
m1.medium: Memory: 4096MB, VCPUS: 2, Storage: 40GB, FlavorID: 3, Swap: 0MB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.large: Memory: 8192MB, VCPUS: 4, Storage: 80GB, FlavorID: 4, Swap: 0MB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.tiny: Memory: 512MB, VCPUS: 1, Storage: 0GB, FlavorID: 1, Swap: 0MB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.xlarge: Memory: 16384MB, VCPUS: 8, Storage: 160GB, FlavorID: 5, Swap: 0MB, RXTX Quota: 0GB, RXTX Cap: 0MB
m1.small: Memory: 2048MB, VCPUS: 1, Storage: 20GB, FlavorID: 2, Swap: 0MB, RXTX Quota: 0GB, RXTX Cap: 0MB

$ cat /usr/local/bin/nova-manage
#!/usr/bin/python
# EASY-INSTALL-DEV-SCRIPT: 'nova==2011.3','nova-manage'
__requires__ = 'nova==2011.3'
from pkg_resources import require; require('nova==2011.3')
del require
__file__ = '/opt/stack/nova/bin/nova-manage'
execfile(__file__)