Add a reload of keepalived

When SSL is enabled on the undercloud, during an upgrade, os-net-config
might restart network interfaces. This will cause keepalived to not
be able to keep the VIPs it controls up. The reload of the keepalived
gives it a chance to add the VIPs back where they should be.

Change-Id: Id4b1dbdd976bce0a157a16e1bd47033dbfca8675
Closes-Bug: #1570824
(cherry picked from commit e9119eace1)
This commit is contained in:
Brad P. Crochet
2016-04-13 16:23:05 -04:00
parent 31bfc28311
commit d3d844dc18

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -eux
if systemctl is-enabled keepalived; then
# This needs to be run after os-net-config, since os-net-config potentially
# can restart network interfaces, which would affects VIPs controlled by
# keepalived. So don't just move this up without knowing the consequences.
# You have been warned.
systemctl reload keepalived
fi