ntpmon-telegraf.service crashing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
charm: telegraf revision 34
cloud: bionic-stein
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: Stopped NTP statistics monitor.
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: Started NTP statistics monitor.
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: Traceback (most recent call last):
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/opt/ntpmon/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: main()
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/opt/ntpmon/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: checkobjs = ntpchecks(checks, debug=False)
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/opt/ntpmon/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: (output, runtime) = execute('peers', debug=debug)
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/opt/ntpmon/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: universal_
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/usr/lib/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: **kwargs).stdout
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/usr/lib/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: with Popen(*popenargs, **kwargs) as process:
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/usr/lib/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: restore_signals, start_new_session)
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/usr/lib/
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: raise child_exception
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: FileNotFoundError: [Errno 2] No such file or directory: 'ntpq': 'ntpq'
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-
Did some digging into telegrafs from llama-charmers and telegraf-charmers, and it looks like this telegraf 34 revision belongs to the unsupported telegraf-charmers version. I'd recommend switching to the latest version of the charm in the llama-charmers directory.
However, looking into the new, supported versions of the telegraf charm, the ntpmon layer has since changed and no longer setups up the ntpmon service (thus no ntpmon telegraf coverage) without the ntpmon options install-dir and service-name configured in the Telegraf layer.yaml file. I will create a bug for that issue and comment it here.