Fix to ensure that glance responds to cluster-relation-departed
When a glance unit is removed a 'cluster-relation-departed' is sent to each of the remaining units. This was not being used, but the side-effect was that the hacluster.cfg file was not being updated which left the now deleted unit haproxy.cfg. This change just tags on the hook for 'cluster-relation-departed' to the function that handles 'cluster-relation-changed' so that the haproxy.cfg file gets updated. Change-Id: I70f985614a2c66344360ab744ec6996f9604a9c3 Closes-Bug: 1592273
This commit is contained in:
parent
7b77a4c57a
commit
5e37092800
@ -428,6 +428,7 @@ def cluster_joined(relation_id=None):
|
||||
|
||||
|
||||
@hooks.hook('cluster-relation-changed')
|
||||
@hooks.hook('cluster-relation-departed')
|
||||
@restart_on_change(restart_map(), stopstart=True)
|
||||
def cluster_changed():
|
||||
configure_https()
|
||||
|
Loading…
x
Reference in New Issue
Block a user