yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26172
[Bug 1396324] Re: Instance object has no attribute get_flavor()
** 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/1396324
Title:
Instance object has no attribute get_flavor()
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
The notifications code in nova is receiving a SQLAlchemy object when
trying to send state update notifications, resulting in this in the
conductor log:
2014-11-25 03:13:40.200 ERROR nova.notifications [req-1a9ed96d-7ce2-4c7d-a409-a6959852ce6a AggregatesAdminTestXML-569323565 AggregatesAdminTestXML-1788648791] [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] Failed to send state update notification
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] Traceback (most recent call last):
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] File "/opt/stack/new/nova/nova/notifications.py", line 146, in send_update
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] old_display_name=old_display_name)
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] File "/opt/stack/new/nova/nova/notifications.py", line 226, in _send_instance_update_notification
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] payload = info_from_instance(context, instance, None, None)
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] File "/opt/stack/new/nova/nova/notifications.py", line 369, in info_from_instance
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] instance_type = instance.get_flavor()
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b] AttributeError: 'Instance' object has no attribute 'get_flavor'
2014-11-25 03:13:40.200 27090 TRACE nova.notifications [instance: 74bb24d3-ba69-41e2-b99a-1c35a2331c1b]
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1396324/+subscriptions
References