yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #84943
[Bug 1912359] [NEW] [OVN] [RFE] Add support for WSGI mod
Public bug reported:
Currently the OVN driver initialization does not work with uWSGI because
the initialization is different than eventlet and the
post_fork_initialization() method [0] does not get called in the
process.
The post_fork_initialization() method is the one responsible for a few
things:
* Starting the OVN database connections
* Starting the maintenance task
* Overwriting the agent and availability zone methods for OVN use [1]
* Running the database synchronization script (in log or repair mode) [2]
These steps would need to be factored out to adhere to the uWSGI
initialization process.
[0]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L181-L186
[1]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L284-L292
[2]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L300-L315
How to reproduce:
Deploy Devstack with OVN
(https://docs.openstack.org/neutron/latest/contributor/testing/ovn_devstack.html)
with NEUTRON_DEPLOY_MOD_WSGI=True set in local.conf.
** Affects: neutron
Importance: Undecided
Status: New
** Tags: ovn rfe
** Tags added: ovn rfe
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1912359
Title:
[OVN] [RFE] Add support for WSGI mod
Status in neutron:
New
Bug description:
Currently the OVN driver initialization does not work with uWSGI
because the initialization is different than eventlet and the
post_fork_initialization() method [0] does not get called in the
process.
The post_fork_initialization() method is the one responsible for a few
things:
* Starting the OVN database connections
* Starting the maintenance task
* Overwriting the agent and availability zone methods for OVN use [1]
* Running the database synchronization script (in log or repair mode) [2]
These steps would need to be factored out to adhere to the uWSGI
initialization process.
[0]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L181-L186
[1]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L284-L292
[2]
https://github.com/openstack/neutron/blob/19de0598227e2156b26f6d5eca874eaba09106a7/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L300-L315
How to reproduce:
Deploy Devstack with OVN
(https://docs.openstack.org/neutron/latest/contributor/testing/ovn_devstack.html)
with NEUTRON_DEPLOY_MOD_WSGI=True set in local.conf.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1912359/+subscriptions
Follow ups