From 832522c2924afe7407f2b526e483560085745cb2 Mon Sep 17 00:00:00 2001 From: Ifat Afek Date: Thu, 13 Dec 2018 16:33:54 +0000 Subject: [PATCH] Use Nova versioned notifications by default Changed the behavior of the Nova instance datasource to use by default the versioned notifications. Change-Id: Ife5c78c6568939f919174b5072fd70f461de0bd1 Story: 2004052 Task: 28501 --- devstack/README.rst | 4 ++++ devstack/gate_hook.sh | 4 ++++ devstack/gate_hook_mock.sh | 4 ++++ doc/source/contributor/configuration.rst | 1 + doc/source/contributor/nova-config.rst | 23 +++++++++++++++++++ doc/source/install/install-rdo.rst | 4 ++++ ...sioned-notifications-3c5ff450b9fe69f0.yaml | 4 +++- vitrage/datasources/nova/instance/driver.py | 3 --- .../nova/instance/field_extractor.py | 1 + vitrage/os_clients.py | 2 +- vitrage/tests/unit/entity_graph/base.py | 2 +- .../entity_graph/processor/test_processor.py | 16 ++++++++----- 12 files changed, 56 insertions(+), 12 deletions(-) create mode 100644 doc/source/contributor/nova-config.rst diff --git a/devstack/README.rst b/devstack/README.rst index 5d5f46410..47546ca62 100644 --- a/devstack/README.rst +++ b/devstack/README.rst @@ -25,6 +25,10 @@ Enabling Vitrage in DevStack notification_topics = notifications,vitrage_notifications notification_driver=messagingv2 + [notifications] + versioned_notifications_topics = versioned_notifications,vitrage_notifications + notification_driver = messagingv2 + 4. Add this to add notification from neutron to vitrage (make sure neutron is enabled in devstack) diff --git a/devstack/gate_hook.sh b/devstack/gate_hook.sh index 675dac6b8..45cd29fb8 100644 --- a/devstack/gate_hook.sh +++ b/devstack/gate_hook.sh @@ -38,6 +38,10 @@ DEVSTACK_LOCAL_CONFIG+="$(cat <