Provide the rpc_response_max_timeout parameter to sriov-agent

The rpc_response_max_timeout parameter is used in comminucation over
messaging queue, thus should be available for sriov-agent which
communicate with neutron-server over messaging queue.

Change-Id: Ie6ae31e40488fd8f3d43e83b25e536a7dd9d938c
Closes-Bug: #1930996
(cherry picked from commit be43141a5f)
(cherry picked from commit 04f4d9d406)
(cherry picked from commit 41e603b0c3)
changes/21/796221/1
Takashi Kajinami 1 year ago
parent d10ee544b2
commit 6badfcd650
  1. 4
      neutron/opts.py
  2. 3
      neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py
  3. 5
      neutron/tests/unit/test_opts.py

@ -308,6 +308,10 @@ def list_ovs_opts():
def list_sriov_agent_opts():
return [
('DEFAULT',
itertools.chain(
neutron.conf.service.RPC_EXTRA_OPTS)
),
('sriov_nic',
neutron.conf.plugins.ml2.drivers.mech_sriov.agent_common.
sriov_nic_opts),

@ -45,6 +45,7 @@ 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.conf import service as service_conf
from neutron.plugins.ml2.drivers.mech_sriov.agent.common import config
from neutron.plugins.ml2.drivers.mech_sriov.agent.common \
import exceptions as exc
@ -549,6 +550,8 @@ def main():
common_config.setup_logging()
agent_config.setup_privsep()
service_conf.register_service_opts(service_conf.RPC_EXTRA_OPTS, cfg.CONF)
try:
config_parser = SriovNicAgentConfigParser()
config_parser.parse()

@ -21,4 +21,7 @@ from neutron.tests import base
class OptsTestCase(base.BaseTestCase):
def test_list_sriov_agent_opts(self):
self.assertEqual('sriov_nic', opts.list_sriov_agent_opts()[0][0])
sriov_agent_opts = opts.list_sriov_agent_opts()
self.assertEqual('DEFAULT', sriov_agent_opts[0][0])
self.assertEqual('sriov_nic', sriov_agent_opts[1][0])
self.assertEqual('agent', sriov_agent_opts[2][0])

Loading…
Cancel
Save