service_running breaks when systemd is installed on trusty

Bug #1745351 reported by Gábor Mészáros
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Invalid
Undecided
Unassigned
NTP Charm
Fix Released
High
Unassigned

Bug Description

service_running function tries systemctl is-active when systemd package is installed on the system.
Running trusty with systemd package installed, service_running always evaluate to unknown.

Function should fall-back to system V service status in such case.

Reproduce:
deploy prometheus charm on trusty and relate ntp service to the application.
juju status will report ntp service not running, where as it does.

Tags: cpe-onsite
Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :

already fixed in latest charm helpers.

Changed in charm-helpers:
status: New → Invalid
Changed in ntp-charm:
status: New → Invalid
status: Invalid → New
Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :

NTP charm needs latest charmhelpers.

Revision history for this message
Paul Gear (paulgear) wrote :

Fix merged, pushed to https://jujucharms.com/ntp/25, candidate channel - please test: juju deploy cs:ntp --channel=candidate

Changed in ntp-charm:
status: New → Fix Committed
Paul Gear (paulgear)
Changed in ntp-charm:
importance: Undecided → High
Paul Gear (paulgear)
Changed in ntp-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.