Merge lp://staging/~gnuoy/charms/trusty/nova-cloud-controller/disable-services-until-db-ready into lp://staging/~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next
Proposed by
Liam Young
Status: | Merged |
---|---|
Merged at revision: | 100 |
Proposed branch: | lp://staging/~gnuoy/charms/trusty/nova-cloud-controller/disable-services-until-db-ready |
Merge into: | lp://staging/~openstack-charmers-archive/charms/trusty/nova-cloud-controller/next |
Diff against target: |
337 lines (+175/-7) 6 files modified
charm-helpers-hooks.yaml (+1/-0) hooks/charmhelpers/contrib/peerstorage/__init__.py (+83/-0) hooks/nova_cc_hooks.py (+34/-3) hooks/nova_cc_utils.py (+34/-2) unit_tests/test_nova_cc_hooks.py (+5/-0) unit_tests/test_nova_cc_utils.py (+18/-2) |
To merge this branch: | bzr merge lp://staging/~gnuoy/charms/trusty/nova-cloud-controller/disable-services-until-db-ready |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Liam Young (community) | Needs Resubmitting | ||
James Page | Needs Fixing | ||
Review via email:
|
Description of the change
This mp shuts down and disables all related services until the db sync script has run. If the unit is not the leader it receives notification that the sync is complete via the peer relation.
There is also a small fix to the vip_group logic which was causing grp_nova_vips to not be set if only one vip is specified.
To post a comment you must log in.
Hi Liam
This looks like a good start, but I don't think your proposed changes play well with the restart_on_change decorator; if the configuration files change during hook execution, restart_on_change will restart all services post any stop/disablement that you have done in the hook.
The disable/stop needs to run after restart on change - maybe the service_guard decorator is a good place todo this?