neutron/neutron/tests/common
John Schwarz 977d254cc6 Throttle SIGHUPs to keepalived
Multiple SIGHUPs in quick succession might cause the master keepalived
to forfeit its mastership (which will cause keepalived to remove IPs of
its external devices, severing connectivity). This can happen when, for
example, associating or disassociating multiple floatingips.

The patch makes the agent throttle SIGHUP sent to keepalived: the very first
SIGHUP is always sent; as for subsequent signals, they are delayed till
agent threshold is reached. (It's 3 seconds by default.)

As an example, when three consequent router updates trigger keepalived
respawn then:
* the very first signal is sent as usual;
* the second signal is deferred and sent in up to 3 seconds since the
  first signal;
* the third signal is ignored, though the change that triggered it will
  be correctly applied by the second signal handler when it is triggered
  after threshold delay.

If the last time a spawn request occurred is older than current-time
minus threshold then there is no delay.

Co-Authored-By: Jakub Libosvar <libosvar@redhat.com>
Co-Authored-By: Cedric Brandily <zzelle@gmail.com>
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>

Closes-Bug: 1647432
Change-Id: I2955e0de835458a2eea4dd088addf33b656f8670
2017-03-28 03:37:09 +00:00
..
agents Throttle SIGHUPs to keepalived 2017-03-28 03:37:09 +00:00
exclusive_resources ovsdb: don't erase existing ovsdb managers 2016-11-23 07:21:08 +00:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
config_fixtures.py Use ConfigParser instead of SafeConfigParser 2016-09-11 18:22:16 +08:00
conn_testers.py Change in-tree code to use moved get_ip_version() 2017-03-08 11:35:29 -05:00
helpers.py Spin off context module 2017-03-06 16:25:29 +00:00
l3_test_common.py Add PD support in HA router 2017-03-15 04:31:09 +00:00
machine_fixtures.py Merge "fullstack: test for IPv6 north-south traffic" 2016-11-09 12:02:45 +00:00
net_helpers.py Merge "Switch RootHelperProcess from select.poll to select.select" 2017-03-21 08:13:32 +00:00