commit f43891bf866b65ceef0e51633afbbf57ee2a6be8
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.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/861649 /opendev. org/openstack/ neutron/ commit/ f43891bf866b65c eef0e51633afbbf 57ee2a6be8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f43891bf866b65c eef0e51633afbbf 57ee2a6be8
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
Change-Id: If9d827228002de