From 8c5a2577d208ed1cc9dd99c791d007f57f0d4386 Mon Sep 17 00:00:00 2001 From: Alyson Deives Pereira Date: Fri, 16 Dec 2022 16:51:43 -0300 Subject: [PATCH] Change "unable to route event" message log level to debug After ZeroRPC finishes the handle of the call, it will try to reply OK event to the caller. In fanout_cast/cast messages in sysinv-conductor and sysinv-agent, there is no one registered to receive the response, so it is expected to be discarded. Change this log from warning to debug, since it occurs frequently and is misleading log analysis in case of real issues. TEST PLAN: PASS: Verify STX Debian builds properly PASS: Verify STX Debian deploys properly PASS: Verify zerorpc-python package was properly installed PASS: Verify syinv processes runs properly Story: 2010087 Task: 46794 Signed-off-by: Alyson Deives Pereira Change-Id: Ie92671d06c7c8cda4d557c3a9a7859bad457231b --- ...-route-event-message-log-level-to-de.patch | 34 +++++++++++++++++++ .../debian/deb_folder/patches/series | 3 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 python/zerorpc-python/debian/deb_folder/patches/0008-Change-unable-to-route-event-message-log-level-to-de.patch diff --git a/python/zerorpc-python/debian/deb_folder/patches/0008-Change-unable-to-route-event-message-log-level-to-de.patch b/python/zerorpc-python/debian/deb_folder/patches/0008-Change-unable-to-route-event-message-log-level-to-de.patch new file mode 100644 index 000000000..88dc240ab --- /dev/null +++ b/python/zerorpc-python/debian/deb_folder/patches/0008-Change-unable-to-route-event-message-log-level-to-de.patch @@ -0,0 +1,34 @@ +From 003b73552d280d68d42bef21d82fab66157fdf0a Mon Sep 17 00:00:00 2001 +From: Alyson Deives Pereira +Date: Fri, 16 Dec 2022 16:40:00 -0300 +Subject: [PATCH] Change "unable to route event" message log level to debug + +After ZeroRPC finishes the handle of the call, it will try to reply OK +event to the caller. In fanout_cast/cast messages in sysinv-conductor +and sysinv-agent, there is no one registered to receive the response, +so it is discarded. + +Change this log from warning to debug, since it occurs frequently and +is misleading log analysis in case of real issues. + +Signed-off-by: Alyson Deives Pereira +--- + zerorpc/channel.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/zerorpc/channel.py b/zerorpc/channel.py +index df77bc0..7ef1bb9 100644 +--- a/zerorpc/channel.py ++++ b/zerorpc/channel.py +@@ -86,7 +86,7 @@ class ChannelMultiplexer(ChannelBase): + queue = self._broadcast_queue + + if queue is None: +- logger.warning('zerorpc.ChannelMultiplexer,' ++ logger.debug('zerorpc.ChannelMultiplexer,' + ' unable to route event: {0}'.format( + event.__str__(ignore_args=True))) + else: +-- +2.25.1 + diff --git a/python/zerorpc-python/debian/deb_folder/patches/series b/python/zerorpc-python/debian/deb_folder/patches/series index 2ab7e74b3..d15307085 100644 --- a/python/zerorpc-python/debian/deb_folder/patches/series +++ b/python/zerorpc-python/debian/deb_folder/patches/series @@ -4,4 +4,5 @@ 0004-Implement-wait_and_ignore-to-emulate-gevent-join-beh.patch 0005-Fix-kwargs-when-internal-opts-are-present.patch 0006-Refactor-the-use-of-triggers-in-tests.patch -0007-Add-IPV6-support.patch \ No newline at end of file +0007-Add-IPV6-support.patch +0008-Change-unable-to-route-event-message-log-level-to-de.patch \ No newline at end of file