service_running breaks when systemd is installed on trusty

Bug #1745351 reported by Gábor Mészáros on 2018-01-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
NTP Charm

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.

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

already fixed in latest charm helpers.

Changed in charm-helpers:
status: New → Invalid
Changed in ntp-charm:
status: New → Invalid
status: Invalid → New

NTP charm needs latest charmhelpers.

Paul Gear (paulgear) wrote :

Fix merged, pushed to, candidate channel - please test: juju deploy cs:ntp --channel=candidate

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

Other bug subscribers