Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, Jason (zzs)

I installed sudo apt-get build-dep python-mysqldb

Then ran

source .venv/bin/activate

$ ./bin/nova-all

Got same error again

I tried in Ubuntu 12.10 ang getting same error

======== Complete Steps I followed ==========

lsb_release -a

Distributor ID: Ubuntu Description: Ubuntu 12.10 Release: 12.10 Codename: quantal

sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev

sudo apt-get build-dep python-mysqldb

sudo apt-get install libpq-dev python-dev

git clone https://github.com/openstack/nova.git

cd nova

python tools/install_venv.py

source .venv/bin/activate

./bin/nova-all

# ERROR

(.venv)saju@saju-Inspiron-N5010:~/ops_manual/nova$ ./bin/nova-all 2013-03-23 01:35:27.802 5250 ERROR nova.all [-] Failed to load ec2-api 2013-03-23 01:35:27.802 5250 TRACE nova.all Traceback (most recent call last): 2013-03-23 01:35:27.802 5250 TRACE nova.all File "./bin/nova-all", line 67, in <module> 2013-03-23 01:35:27.802 5250 TRACE nova.all server = service.WSGIService(api) 2013-03-23 01:35:27.802 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/service.py", line 597, in __init__ 2013-03-23 01:35:27.802 5250 TRACE nova.all self.loader = loader or wsgi.Loader() 2013-03-23 01:35:27.802 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/wsgi.py", line 469, in __init__ 2013-03-23 01:35:27.802 5250 TRACE nova.all raise exception.ConfigNotFound(path=config_path) 2013-03-23 01:35:27.802 5250 TRACE nova.all ConfigNotFound: Could not find config at api-paste.ini 2013-03-23 01:35:27.802 5250 TRACE nova.all 2013-03-23 01:35:27.804 5250 ERROR nova.all [-] Failed to load osapi_compute-api 2013-03-23 01:35:27.804 5250 TRACE nova.all Traceback (most recent call last): 2013-03-23 01:35:27.804 5250 TRACE nova.all File "./bin/nova-all", line 67, in <module> 2013-03-23 01:35:27.804 5250 TRACE nova.all server = service.WSGIService(api) 2013-03-23 01:35:27.804 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/service.py", line 597, in __init__ 2013-03-23 01:35:27.804 5250 TRACE nova.all self.loader = loader or wsgi.Loader() 2013-03-23 01:35:27.804 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/wsgi.py", line 469, in __init__ 2013-03-23 01:35:27.804 5250 TRACE nova.all raise exception.ConfigNotFound(path=config_path) 2013-03-23 01:35:27.804 5250 TRACE nova.all ConfigNotFound: Could not find config at api-paste.ini 2013-03-23 01:35:27.804 5250 TRACE nova.all 2013-03-23 01:35:27.871 5250 ERROR nova.all [-] Failed to load metadata-api 2013-03-23 01:35:27.871 5250 TRACE nova.all Traceback (most recent call last): 2013-03-23 01:35:27.871 5250 TRACE nova.all File "./bin/nova-all", line 67, in <module> 2013-03-23 01:35:27.871 5250 TRACE nova.all server = service.WSGIService(api) 2013-03-23 01:35:27.871 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/service.py", line 597, in __init__ 2013-03-23 01:35:27.871 5250 TRACE nova.all self.loader = loader or wsgi.Loader() 2013-03-23 01:35:27.871 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/wsgi.py", line 469, in __init__ 2013-03-23 01:35:27.871 5250 TRACE nova.all raise exception.ConfigNotFound(path=config_path) 2013-03-23 01:35:27.871 5250 TRACE nova.all ConfigNotFound: Could not find config at api-paste.ini 2013-03-23 01:35:27.871 5250 TRACE nova.all 2013-03-23 01:35:27.991 5250 ERROR nova.virt.driver [-] Compute driver option required, but not specified 2013-03-23 01:35:27.992 5250 ERROR nova.all [-] Failed to load nova-compute 2013-03-23 01:35:27.992 5250 TRACE nova.all Traceback (most recent call last): 2013-03-23 01:35:27.992 5250 TRACE nova.all File "./bin/nova-all", line 97, in <module> 2013-03-23 01:35:27.992 5250 TRACE nova.all manager=manager)) 2013-03-23 01:35:27.992 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/service.py", line 534, in create 2013-03-23 01:35:27.992 5250 TRACE nova.all db_allowed=db_allowed) 2013-03-23 01:35:27.992 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/service.py", line 413, in __init__ 2013-03-23 01:35:27.992 5250 TRACE nova.all self.manager = manager_class(host=self.host, args, *kwargs) 2013-03-23 01:35:27.992 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/compute/manager.py", line 353, in __init__ 2013-03-23 01:35:27.992 5250 TRACE nova.all self.driver = driver.load_compute_driver(self.virtapi, compute_driver) 2013-03-23 01:35:27.992 5250 TRACE nova.all File "/home/saju/ops_manual/nova/nova/virt/driver.py", line 924, in load_compute_driver 2013-03-23 01:35:27.992 5250 TRACE nova.all sys.exit(1) 2013-03-23 01:35:27.992 5250 TRACE nova.all SystemExit: 1 2013-03-23 01:35:27.992 5250 TRACE nova.all 2013-03-23 01:35:28.262 5263 ERROR nova.service [-] Unhandled exception 2013-03-23 01:35:28.262 5263 TRACE nova.service Traceback (most recent call last): 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/service.py", line 307, in _start_child 2013-03-23 01:35:28.262 5263 TRACE nova.service self._child_process(wrap.server) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/service.py", line 284, in _child_process 2013-03-23 01:35:28.262 5263 TRACE nova.service launcher.run_server(server) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/service.py", line 147, in run_server 2013-03-23 01:35:28.262 5263 TRACE nova.service server.start() 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/service.py", line 434, in start 2013-03-23 01:35:28.262 5263 TRACE nova.service self.host, self.binary) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/conductor/api.py", line 258, in service_get_by_args 2013-03-23 01:35:28.262 5263 TRACE nova.service binary=binary) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/utils.py", line 1348, in wrapper 2013-03-23 01:35:28.262 5263 TRACE nova.service return func(args, *kwargs) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/openstack/common/rpc/common.py", line 424, in inner 2013-03-23 01:35:28.262 5263 TRACE nova.service return catch_client_exception(exceptions, func, args, *kwargs) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/openstack/common/rpc/common.py", line 407, in catch_client_exception 2013-03-23 01:35:28.262 5263 TRACE nova.service return func(args, *kwargs) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/conductor/manager.py", line 322, in service_get_all_by 2013-03-23 01:35:28.262 5263 TRACE nova.service result = self.db.service_get_by_args(context, host, binary) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/db/api.py", line 155, in service_get_by_args 2013-03-23 01:35:28.262 5263 TRACE nova.service return IMPL.service_get_by_args(context, host, binary) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/db/sqlalchemy/api.py", line 96, in wrapper 2013-03-23 01:35:28.262 5263 TRACE nova.service return f(args, *kwargs) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/nova/db/sqlalchemy/api.py", line 411, in service_get_by_args 2013-03-23 01:35:28.262 5263 TRACE nova.service filter_by(binary=binary).\ 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2156, in first 2013-03-23 01:35:28.262 5263 TRACE nova.service ret = list(self[0:1]) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2023, in __getitem__ 2013-03-23 01:35:28.262 5263 TRACE nova.service return list(res) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in __iter__ 2013-03-23 01:35:28.262 5263 TRACE nova.service return self._execute_and_instances(context) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances 2013-03-23 01:35:28.262 5263 TRACE nova.service result = conn.execute(querycontext.statement, self._params) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute 2013-03-23 01:35:28.262 5263 TRACE nova.service params) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement 2013-03-23 01:35:28.262 5263 TRACE nova.service compiled_sql, distilled_params 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context 2013-03-23 01:35:28.262 5263 TRACE nova.service context) 2013-03-23 01:35:28.262 5263 TRACE nova.service File "/home/saju/ops_manual/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1850, in _handle_dbapi_exception 2013-03-23 01:35:28.262 5263 TRACE nova.service None, sys.exc_info()[2] 2013-03-23 01:35:28.262 5263 TRACE nova.service OperationalError: (OperationalError) no such table: services u'SELECT services.created_at AS services_created_at, services.updated_at AS services_updated_at, services.deleted_at AS services_deleted_at, services.deleted AS services_deleted, services.id AS services_id, services.host AS services_host, services.binary AS services_binary, services.topic AS services_topic, services.report_count AS services_report_count, services.disabled AS services_disabled \nFROM services \nWHERE services.deleted = ? AND services.host = ? AND services.binary = ?\n LIMIT ? OFFSET ?' (0, 'saju-Inspiron-N5010', 'nova-scheduler', 1, 0) 2013-03-23 01:35:28.262 5263 TRACE nova.service 2013-03-23 01:35:28.400 5265 ERROR nova.service [-] Unhandled exception