keepalived refuses to start and claims "daemon already started"
when there is already a process with the same PID as found in
either the VRRP or the main process PID file. This happens even
in case when the new process is not keepalived. The situation
can happen when the neutron node is reset and the obsolete PID
files are not cleaned before neutron is started.
This commit adds PID file cleanup before keepalived start.
Conflicts:
neutron/agent/linux/keepalived.py
Closes-Bug: 1561046
Change-Id: Ib6b6f2fe76fe82253f195c9eab6b243d9eb76fa2
(cherry picked from commit e98fabb5836b12bc40a2b64a2668893ea73c2320)
Reviewed: https:/ /review. openstack. org/299138 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=6dea586906e fb1de33c23d5df0 7ffe12ee7d649b
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 6dea586906efb1d e33c23d5df07ffe 12ee7d649b
Author: Hynek Mlnarik <email address hidden>
Date: Wed Mar 23 14:51:59 2016 +0100
Remove obsolete keepalived PID files before start
keepalived refuses to start and claims "daemon already started"
when there is already a process with the same PID as found in
either the VRRP or the main process PID file. This happens even
in case when the new process is not keepalived. The situation
can happen when the neutron node is reset and the obsolete PID
files are not cleaned before neutron is started.
This commit adds PID file cleanup before keepalived start.
Conflicts: agent/linux/ keepalived. py
neutron/
Closes-Bug: 1561046 253f195c9eab6b2 43d9eb76fa2 c40a2b64a266889 3ea73c2320)
Change-Id: Ib6b6f2fe76fe82
(cherry picked from commit e98fabb5836b12b