← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1244311] Re: notification failure in _sync_power_states

 

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

Title:
  notification failure in _sync_power_states

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The _sync_power_states periodic task pull instances without
  system_metadata in order to reduce network bandwidth being
  unnecessarily consumed.  Most of the time this is fine, but "if
  vm_power_state != db_power_state" then the instance is updated and
  saved.  As part of saving the instance a notification is sent.  In
  order to send the notification it extracts flavor information from the
  system_metadata on the instance.  But system_metadata isn't loaded,
  and won't be lazy loaded.  So an exception is raised and the
  notification isn't sent.

  2013-10-23 03:30:35.714 21492 ERROR nova.notifications [-] [instance: fa0cee4b-6825-47af-bf6f-64491326feab] Failed to send state update notification
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] Traceback (most recent call last):
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] File "/opt/rackstack/472.23/nova/lib/python2.6/site-packages/nova/notifications.py", line 146, in send_update
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] old_display_name=old_display_name)
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] File "/opt/rackstack/472.23/nova/lib/python2.6/site-packages/nova/notifications.py", line 199, in _send_instance_update_notification
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] payload = info_from_instance(context, instance, None, None)
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] File "/opt/rackstack/472.23/nova/lib/python2.6/site-packages/nova/notifications.py", line 343, in info_from_instance
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] instance_type = flavors.extract_flavor(instance_ref)
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] File "/opt/rackstack/472.23/nova/lib/python2.6/site-packages/nova/compute/flavors.py", line 282, in extract_flavor
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] instance_type[key] = type_fn(sys_meta[type_key])
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab] KeyError: 'instance_type_memory_mb'
  2013-10-23 03:30:35.714 21492 TRACE nova.notifications [instance: fa0cee4b-6825-47af-bf6f-64491326feab]
  2013-10-23 03:30:35.718 21492 WARNING nova.compute.manager [-] [instance: fa0cee4b-6825-47af-bf6f-64491326feab] Instance shutdown by itself. Calling the stop API.

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