Server operations fail to complete with versioned notifications if payload contains unset non-nullable fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Ocata |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Pike |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Queens |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
With versioned notifications, the instance payload tries to attach a flavor payload which it looks up from the instance. It uses the one which is attached in instance_extras however there seems to be a scenario where the disabled field is missing in the database, causing all operations to fail in the notification stage.
The JSON string for the flavor in the database is attached below (note this is a cloud with a long lifetime so it might be some weird conversion at some point in the life time of the cloud).
The temporary workaround as suggested by Matt was to switch to unversioned notification which did the trick.
== flavor ==
{"new": null, "old": null, "cur": {"nova_
== flavor ==
== stack ==
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
2017-10-23 14:49:21.117 40200 ERROR oslo_messaging.
== stack ==
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Balazs Gibizer (balazs-gibizer) |
Changed in nova: | |
importance: | High → Medium |
Changed in nova: | |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | Balazs Gibizer (balazs-gibizer) → Matt Riedemann (mriedem) |
status: | Confirmed → Triaged |
Fix proposed to branch: master /review. openstack. org/529194
Review: https:/