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.
Reviewed: https:/ /review. openstack. org/374837 /git.openstack. org/cgit/ openstack/ charm-glance/ commit/ ?id=5e370928005 055054d61a3e3c7 b1510338ce0938
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5e3709280050550 54d61a3e3c7b151 0338ce0938
Author: Alex Kavanagh <email address hidden>
Date: Thu Sep 22 13:57:15 2016 +0000
Fix to ensure that glance responds to cluster- relation- departed
When a glance unit is removed a 'cluster- relation- departed' is sent to relation- departed' to the function that handles relation- changed' so that the haproxy.cfg file gets updated.
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-
'cluster-
Change-Id: I70f985614a2c66 344360ab744ec69 96f9604a9c3
Closes-Bug: 1592273