yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00495
[Bug 1123435] Re: no-db-compute exception with --config-drive 1 add_instance_metadata
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1123435
Title:
no-db-compute exception with --config-drive 1 add_instance_metadata
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
I saw this in the log when booting an instance with --config-drive 1
2013-02-12 14:19:09.590 DEBUG nova.openstack.common.rpc.amqp [req-0ca6842b-6caa-495f-ae3a-b043578f4600 admin demo] MSG_ID is cdf0d97a7a9e4515b70dba9a6ba7685c from (pid=9692) multicall /opt/stack/nova/nova/openstack/common/rpc/amqp.py:365
2013-02-12 14:19:09.826 ERROR nova.compute [req-0ca6842b-6caa-495f-ae3a-b043578f4600 admin demo] No db access allowed in nova-compute: File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
func(*args, **kwargs)
File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
return f(self, context, *args, **kw)
File "/opt/stack/nova/nova/compute/manager.py", line 191, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 256, in decorated_function
function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 220, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 1093, in run_instance
do_run_instance()
File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 243, in inner
retval = f(*args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 1092, in do_run_instance
admin_password, is_first_time, node, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 722, in _run_instance
injected_files, admin_password)
File "/opt/stack/nova/nova/compute/manager.py", line 996, in _spawn
block_device_info)
File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1199, in spawn
admin_pass=admin_password)
File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1527, in _create_image
content=files, extra_md=extra_md)
File "/opt/stack/nova/nova/api/metadata/base.py", line 142, in __init__
network_info = network.API().get_instance_nw_info(ctxt, instance)
File "/opt/stack/nova/nova/network/api.py", line 88, in wrapped
return func(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/network/api.py", line 340, in get_instance_nw_info
result, conductor_api)
File "/opt/stack/nova/nova/network/api.py", line 76, in update_instance_cache_with_nw_info
api.db.instance_info_cache_update(context, instance['uuid'], cache)
File "/opt/stack/nova/nova/db/api.py", line 735, in instance_info_cache_update
rv = IMPL.instance_info_cache_update(context, instance_uuid, values)
File "/opt/stack/nova/bin/nova-compute", line 65, in __call__
stacktrace = "".join(traceback.format_stack())
2013-02-12 14:19:09.826 ERROR nova.network.api [req-0ca6842b-6caa-495f-ae3a-b043578f4600 admin demo] [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] Failed storing info cache
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] Traceback (most recent call last):
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] File "/opt/stack/nova/nova/network/api.py", line 76, in update_instance_cache_with_nw_info
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] api.db.instance_info_cache_update(context, instance['uuid'], cache)
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] File "/opt/stack/nova/nova/db/api.py", line 735, in instance_info_cache_update
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] rv = IMPL.instance_info_cache_update(context, instance_uuid, values)
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] File "/opt/stack/nova/bin/nova-compute", line 67, in __call__
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] raise exception.DBNotAllowed('nova-compute')
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c] DBNotAllowed: nova-compute
2013-02-12 14:19:09.826 TRACE nova.network.api [instance: 6e272a44-f1ec-4611-9471-59ea96857d1c]
2013-02-12 14:19:09.829 DEBUG nova.virt.configdrive [req-0ca6842b-6caa-495f-ae3a-b043578f4600 admin demo] Added ec2/2009-04-04/meta-data.json to config drive from (pid=9692) add_instance_metadata /opt/stack/nova/nova/virt/configdrive.py:97
The boot still completed successfully.
I'm running with a couple extra patches:
237d78d Make the metadata paths use conductor -- https://review.openstack.org/#/c/21573/
be7a1c4 Fix nova-compute use of missing DBError -- https://review.openstack.org/#/c/21569/
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1123435/+subscriptions