If os-collect-config/config.json is updated before an upgrade/update,
then the os-net-config run will automatically erase the keepalived
managed ips.
This is a hackish way to ensure that keepalived is restarted during the
next phase in order to have the ip recreated.
It basically adds a comment line to the keepalived.conf file (making it
different than the puppet one) if it's there. This will force a puppet
restart of the keepalive service puting the ips back on the undercloud.
Reviewed: https:/ /review. openstack. org/396731 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=3e586d0fb22 cfd9c08e8f4663a b9be140af83d7b
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 3e586d0fb22cfd9 c08e8f4663ab9be 140af83d7b
Author: Sofer Athlan-Guyot <email address hidden>
Date: Tue Nov 8 16:44:26 2016 +0100
Ensure keepalived is restarted when necessary.
If os-collect- config/ config. json is updated before an upgrade/update,
then the os-net-config run will automatically erase the keepalived
managed ips.
This is a hackish way to ensure that keepalived is restarted during the
next phase in order to have the ip recreated.
It basically adds a comment line to the keepalived.conf file (making it
different than the puppet one) if it's there. This will force a puppet
restart of the keepalive service puting the ips back on the undercloud.
Change-Id: I56b706ff44ba31 aa87a63f8709408 31ce02a6e77 132176df7ef3f43 5039cc20cb)
Closes-Bug: #1640213
Related-Bug: #1638029
(cherry picked from commit b9dcee028795bb1