nova/nova
Balazs Gibizer 590d40c804 Forbid new legacy notification event_type
As we agreed on the Mitaka midcycle no new legacy notification
event_type are allowed in Nova and every new notification shall
use the versioned notification framework.

This patch adds a validation step into the legacy notification
sending call chain. It checks the event_type against a whitelist.
During unit and functional testing an exception is raised if the
event_type is not known and therefore forbiden. This check is not
100% foolproof as it only detects the new event_type if there is
a test that triggers the sending of it and this check is not capable
of detecting such event_types if the test directly mocks
nova.rpc.get_notifier.

During normal operation a WARNING is logged so that a logstash query
can be set up to detect the rest of the cases.

Change-Id: Ia6600868aa7b3a22cb8c020503f49dce6a4c2c2b
2016-03-07 10:31:56 +01:00
..
CA
api Merge "Deprecate the ``vendordata_driver`` config option." 2016-03-04 14:50:55 +00:00
cells Create BuildRequest object during boot process 2016-03-02 21:53:15 -05:00
cert Move config options from nova/cert directory 2016-01-14 22:22:34 +00:00
cloudpipe Remove Deprecated EC2 and ObjectStore impl/tests 2016-01-08 06:30:20 -05:00
cmd Merge "Fix online_data_migrations() not passing context" 2016-02-29 23:35:39 +00:00
common Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
compute Merge "Dump metric exception text to logs" 2016-03-07 07:00:25 +00:00
conductor API: Improve os-migrateLive input parameters 2016-02-29 17:44:17 +00:00
conf deprecate manager class options 2016-03-04 06:35:44 -05:00
console Fix invalid import order 2016-01-20 05:03:41 -08:00
consoleauth Removal of unnecessary `import_opt`s for cells config options 2016-02-12 14:16:54 +02:00
db Merge "Deprecate db_driver config option" 2016-03-04 14:49:14 +00:00
hacking Hacking: check for deprecated os.popen() 2016-02-19 21:55:20 -02:00
image Update the help for deprecated glance host/port/protocol options 2016-02-25 15:40:26 -05:00
ipv6
keymgr Migrate from keystoneclient to keystoneauth 2016-01-28 10:55:29 -06:00
locale Imported Translations from Zanata 2016-02-08 07:01:33 +00:00
mks
network Merge "deprecate ``volume_api_class`` and ``network_api_class``" 2016-03-04 22:18:29 +00:00
objects Merge "Don't lazy-load instance.services if the instance is deleted" 2016-03-04 22:16:52 +00:00
openstack Use imageutils from oslo.utils 2016-02-16 18:34:43 +08:00
pci libvirt: implement LibvirtConfigGuestInterface.parse_dom 2016-02-09 09:26:25 -08:00
rdp
scheduler Fix missing of unit in HostState.__repr__() 2016-03-03 17:51:34 +08:00
servicegroup Add service binary/host to service is down log for context 2016-02-26 12:57:57 -05:00
spice
tests Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
virt Merge "Ironic: Clean up if configdrive build fails" 2016-03-07 00:13:04 +00:00
vnc config options: Centralise 'vnc' options 2016-02-03 13:36:20 +00:00
volume deprecate ``volume_api_class`` and ``network_api_class`` 2016-03-04 07:59:46 -05:00
wsgi Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
__init__.py
availability_zones.py Merge "Config options: centralize options in availability_zones" 2016-02-20 04:49:15 +00:00
baserpc.py
block_device.py config options: Centralise 'virt.driver' options 2016-02-11 09:40:25 +00:00
cache_utils.py Switch to oslo.cache lib 2016-02-02 08:20:13 -05:00
config.py Added Keystone and RequestID headers to CORS middleware 2016-03-02 04:53:11 -08:00
context.py Add methods for RequestContext to switch db connection 2016-02-10 03:19:36 +00:00
crypto.py Tolerate installation of pycryptodome 2016-02-13 21:29:28 -05:00
debugger.py
exception.py Merge "neutron: handle attach interface case with no networks" 2016-03-04 11:55:50 +00:00
filters.py Prepare filters for using RequestSpec object 2015-11-16 22:41:02 +01:00
hooks.py Deprecate nova.hooks 2016-03-01 11:52:52 +00:00
i18n.py
loadables.py
manager.py Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
netconf.py
notifications.py Replaced deprecated timeutils methods 2015-11-18 17:45:29 +01:00
opts.py Sample nova.conf file has missing/duplicated config options 2016-03-03 13:08:02 +01:00
paths.py
policy.py use graduated oslo.policy 2015-11-26 13:04:52 +08:00
quota.py
rpc.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
safe_utils.py Replace safe_utils.getcallargs with inspect.getcallargs 2015-12-11 10:15:37 -05:00
service.py deprecate manager class options 2016-03-04 06:35:44 -05:00
signature_utils.py Fix sphinx warnings from signature_utils 2016-01-13 13:56:05 +00:00
test.py Forbid new legacy notification event_type 2016-03-07 10:31:56 +01:00
utils.py Use constant_time_compare from oslo.utils 2016-02-25 18:52:05 +08:00
version.py
weights.py
wsgi.py config options: centralize section "wsgi" 2016-02-03 13:18:10 +00:00