From e7e90eca7f826fc25917394e3fa0904faa1666ce Mon Sep 17 00:00:00 2001 From: ShiyanWangMS Date: Thu, 3 Jul 2025 09:35:06 +0800 Subject: [PATCH] Fix the ignore pattern - leapsecond file expired warning (#19332) What is the motivation for this PR? The following syslog should be ignored. 2025 Jul 1 09:30:14.223456 bjw2-can-8102-1 ERR ntpd[224326]: CLOCK: leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): expired less than 4 days ago How did you do it? Change the ignore pattern How did you verify/test it? Verify with physical testbed --- .../test/files/tools/loganalyzer/loganalyzer_common_ignore.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/test/files/tools/loganalyzer/loganalyzer_common_ignore.txt b/ansible/roles/test/files/tools/loganalyzer/loganalyzer_common_ignore.txt index 4d4870a77a9..74603b4052d 100644 --- a/ansible/roles/test/files/tools/loganalyzer/loganalyzer_common_ignore.txt +++ b/ansible/roles/test/files/tools/loganalyzer/loganalyzer_common_ignore.txt @@ -306,7 +306,7 @@ r, ".* ERR swss#orchagent:.*doAppSwitchTableTask.*Unsupported Attribute lag_hash r, ".* ERR syncd\d*#syncd.*SAI_API_BUFFER.*Unsupported buffer pool.*" # ignore leap second file NTP daemon (ntpd) is using has passed its expiration date -r, ".* ERR ntpd\[\d*\]:.*leapsecond file ('/usr/share/zoneinfo/leap-seconds.list'): expired.*" +r, ".* ERR ntpd\[\d*\]:.*leapsecond file \('/usr/share/zoneinfo/leap-seconds\.list'\): expired.*" # ignore NTP nss_tacplus error, which will happen when reload config, because NTPD will invoke getpwnap API but nss_tacplus will re-render during reload config r, ".* ERR ntpd\[\d*\]: nss_tacplus: .*"