Skip to content

Commit b1b28a7

Browse files
authored
Loganalyzer regex correction for test_po_update (#11184)
Cherry-Pick PR for 202205 from master #10860 For PC tests 'test_po_update.py', seen the following LogAnalyzer mismatch related messages being reported as errors. Issues seen in PC tests running on chassis with topo t2 multi-asic. E Match Messages: E Nov 11 20:41:16.136440 ixre-egl-board3 ERR syncd0#syncd: :- process_on_fdb_event: invalid OIDs in fdb notifications, NOT translating and NOT storing in ASIC DB E E Nov 11 20:41:16.136471 ixre-egl-board3 ERR syncd0#syncd: :- process_on_fdb_event: FDB notification was not sent since it contains invalid OIDs, bug? What is the motivation for this PR? Loganalyzer mismatch errors seen during PC test suites for test_po_update.py tests w.r.t syncd container messages per asic as shown above. How did you do it? Fix the existing regex to support syncd container syslog messages per asic. How did you verify/test it? Ran the PC test cases against a multi-asic line card in a T2 chassis.
1 parent 5cb9511 commit b1b28a7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/pc/test_po_update.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ def ignore_expected_loganalyzer_exceptions(enum_rand_one_per_hwsku_frontend_host
3636
# when loganalyzer is disabled, the object could be None
3737
if loganalyzer:
3838
ignoreRegex = [
39-
".*ERR syncd#syncd: :- process_on_fdb_event: invalid OIDs in fdb notifications, NOT translating and NOT storing in ASIC DB.*",
40-
".*ERR syncd#syncd: :- process_on_fdb_event: FDB notification was not sent since it contain invalid OIDs, bug.*",
41-
".*ERR syncd#syncd: :- translate_vid_to_rid: unable to get RID for VID.*",
39+
(".*ERR syncd[0-9]*#syncd: :- process_on_fdb_event: invalid OIDs in fdb notifications, "
40+
"NOT translating and NOT storing in ASIC DB.*"),
41+
(".*ERR syncd[0-9]*#syncd: :- process_on_fdb_event: FDB notification was not sent "
42+
"since it contain invalid OIDs, bug.*"),
43+
(".*ERR syncd[0-9]*#syncd: :- translate_vid_to_rid: unable to get RID for VID.*"),
4244
]
4345
loganalyzer[enum_rand_one_per_hwsku_frontend_hostname].ignore_regex.extend(ignoreRegex)
4446

0 commit comments

Comments
 (0)