← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1290975] [NEW] cells AttributeError with compute api methods using new object access style

 

Public bug reported:

The nova-cells service looks up instances locally before passing them to
the local compute api, and only converts them to objects if the compute
api method is explicitly listed in the run_compute_api method.  There is
in fact a FIXME around this process, but it appears to not have been
addressed yet :)

2014-03-10 17:27:59.881 30193 ERROR nova.cells.messaging [req-3e27c8c0-6b3c-482d-bb9b-d638933ec949 10226892 5915610] Error processing message locally: 'dict' object has no attribute 'metadata'
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging Traceback (most recent call last):
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 211, in _process_locally
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     resp_value = self.msg_runner._process_message_locally(self)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 1290, in _process_message_locally
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return fn(message, **message.method_kwargs)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 706, in run_compute_api_method
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return fn(message.ctxt, *args, **method_info['method_kwargs'])
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 199, in wrapped
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return func(self, context, target, *args, **kwargs)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 189, in inner
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return function(self, context, instance, *args, **kwargs)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 170, in inner
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return f(self, context, instance, *args, **kw)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 2988, in update_instance_metadata
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     orig = dict(instance.metadata)
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging AttributeError: 'dict' object has no attribute 'metadata'
2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1290975

Title:
  cells AttributeError with compute api methods using new object access
  style

Status in OpenStack Compute (Nova):
  New

Bug description:
  The nova-cells service looks up instances locally before passing them
  to the local compute api, and only converts them to objects if the
  compute api method is explicitly listed in the run_compute_api method.
  There is in fact a FIXME around this process, but it appears to not
  have been addressed yet :)

  2014-03-10 17:27:59.881 30193 ERROR nova.cells.messaging [req-3e27c8c0-6b3c-482d-bb9b-d638933ec949 10226892 5915610] Error processing message locally: 'dict' object has no attribute 'metadata'
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging Traceback (most recent call last):
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 211, in _process_locally
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     resp_value = self.msg_runner._process_message_locally(self)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 1290, in _process_message_locally
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return fn(message, **message.method_kwargs)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/cells/messaging.py", line 706, in run_compute_api_method
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return fn(message.ctxt, *args, **method_info['method_kwargs'])
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 199, in wrapped
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return func(self, context, target, *args, **kwargs)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 189, in inner
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return function(self, context, instance, *args, **kwargs)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 170, in inner
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     return f(self, context, instance, *args, **kw)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging   File "/opt/rackstack/615.0/nova/lib/python2.6/site-packages/nova/compute/api.py", line 2988, in update_instance_metadata
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging     orig = dict(instance.metadata)
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging AttributeError: 'dict' object has no attribute 'metadata'
  2014-03-10 17:27:59.881 30193 TRACE nova.cells.messaging

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


Follow ups

References