Enable polling minimization
In some cases the OVS agent might end up wiring a port for a VM several seconds after the VM has booted. As a result, there is a risk that the VM won't receive an IP address from DHCP in time. This patch changes the default value for agent.minimize_polling to True. This change should reduce the time needed for configuring an interface on br-int consistently. Change-Id: I009f606fd34a132376f1d50f8ccda9d35d064bfa Related-bug: 1224001
This commit is contained in:
parent
14950e492a
commit
70096ae4e7
@ -88,7 +88,7 @@
|
||||
# polling_interval = 2
|
||||
|
||||
# Minimize polling by monitoring ovsdb for interface changes
|
||||
# minimize_polling = False
|
||||
# minimize_polling = True
|
||||
|
||||
# When minimize_polling = True, the number of seconds to wait before
|
||||
# respawning the ovsdb monitor after losing communication with it
|
||||
|
@ -63,7 +63,7 @@ agent_opts = [
|
||||
help=_("The number of seconds the agent will wait between "
|
||||
"polling for local device changes.")),
|
||||
cfg.BoolOpt('minimize_polling',
|
||||
default=False,
|
||||
default=True,
|
||||
help=_("Minimize polling by monitoring ovsdb for interface "
|
||||
"changes.")),
|
||||
cfg.IntOpt('ovsdb_monitor_respawn_interval',
|
||||
|
@ -588,7 +588,7 @@ class TestOvsNeutronAgent(base.BaseTestCase):
|
||||
'neutron.agent.linux.polling.get_polling_manager') as mock_get_pm:
|
||||
with mock.patch.object(self.agent, 'rpc_loop') as mock_loop:
|
||||
self.agent.daemon_loop()
|
||||
mock_get_pm.assert_called_with(False, 'sudo',
|
||||
mock_get_pm.assert_called_with(True, 'sudo',
|
||||
constants.DEFAULT_OVSDBMON_RESPAWN)
|
||||
mock_loop.called_once()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user