commit 237b3856f24f3fe53a24c64574561ae8d053dae8
Author: Douglas Henrique Koerich <email address hidden>
Date: Mon Jun 27 13:31:50 2022 -0300
Ignore host-based PTP instance in collectd
The "host_based" PTP instance was introduced in the r/stx6.0 release for
backward compatibility with legacy PTP configuration, which was
deprecated later on. Thus, it makes no sense anymore to look at
host-scoped PTP configuration files for sources of alarms, since they
are now associated to one of many PTP instances.
This change does the following:
a) Reverts the logic introduced by https://review.opendev.org/c/starlingx/monitoring/+/845172 that managed
the location of host-scoped PTP configuration file. That change caused
the bug by making the /etc/linuxptp/ptp4l.conf file visible with default
(but invalid) contents;
b) Removes every handle of "host_based" instance from code.
Tests:
PASS: In a Debian-based environment configured with PTP instances,
checked that no "host_based" alarm is triggered.
Reviewed: https:/ /review. opendev. org/c/starlingx /monitoring/ +/847835 /opendev. org/starlingx/ monitoring/ commit/ 237b3856f24f3fe 53a24c64574561a e8d053dae8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 237b3856f24f3fe 53a24c64574561a e8d053dae8
Author: Douglas Henrique Koerich <email address hidden>
Date: Mon Jun 27 13:31:50 2022 -0300
Ignore host-based PTP instance in collectd
The "host_based" PTP instance was introduced in the r/stx6.0 release for /review. opendev. org/c/starlingx /monitoring/ +/845172 that managed ptp4l.conf file visible with default
backward compatibility with legacy PTP configuration, which was
deprecated later on. Thus, it makes no sense anymore to look at
host-scoped PTP configuration files for sources of alarms, since they
are now associated to one of many PTP instances.
This change does the following:
a) Reverts the logic introduced by
https:/
the location of host-scoped PTP configuration file. That change caused
the bug by making the /etc/linuxptp/
(but invalid) contents;
b) Removes every handle of "host_based" instance from code.
Tests:
PASS: In a Debian-based environment configured with PTP instances,
checked that no "host_based" alarm is triggered.
Closes-Bug: 1979892 ec029d4a59051b4 196ea8dba57
Signed-off-by: Douglas Henrique Koerich <email address hidden>
Change-Id: I96daf8bad746f0