Merge lp:~chad.smith/charms/precise/openstack-dashboard/ha-support-with-health into lp:~openstack-charmers/charms/precise/openstack-dashboard/ha-support
Status: | Merged |
---|---|
Merged at revision: | 26 |
Proposed branch: | lp:~chad.smith/charms/precise/openstack-dashboard/ha-support-with-health |
Merge into: | lp:~openstack-charmers/charms/precise/openstack-dashboard/ha-support |
Diff against target: |
149 lines (+95/-0) (has conflicts) 8 files modified
hooks/horizon-relations (+8/-0) hooks/lib/openstack-common (+37/-0) revision (+4/-0) scripts/add_to_cluster (+2/-0) scripts/health_checks.d/service_ports_live (+13/-0) scripts/health_checks.d/service_running (+13/-0) scripts/health_checks.d/service_url_checks (+16/-0) scripts/remove_from_cluster (+2/-0) Text conflict in revision |
To merge this branch: | bzr merge lp:~chad.smith/charms/precise/openstack-dashboard/ha-support-with-health |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Pending | ||
Review via email: mp+150845@code.launchpad.net |
Description of the change
This branch adds add_to_cluster, remove_from_cluster and health_scripts.d to the openstack-dashboard charm. Since this charms uses a bash openstack-common lib of functions, implementation is slightly different from the python-based openstack_common.py changes. This change set is in the same vein as the keystone-ha python-based changs to openstack_common.py https:/
Charms can provide as many custom run-parts health scripts (returning success/fail exit codes) as they desire and those scripts can be provided any necessary environment variables from a config_changed hook. In this example, I placed the standard service_running and service_ports_live plus a silly additional script to check that a wget against horizon's $web_root returns something viable.
Hopefully this gives us a minimum acceptable template for openstack HA-related charms. Landscape-client will depend on these script locations to successfully perform openstack rolling upgrades.