Only restart haproxy services when enable_load_balancer is defined
If we upgrade a cloud that was configured with external load balancer the process will fail during convergence step because it will try to restart haproxy which is not configured when an external load balancer is configured. Closes-Bug: #1636527 Change-Id: I6f6caec3e5c96e77437c1c83e625f39649a66c48
This commit is contained in:
parent
0b9c8fb56a
commit
cf4166ff5d
@ -44,7 +44,7 @@ class tripleo::profile::pacemaker::haproxy (
|
||||
$pacemaker_master = false
|
||||
}
|
||||
|
||||
if $step >= 1 and $pacemaker_master and hiera('stack_action') == 'UPDATE' {
|
||||
if $step >= 1 and $pacemaker_master and hiera('stack_action') == 'UPDATE' and $enable_load_balancer {
|
||||
tripleo::pacemaker::resource_restart_flag { 'haproxy-clone':
|
||||
subscribe => Concat['/etc/haproxy/haproxy.cfg'],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user