summaryrefslogtreecommitdiff
path: root/neutron/notifiers
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2022-01-20 15:40:05 +0100
committerSlawek Kaplonski <skaplons@redhat.com>2022-01-20 15:40:05 +0100
commitac718804de7cb2766420ed1eff4e4bc10190fb1c (patch)
tree62bc4082772f24af9f0c6a3378d7e6017a4e1df9 /neutron/notifiers
parent9672df6461e641d1eddbefc6df5f5353b432624a (diff)
downloadneutron-ac718804de7cb2766420ed1eff4e4bc10190fb1c.tar.gz
Add extra logs around enabling/disabling nova notifier code
I should helps with debugging why the nova notifier is at some point disabled for one neutron worker thus notifications aren't send to nova from that worker. Related-Bug: #1958363 Change-Id: Ifd88d5bc7515b5f29240bd12be1d3257b308fd67
Diffstat (limited to 'neutron/notifiers')
-rw-r--r--neutron/notifiers/nova.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py
index 5165cb4ac0..0f45e9837a 100644
--- a/neutron/notifiers/nova.py
+++ b/neutron/notifiers/nova.py
@@ -73,10 +73,14 @@ class Notifier(object):
@contextlib.contextmanager
def context_enabled(self, enabled):
stored_enabled = self._enabled
+ LOG.debug("nova notifier stored_enabled: %s; enabled: %s",
+ stored_enabled, enabled)
try:
self._enabled = enabled
yield
finally:
+ LOG.debug("Restoring value: %s for the _enabled flag.",
+ stored_enabled)
self._enabled = stored_enabled
def _get_nova_client(self):