Merge lp:~johnsca/charms/trusty/cloudfoundry/better-basic-reconciler-status into lp:~cf-charmers/charms/trusty/cloudfoundry/trunk
Proposed by
Cory Johns
Status: | Merged |
---|---|
Merged at revision: | 162 |
Proposed branch: | lp:~johnsca/charms/trusty/cloudfoundry/better-basic-reconciler-status |
Merge into: | lp:~cf-charmers/charms/trusty/cloudfoundry/trunk |
Diff against target: |
110 lines (+34/-10) 5 files modified
charmhelpers/core/services/base.py (+2/-0) charmhelpers/core/services/helpers.py (+1/-4) cloudfoundry/health_checks.py (+19/-0) cloudfoundry/jobs.py (+1/-1) reconciler/app.py (+11/-5) |
To merge this branch: | bzr merge lp:~johnsca/charms/trusty/cloudfoundry/better-basic-reconciler-status |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benjamin Saller (community) | Approve | ||
Whit Morriss (community) | Approve | ||
Review via email: mp+242372@code.launchpad.net |
Description of the change
Since the monit status is so unreliable, switch the basic health check to use the self-reported Juju status until we have something that more deeply introspects.
To post a comment you must log in.
Basically, relies on the extended hookenv. juju_status( ) report (which accounts for data_ready), if available, and the basic Juju status if not.
Should give us a much more accurate approximation of when the system is up, although there may still be a slight delay (due to, e.g., `monit restart all` taking some time).