commit 560ea25085720c5890e34ddf8cd9f3320fd9d583
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 5 13:22:29 2022 +0200
[OVN] Allow to execute ``MetadataProxyHandler`` in a local thread
If configuration option "metadata_workers=0", the OVN metadata agent
will try to spawn the ``MetadataProxyHandler`` instance inside a local
thread, instead of creating a new process. In this case, the method
``MetadataProxyHandler.post_fork_initialize`` is never called and the
SB IDL is never created.
This patch passes the OVN metadata agent SB IDL instance to the proxy
handler instance. This also reduces the number of OVN database active
connections.
Closes-Bug: #1993181
Change-Id: If9d827228002de7e3a55be660da266b60b0dfb79
(cherry picked from commit f43891bf866b65ceef0e51633afbbf57ee2a6be8)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/861735 /opendev. org/openstack/ neutron/ commit/ 560ea25085720c5 890e34ddf8cd9f3 320fd9d583
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 560ea25085720c5 890e34ddf8cd9f3 320fd9d583
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Wed Oct 5 13:22:29 2022 +0200
[OVN] Allow to execute ``MetadataProxy Handler` ` in a local thread
If configuration option "metadata_ workers= 0", the OVN metadata agent Handler` ` instance inside a local roxyHandler. post_fork_ initialize` ` is never called and the
will try to spawn the ``MetadataProxy
thread, instead of creating a new process. In this case, the method
``MetadataP
SB IDL is never created.
This patch passes the OVN metadata agent SB IDL instance to the proxy
handler instance. This also reduces the number of OVN database active
connections.
Closes-Bug: #1993181 7e3a55be660da26 6b60b0dfb79 eef0e51633afbbf 57ee2a6be8)
Change-Id: If9d827228002de
(cherry picked from commit f43891bf866b65c