ntpmon-telegraf.service crashing

Bug #1883871 reported by Diko Parvanov
6
This bug affects 1 person
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-telegraf.service: Service hold-off time over, scheduling restart.
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-telegraf.service: Scheduled restart job, restart counter is at 37988.
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/ntpmon.py", line 102, in <module>
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/ntpmon.py", line 94, in main
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/process.py", line 99, in ntpchecks
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/process.py", line 55, in execute
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: universal_newlines=True,
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
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/python3.6/subprocess.py", line 423, in run
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/python3.6/subprocess.py", line 729, in __init__
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/python3.6/subprocess.py", line 1364, in _execute_child
Jun 17 09:40:51 BKS4-444-Compute-5 ntpmon.py[623617]: raise child_exception_type(errno_num, err_msg, err_filename)
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-telegraf.service: Main process exited, code=exited, status=1/FAILURE
Jun 17 09:40:51 BKS4-444-Compute-5 systemd[1]: ntpmon-telegraf.service: Failed with result 'exit-code'.

Revision history for this message
Zachary Zehring (zzehring) wrote :

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.

Changed in charm-telegraf:
status: New → Won't Fix
Revision history for this message
Zachary Zehring (zzehring) wrote :

Here's an already created bug for the above: https://bugs.launchpad.net/charm-telegraf/+bug/1874245

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.