Comment 2 for bug 1979892

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to monitoring (master)

Reviewed: https://review.opendev.org/c/starlingx/monitoring/+/847835
Committed: https://opendev.org/starlingx/monitoring/commit/237b3856f24f3fe53a24c64574561ae8d053dae8
Submitter: "Zuul (22348)"
Branch: master

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.

    Closes-Bug: 1979892
    Signed-off-by: Douglas Henrique Koerich <email address hidden>
    Change-Id: I96daf8bad746f0ec029d4a59051b4196ea8dba57