virt/baremetal/volume_driver.py calls db api directly then fails.
2013-08-06 15:59:47.239 ERROR nova.compute [req-117555a1-bb81-43ec-9eee-ce976729093b demo demo] No db access allowed in nova-compute: File "/usr/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 421, in _process_data
**args)
File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
result = getattr(proxyobj, method)(ctxt, **kwargs)
File "/opt/stack/nova/nova/exception.py", line 77, in wrapped
return f(self, context, *args, **kw)
File "/opt/stack/nova/nova/compute/manager.py", line 216, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 245, in decorated_function
return function(self, context, *args, **kwargs)
File "/opt/stack/nova/nova/compute/manager.py", line 3424, in attach_volume
mountpoint, instance)
File "/opt/stack/nova/nova/compute/manager.py", line 3456, in _attach_volume
mountpoint)
File "/opt/stack/nova/nova/virt/baremetal/driver.py", line 357, in attach_volume
instance, mountpoint)
File "/opt/stack/nova/nova/virt/baremetal/volume_driver.py", line 225, in attach_volume
fixed_ips = nova_db_api.fixed_ip_get_by_instance(ctx, instance['uuid'])
File "/opt/stack/nova/nova/db/api.py", line 496, in fixed_ip_get_by_instance
return IMPL.fixed_ip_get_by_instance(context, instance_uuid)
File "/opt/stack/nova/nova/cmd/compute.py", line 47, in __call__
stacktrace = "".join(traceback.format_stack())
Fix proposed to branch: master /review. openstack. org/40362
Review: https:/