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 commitbe43141a5f
) (cherry picked from commit04f4d9d406
) (cherry picked from commit41e603b0c3
) (cherry picked from commit6badfcd650
)
This commit is contained in:
parent
a483d90e66
commit
64124de8c2
@ -309,6 +309,10 @@ def list_ovs_opts():
|
|||||||
|
|
||||||
def list_sriov_agent_opts():
|
def list_sriov_agent_opts():
|
||||||
return [
|
return [
|
||||||
|
('DEFAULT',
|
||||||
|
itertools.chain(
|
||||||
|
neutron.conf.service.RPC_EXTRA_OPTS)
|
||||||
|
),
|
||||||
('sriov_nic',
|
('sriov_nic',
|
||||||
neutron.conf.plugins.ml2.drivers.mech_sriov.agent_common.
|
neutron.conf.plugins.ml2.drivers.mech_sriov.agent_common.
|
||||||
sriov_nic_opts),
|
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 profiler as setup_profiler
|
||||||
from neutron.common import utils as n_utils
|
from neutron.common import utils as n_utils
|
||||||
from neutron.conf.agent import common as agent_config
|
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 config
|
||||||
from neutron.plugins.ml2.drivers.mech_sriov.agent.common \
|
from neutron.plugins.ml2.drivers.mech_sriov.agent.common \
|
||||||
import exceptions as exc
|
import exceptions as exc
|
||||||
@ -549,6 +550,8 @@ def main():
|
|||||||
|
|
||||||
common_config.setup_logging()
|
common_config.setup_logging()
|
||||||
agent_config.setup_privsep()
|
agent_config.setup_privsep()
|
||||||
|
service_conf.register_service_opts(service_conf.RPC_EXTRA_OPTS, cfg.CONF)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config_parser = SriovNicAgentConfigParser()
|
config_parser = SriovNicAgentConfigParser()
|
||||||
config_parser.parse()
|
config_parser.parse()
|
||||||
|
@ -21,4 +21,7 @@ from neutron.tests import base
|
|||||||
class OptsTestCase(base.BaseTestCase):
|
class OptsTestCase(base.BaseTestCase):
|
||||||
|
|
||||||
def test_list_sriov_agent_opts(self):
|
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…
Reference in New Issue
Block a user