summaryrefslogtreecommitdiff
path: root/neutron/notifiers
diff options
context:
space:
mode:
authorKevin Benton <kevin@benton.pub>2016-02-17 00:49:43 -0800
committerSalvatore Orlando <salv.orlando@gmail.com>2016-03-08 04:21:31 -0800
commitfc954c9426a58e6bdcb744b1e5d131eff99d65e8 (patch)
tree3aed25314a63ea310c9a44fd1b2e5762d5f14fe6 /neutron/notifiers
parent48649d83aa0986e83d8441925abce754f95c0191 (diff)
downloadneutron-fc954c9426a58e6bdcb744b1e5d131eff99d65e8.tar.gz
Add Nova notifier hook calls to pecan
This patch adds a the Nova notifier calls to the pecan notification hook and adds some simple functional tests for them as well. This patch also alters the operations of the policy enforcement hook, which now stores in the request context the original value of the object rather than the value of the object as it would have appeared to the plugin - that is to say a merge between the original objects and the parameters passed on to the request body. Such 'frankenobject' is indeed of no use for the notifiers. Partial-Bug: #1552979 Change-Id: I4a37197eb38afe15d2b368f4e355226824478792
Diffstat (limited to 'neutron/notifiers')
-rw-r--r--neutron/notifiers/nova.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py
index c444c19afc..57f636e0c0 100644
--- a/neutron/notifiers/nova.py
+++ b/neutron/notifiers/nova.py
@@ -46,6 +46,9 @@ class Notifier(object):
# and each Notifier is handling it's own auth. That means that we are
# authenticating the exact same thing len(controllers) times. This
# should be an easy thing to optimize.
+ # FIXME(kevinbenton): remove this comment and the one above once the
+ # switch to pecan is complete since only one notifier is constructed
+ # in the pecan notification hook.
auth = ks_loading.load_auth_from_conf_options(cfg.CONF, 'nova')
session = ks_loading.load_session_from_conf_options(