← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1463039] [NEW] BandwidthUsage object has no attribute 'instance_uuid'

 

Public bug reported:

XenServer CI is hitting the following issue (e.g. http
://dd6b71949550285df7dc-
dda4e480e005aaa13ec303551d2d8155.r49.cf1.rackcdn.com/64/188764/2/137/index.html)

2015-06-05 15:27:01.284 ERROR oslo_messaging.rpc.dispatcher [req-5abea3a3-d27b-4221-bec0-3f6ab9a8627e ServerActionsTestJSON-151373989 ServerActionsTestJSON-2013533026] Exception during message handling: 'BandwidthUsage' object has no attribute 'instance_uuid'
Traceback (most recent call last):
  File "/opt/stack/new/nova/nova/conductor/manager.py", line 436, in _object_dispatch
    return getattr(target, method)(*args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/base.py", line 833, in wrapper
    return fn.__get__(None, obj)(*args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/base.py", line 160, in wrapper
    result = fn(cls, context, *args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 88, in get_by_uuids
    return base.obj_make_list(context, cls(), BandwidthUsage, db_bw_usages)
  File "/opt/stack/new/nova/nova/objects/base.py", line 811, in obj_make_list
    **extra_args)
  File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 40, in _from_db_object
    bw_usage[field] = db_bw_usage[field]
  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 54, in __getitem__
    return getattr(self, key)
AttributeError: 'BandwidthUsage' object has no attribute 'instance_uuid'

Also seen in the periodic task:
2015-06-05 15:26:32.219 ERROR nova.openstack.common.periodic_task [req-a13743a2-7ca0-4865-a237-6aba08e704fb None None] Error during ComputeManager._poll_bandwidth_usage: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
  File "/opt/stack/new/nova/nova/conductor/manager.py", line 436, in _object_dispatch
    return getattr(target, method)(*args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/base.py", line 831, in wrapper
    return fn(obj, *args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/base.py", line 205, in wrapper
    return fn(self, *args, **kwargs)
  File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 65, in create
    self._from_db_object(self._context, self, db_bw_usage)
  File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 40, in _from_db_object
    bw_usage[field] = db_bw_usage[field]
TypeError: 'NoneType' object has no attribute '__getitem__'

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: xenserver

** Project changed: bagpipe-l2 => nova

** Tags added: xenserver

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

Title:
  BandwidthUsage object has no attribute 'instance_uuid'

Status in OpenStack Compute (Nova):
  New

Bug description:
  XenServer CI is hitting the following issue (e.g. http
  ://dd6b71949550285df7dc-
  dda4e480e005aaa13ec303551d2d8155.r49.cf1.rackcdn.com/64/188764/2/137/index.html)

  2015-06-05 15:27:01.284 ERROR oslo_messaging.rpc.dispatcher [req-5abea3a3-d27b-4221-bec0-3f6ab9a8627e ServerActionsTestJSON-151373989 ServerActionsTestJSON-2013533026] Exception during message handling: 'BandwidthUsage' object has no attribute 'instance_uuid'
  Traceback (most recent call last):
    File "/opt/stack/new/nova/nova/conductor/manager.py", line 436, in _object_dispatch
      return getattr(target, method)(*args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/base.py", line 833, in wrapper
      return fn.__get__(None, obj)(*args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/base.py", line 160, in wrapper
      result = fn(cls, context, *args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 88, in get_by_uuids
      return base.obj_make_list(context, cls(), BandwidthUsage, db_bw_usages)
    File "/opt/stack/new/nova/nova/objects/base.py", line 811, in obj_make_list
      **extra_args)
    File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 40, in _from_db_object
      bw_usage[field] = db_bw_usage[field]
    File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 54, in __getitem__
      return getattr(self, key)
  AttributeError: 'BandwidthUsage' object has no attribute 'instance_uuid'

  Also seen in the periodic task:
  2015-06-05 15:26:32.219 ERROR nova.openstack.common.periodic_task [req-a13743a2-7ca0-4865-a237-6aba08e704fb None None] Error during ComputeManager._poll_bandwidth_usage: 'NoneType' object has no attribute '__getitem__'
  Traceback (most recent call last):
    File "/opt/stack/new/nova/nova/conductor/manager.py", line 436, in _object_dispatch
      return getattr(target, method)(*args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/base.py", line 831, in wrapper
      return fn(obj, *args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/base.py", line 205, in wrapper
      return fn(self, *args, **kwargs)
    File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 65, in create
      self._from_db_object(self._context, self, db_bw_usage)
    File "/opt/stack/new/nova/nova/objects/bandwidth_usage.py", line 40, in _from_db_object
      bw_usage[field] = db_bw_usage[field]
  TypeError: 'NoneType' object has no attribute '__getitem__'

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


Follow ups

References