neutron/neutron/tests
John Schwarz 23c7c8a08e 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
(cherry picked from commit 977d254cc6)
2017-03-29 02:11:04 +00:00
..
common Throttle SIGHUPs to keepalived 2017-03-29 02:11:04 +00:00
contrib functional: Stop compiling OVS from source 2017-03-10 20:10:48 +00:00
etc Remove FWaaS policy.json entries 2016-09-06 21:30:41 +00:00
fullstack Throttle SIGHUPs to keepalived 2017-03-29 02:11:04 +00:00
functional Merge "Set OVS inactivity_probe to vsctl_timeout when adding manager" into stable/ocata 2017-03-18 22:18:40 +00:00
retargetable Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
tempest Merge "tempest: Skip QoS test until fixed" into stable/ocata 2017-03-27 23:22:05 +00:00
unit Throttle SIGHUPs to keepalived 2017-03-29 02:11:04 +00:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Merge "Use plugin directory fixture" 2017-01-28 06:17:10 +00:00
fake_notifier.py
post_mortem_debug.py
tools.py Display deprecation warning in test only once 2017-01-29 09:44:03 +00:00