← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1208707] Re: Cannot attach a volume to a bare-metal instance

 

** 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/1208707

Title:
  Cannot attach a volume to a bare-metal instance

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  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())

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1208707/+subscriptions