Add openvswitch-common to neutron-api/consolidated rocks#139
Add openvswitch-common to neutron-api/consolidated rocks#139hemanthnakkina merged 1 commit intocanonical:mainfrom
Conversation
neutron uses python libraries ovs and ovsdbapp to communicate with ovs/ovn https://opendev.org/openstack/neutron/src/branch/master/requirements.txt#L46 What exactly the issue you are facing? We may not require openvswitch-common |
I'm getting this error in the neutron pebble logs: The traceback comes from the pre_fork_initialize method which calls this method. It looks like that was added 4 years ago but maybe it just wasn't exercised? I think it may only be used under mod_wsgi. |
Ok I see it now. Prior to Resolute, we use neutron-server which is a meta package that contains openvswitch-common as well. As part of the split, only neutron-api package is installed instead of neutron-server and so other necessary packages like openvswitch-common should be installed as part of rock. |
|
@MylesJP Can you push the signed commit |
e513d1e to
0c3d286
Compare
The neutron-api package now runs under apache+mod_wsgi instead of as a standalone neutron-server process. When mod_wsgi imports the WSGI application, neutron.server.api publishes a PROCESS/BEFORE_SPAWN event on every worker fork, which triggers OVNMechanismDriver.pre_fork_initialize. That callback shells out to ovsdb-client which was missing previously. Signed-off-by: Myles Penner <myles.penner@canonical.com>
0c3d286 to
7be2538
Compare
The neutron-api package now runs under apache+mod_wsgi instead of as a standalone neutron-server process. When mod_wsgi imports the WSGI application, neutron.server.api publishes a PROCESS/BEFORE_SPAWN event on every worker fork, which triggers OVNMechanismDriver.pre_fork_initialize. That callback shells out to ovsdb-client which was missing previously.