Do not mask services on db departed
Currently the charm masks all services on db departed. The consequence of which is that when a db relation is re-joined these services are not started back up. In addition, it stops all services, including memcached and haproxy, which also do not get restarted on a db re-join. This change selectively stops but does not mask services that pertain directly to nova. So that on db joined the correct services get started. Change-Id: I81f59c97b33edd5c3e67c379cfdee8f26509075a
This commit is contained in:
parent
67dfc8d882
commit
6e3aacb08f
|
@ -1061,8 +1061,8 @@ def db_departed():
|
|||
for r_id in hookenv.relation_ids('cluster'):
|
||||
hookenv.relation_set(relation_id=r_id, dbsync_state='incomplete')
|
||||
if not ch_utils.is_unit_paused_set():
|
||||
for svc in ncc_utils.services():
|
||||
ch_host.service_pause(svc)
|
||||
for svc in ncc_utils.restart_map()[ncc_utils.NOVA_CONF]:
|
||||
ch_host.service_stop(svc)
|
||||
else:
|
||||
hookenv.log('Unit is in paused state, not issuing stop/pause to all '
|
||||
'services')
|
||||
|
|
Loading…
Reference in New Issue