Add a juju action to gather diagnostics
Bug #1802833 reported by
Paul Gear
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP Charm |
Fix Released
|
Medium
|
Paul Gear |
Bug Description
This is needed for geo-restricted environments where login is prohibited. The output of the action should run (at least) the following:
test -x /usr/sbin/ntpq && ntpq -npc readvar; \
test -x /usr/bin/chronyc && chronyc -n sources && chronyc -n tracking; \
grep . /sys/devices/
Related branches
~paulgear/ntp-charm/+git/ntp-charm:master
- Stuart Bishop (community): Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 442 lines (+357/-3)6 files modifiedMakefile (+3/-3)
actions.yaml (+9/-0)
actions/diagnostics (+1/-0)
actions/diagnostics.py (+130/-0)
lib/ntp_implementation.py (+20/-0)
unit_tests/test_action_diagnostics.py (+194/-0)
Changed in ntp-charm: | |
assignee: | nobody → Paul Gear (paulgear) |
importance: | Undecided → Medium |
status: | New → Fix Committed |
To post a comment you must log in.
cs:ntp-32 promoted to stable channel after successful CI runs on all LTS releases.