Alway notify other services, irrespective of whether the current unit is the lead unit

This commit is contained in:
james.page@ubuntu.com 2014-09-23 15:04:15 +01:00
parent aeeef3e3f9
commit f6206b2c19
1 changed files with 2 additions and 5 deletions

View File

@ -294,11 +294,8 @@ def ha_joined():
def ha_changed():
clustered = relation_get('clustered')
if not clustered or clustered in [None, 'None', '']:
log('ha_changed: hacluster subordinate not fully clustered.:'
+ str(clustered))
return
if not is_leader(CLUSTER_RES):
log('ha_changed: hacluster complete but we are not leader.')
log('ha_changed: hacluster subordinate'
' not fully clustered: %s' % clustered)
return
log('Cluster configured, notifying other services and updating '
'keystone endpoint configuration')