summaryrefslogtreecommitdiff
path: root/nova/tests/unit/notifications
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2018-04-25 11:17:14 +0800
committerKevin_Zheng <zhengzhenyu@huawei.com>2018-06-19 16:46:46 +0800
commit2a0f2a0d270c6a5bb7c141e84a83d9d0e783ae3b (patch)
tree7dab94f8ce2b1429db7e71b2ec971fc35366ada4 /nova/tests/unit/notifications
parent8863b501b700c600afb37b2ce4019562cd06f42b (diff)
downloadnova-2a0f2a0d270c6a5bb7c141e84a83d9d0e783ae3b.tar.gz
Add full traceback to ExceptionPayload in versioned notifications
This patch adds full traceback to ExceptionPayload in versioned notifications. The instance fault field and instance-action REST API has already provide the traceback to the admin users (controlable through policy) and the notifications are also admin only things as they are emitted to the message bus by default. So it is assumed that security is not a bigger concern for the notification than for the REST API. On the ML [1] post there was no objection to add new string field to the ExceptionPayload that will hold the serialized traceback object. [1] http://lists.openstack.org/pipermail/openstack-dev/2018-March/128105.html Implements: blueprint add-full-traceback-to-error-notifications Change-Id: Id587967ea4f9980c292492e2f659bf55fb037b28
Diffstat (limited to 'nova/tests/unit/notifications')
-rw-r--r--nova/tests/unit/notifications/objects/test_notification.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/unit/notifications/objects/test_notification.py b/nova/tests/unit/notifications/objects/test_notification.py
index fc664cee62..b97633d974 100644
--- a/nova/tests/unit/notifications/objects/test_notification.py
+++ b/nova/tests/unit/notifications/objects/test_notification.py
@@ -371,7 +371,7 @@ notification_object_data = {
'BlockDevicePayload': '1.0-29751e1b6d41b1454e36768a1e764df8',
'EventType': '1.10-2a6ab743d767837366ab1aec387d7c3b',
'ExceptionNotification': '1.0-a73147b93b520ff0061865849d3dfa56',
- 'ExceptionPayload': '1.0-27db46ee34cd97e39f2643ed92ad0cc5',
+ 'ExceptionPayload': '1.1-6c43008bd81885a63bc7f7c629f0793b',
'FlavorNotification': '1.0-a73147b93b520ff0061865849d3dfa56',
'FlavorPayload': '1.4-2e7011b8b4e59167fe8b7a0a81f0d452',
'InstanceActionNotification': '1.0-a73147b93b520ff0061865849d3dfa56',