]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Kill the vrrp orphan process when (re)spawn keepalived
authorHong Hui Xiao <xiaohhui@cn.ibm.com>
Wed, 4 Nov 2015 06:44:43 +0000 (01:44 -0500)
committerHong Hui Xiao <xiaohhui@cn.ibm.com>
Thu, 17 Dec 2015 14:58:49 +0000 (09:58 -0500)
commit2d1b53bcfa6c4d6fa5bca2ba4da9aaca66245a5b
treec3ece8079d3685144fc04b19028d7c5b0d72b10a
parent681e1ff1af25ad8cc5c4748b5b2467a1766ff392
Kill the vrrp orphan process when (re)spawn keepalived

When keepalived crashed unexpectedly, the vrrp process that
it associates with will be orphan process. This will make
the VIP unable to migrate to the router in the same host.
Also, neutron code is not able to respawn the keepalived
process, because keepalived thinks itself is still running,
according to [1-3]. As a result, neutron will report respawning
keepalived all the time. Restart l3-agent will not help.

This patch will check and delete the orphan vrrp process
if there is any, in the processmonitor of l3 agent.

More details can be found in the bug description and comments.

[1] https://goo.gl/W3GL9I
[2] https://goo.gl/F0Ixfb
[3] https://goo.gl/dUqhTo

Change-Id: Ia1759ed1365b845d404686a8cd25f882cce35caf
Closes-Bug: #1511311
neutron/agent/linux/keepalived.py
neutron/tests/functional/agent/linux/test_keepalived.py