Config privsep in the macvtap agent

The commands executed under a privsep context,
privsep should be initialized first.

Change-Id: I82d67847c71d276184026e5af5787235228035c0
changes/27/738627/1
Minmin Ren 3 years ago
parent 9867baa86f
commit 4c04e60d45

@ -28,6 +28,7 @@ from oslo_service import service
from neutron.agent.linux import ip_lib
from neutron.api.rpc.handlers import securitygroups_rpc as sg_rpc
from neutron.common import config as common_config
from neutron.conf.agent import common as agent_config
from neutron.conf.plugins.ml2.drivers import macvtap as config
from neutron.plugins.ml2.drivers.agent import _agent_manager_base as amb
from neutron.plugins.ml2.drivers.agent import _common_agent as ca
@ -209,6 +210,7 @@ def main():
common_config.init(sys.argv[1:])
common_config.setup_logging()
agent_config.setup_privsep()
validate_firewall_driver()
interface_mappings = parse_interface_mappings()

Loading…
Cancel
Save