Bug #2019314 “On shutdown, linuxbridge agent queue on rabbitmq i…” : Bugs : neutron

This bug mimics https://bugs.launchpad.net/oslo.messaging/+bug/1606213.

In that bug, the path to oslo_messaging was added, but the close method was not called in the linuxbridge agent

Example patch:

— /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py.bak 2023-05-12 11:45:42.089121033 +0000
+++ /usr/lib/python3/dist-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py 2023-05-12 11:46:08.201490083 +0000
@@ -116,6 +116,7 @@
         if graceful and self.quitting_rpc_timeout:
             self.set_rpc_timeout(self.quitting_rpc_timeout)
         super(CommonAgentLoop, self).stop(graceful)
+ self.connection.close()

     def reset(self):
         common_config.setup_logging()

Read more here: Source link