Skip to content

Commit

Permalink
[loganalyzer] Ignore pmon iSmart binary format ERR log (#16443)
Browse files Browse the repository at this point in the history
Summary:
Due to known issue sonic-net/sonic-buildimage#21319
PR #16301 doesn't ignore all the pmon iSmart binary format ERR log. Update the regex to ignore all of below ERR logs:

/var/log/syslog.3.gz:2025 Jan  9 20:42:05.687373 7215-5 ERR pmon#SsdUtil[55]: [Errno 8] Exec format error: 'iSmart'
/var/log/syslog.3.gz:2025 Jan  9 20:42:07.744397 7215-5 ERR pmon#StorageCommon[55]: [Errno 8] Exec format error: 'iSmart'
/var/log/syslog.5.gz:2025 Jan  9 19:37:33.855554 7215-5 ERR pmon#SsdUtil[49]: [Errno 8] Exec format error: 'iSmart'
/var/log/syslog.5.gz:2025 Jan  9 19:37:35.261567 7215-5 ERR pmon#StorageCommon[49]: [Errno 8] Exec format error: 'iSmart'

What is the motivation for this PR?
PR #16301 doesn't ignore all the pmon iSmart binary format ERR log. Update the regex to ignore all of below ERR logs:

How did you do it?
Update the regex.

How did you verify/test it?
Verified by running testcase: syslog/test_syslog.py::test_syslog
  • Loading branch information
lizhijianrd authored Jan 10, 2025
1 parent 54c8847 commit 4049674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ r, ".* ERR dhcp_relay#dhcpmon.*Invalid number of interfaces, downlink/south 1, u

r, ".* ERR pmon#ycable.*Error: Could not get port instance for muxcable info for Y cable port Ethernet.*"
r, ".* ERR pmon#CCmisApi: :- checkReplyType: Expected to get redis type 0 got type 3, err: NON-STRING-REPLY*"
r, ".* ERR pmon#StorageCommon\[.*\]: \[Errno 8\] Exec format error: 'iSmart'"
r, ".* ERR pmon#.*: \[Errno 8\] Exec format error: 'iSmart'"

# https://msazure.visualstudio.com/One/_workitems/edit/15012104
# TO BE REMOVED
Expand Down

0 comments on commit 4049674

Please sign in to comment.