From fb766c1f8359b1775e68a041ec7d8d4144499ff4 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Tue, 16 Jun 2020 17:38:00 +0000 Subject: [PATCH] Configure privsep in SR-IOV agent With the introduction in [1] of commands executed under a privsep context, privsep should be initialized first. [1]https://review.opendev.org/#/q/6f7b88d0808bee36b9d089ce8d3c0f98ae0b2dea Change-Id: Ifdb8ad910ff6ffb31668ebb1e97d885ee924b470 Closes-Bug: #1883757 (cherry picked from commit 954f2f28da5fd1248a9dbc4dcc2d7311bcbffb51) --- neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py b/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py index 5537d69baf0..e0fd5cd7d89 100644 --- a/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py +++ b/neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py @@ -43,6 +43,7 @@ from neutron.api.rpc.handlers import securitygroups_rpc as sg_rpc from neutron.common import config as common_config from neutron.common import profiler as setup_profiler from neutron.common import utils as n_utils +from neutron.conf.agent import common as agent_config from neutron.plugins.ml2.drivers.mech_sriov.agent.common import config from neutron.plugins.ml2.drivers.mech_sriov.agent.common \ import exceptions as exc @@ -546,6 +547,7 @@ def main(): common_config.init(sys.argv[1:]) common_config.setup_logging() + agent_config.setup_privsep() try: config_parser = SriovNicAgentConfigParser() config_parser.parse()