Merge lp://staging/~thedac/charm-helpers/active-stopped-check into lp://staging/charm-helpers

Proposed by David Ames
Status: Merged
Merged at revision: 572
Proposed branch: lp://staging/~thedac/charm-helpers/active-stopped-check
Merge into: lp://staging/charm-helpers
Diff against target: 51 lines (+10/-1)
2 files modified
charmhelpers/core/host.py (+4/-0)
tests/core/test_host.py (+6/-1)
To merge this branch: bzr merge lp://staging/~thedac/charm-helpers/active-stopped-check
Reviewer Review Type Date Requested Status
Alex Kavanagh (community) Approve
charmers Pending
Review via email: mp+294665@code.staging.launchpad.net

Description of the change

service_running is returning false positives. Actively check for stopped messages and return False.

Serivces are actually down:
# initctl list |grep cinder-
cinder-volume stop/waiting
cinder-api stop/waiting
cinder-scheduler stop/waiting

But fall through systemv check shows them up:
# service --status-all 2>&1|grep cinder-
 [ + ] cinder-api
 [ + ] cinder-scheduler
 [ + ] cinder-volume

To post a comment you must log in.
573. By David Ames

Enhance the comment

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Looks good to me.

review: Approve
574. By David Ames

Make service_running unit tests more robust

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Reviewed added tests. Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches