← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1454149] Re: self._event is None that causes "AttributeError: 'NoneType' object has no attribute 'pop'"

 

** Changed in: nova/kilo
       Status: Fix Released => Fix Committed

** Changed in: nova/kilo
    Milestone: 2015.1.2 => 2015.1.3

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

Title:
  self._event is None that causes "AttributeError: 'NoneType' object has
  no attribute 'pop'"

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) kilo series:
  Fix Committed

Bug description:
  Here is the log:
  2015-05-11 17:17:50.655 14671 ERROR nova.compute.manager [req-ed95e1f2-11d3-404c-ac78-8c1d5e24bfbf ff514b152688486b9dd9752b3d67fa78 689d7e1036e64e0fbf7fd8b4f51d2e57 - - -] [instance: b83786e1-a222-4409-8d46-65c08c70fa5c] Setting instance vm_state to ERROR
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c] Traceback (most recent call last):
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2784, in do_terminate_instance
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     self._delete_instance(context, instance, bdms, quotas)
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     rv = f(*args, **kwargs)
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2753, in _delete_instance
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     quotas.rollback()
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     six.reraise(self.type_, self.value, self.tb)
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2716, in _delete_instance
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     events = self.instance_events.clear_events_for_instance(instance)
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 562, in clear_events_for_instance
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     return _clear_events()
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 445, in inner
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     return f(*args, **kwargs)
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 561, in _clear_events
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]     return self._events.pop(instance.uuid, {})
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c] AttributeError: 'NoneType' object has no attribute 'pop'
  2015-05-11 17:17:50.655 14671 TRACE nova.compute.manager [instance: b83786e1-a222-4409-8d46-65c08c70fa5c]

  is there anyway to avoid self._events to be not "None"? This might be
  a bug.

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


References