StarlingX system monitoring and repoting tools
Go to file
Cole Walker 79cd2ee2b0 Correct logic for checking ptp4l source lock
An update to the check_ptp_regular() function resulted in a case where
the ptp collectd plugin could crash by hitting a KeyError.

This fix prevents this by checking that the key is present before trying
to read the GNSS/SMA status. If the key is not present then we know that
GNSS/SMA is not configured for that NIC and we can skip the check.

Additional improvement: Throttle logs related to UTC offset checking.
There is no need to print these logs every cycle as the state is not
expected to change frequently.

Test plan:
Pass: Verify collectd plugin startup and operation
Pass: Verify ptp source lock alarm is raised when ptp master is lost
Pass: Verify UTC logs are throttled

Closes-Bug: 2070071

Change-Id: I60eb1602671b388b54ac5938e4a306e4321742e7
Signed-off-by: Cole Walker <cole.walker@windriver.com>
2024-09-10 11:35:14 -04:00
collectd-extensions Correct logic for checking ptp4l source lock 2024-09-10 11:35:14 -04:00
kube-cpusets Remove CentOS/OpenSUSE build support 2024-04-26 14:14:49 -04:00
kube-memory Remove CentOS/OpenSUSE build support 2024-04-26 14:14:49 -04:00
monitor-tools Remove CentOS/OpenSUSE build support 2024-04-26 14:14:49 -04:00
vm-topology Remove CentOS/OpenSUSE build support 2024-04-26 14:14:49 -04:00
.gitignore Remove python2 jobs from zuul for this repo 2023-04-28 18:24:13 +00:00
.gitreview Add a .gitreview file to the new repo 2019-09-09 09:35:13 -05:00
.zuul.yaml Merge "Fix github mirroring for this repo" 2023-05-01 20:51:03 +00:00
CONTRIBUTING.rst Adding zuul jobs for new repo 2019-09-09 14:37:23 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:34:25 -04:00
debian_iso_image.inc Debian: monitoring: update debian_iso_image.inc 2022-11-22 10:26:59 +08:00
debian_pkg_dirs Add debian_pkg_dirs for stx/monitoring 2022-04-05 11:29:17 -03:00
github_sync.trigger Trigger upload job to upload repo to GitHub 2020-02-07 10:13:03 -05:00
HACKING.rst Adding zuul jobs for new repo 2019-09-09 14:37:23 -05:00
requirements.txt Adding zuul jobs for new repo 2019-09-09 14:37:23 -05:00
test-requirements.txt Fix zuul errors due to changes in dependencies 2021-04-26 11:45:02 -04:00
tox.ini Update tox.ini to work with tox 4 2022-12-27 01:20:28 +00:00