sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
200 stars 730 forks source link

[Bug]: Disable LogAnalyzer in test_generic_hash.py::test_reboot #15689

Open bingwang-ms opened 2 days ago

bingwang-ms commented 2 days ago

Issue Description

LogAnalyzer should be expected because the test case will issue a cold-reboot or config reload. The test will ran into error if some error log shows up during the reboot or reload. But that should be expected.

>               pt_assert(
                    False,
                    'Processes "{}" failed with exit code "{}"\nException:\n{}\nTraceback:\n{}'.format(
                        list(failed_processes.keys()), p_exitcode, p_exception, p_traceback
                    )
                )
E               Failed: Processes "['analyze_logs--<MultiAsicSonicHost bjw2-can-4600c-4>']" failed with exit code "1"
E               Exception:
E               match: 130
E               expected_match: 0
E               expected_missing_match: 0
E               
E               Match Messages:
E               2024 Nov 20 01:36:17.364133 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x1000000b
E               
E               2024 Nov 20 01:36:17.364133 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1006900000001] [log_port:0x10069]
E               
E               2024 Nov 20 01:36:17.364179 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x1000000b
E               
E               2024 Nov 20 01:36:17.364202 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1006900000001] [log_port:0x10069]
E               
E               2024 Nov 20 01:36:17.393361 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x1000000b
E               
E               2024 Nov 20 01:36:17.393361 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1006B00000001] [log_port:0x1006B]
E               
E               2024 Nov 20 01:36:17.393448 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x1000000b
E               
E               2024 Nov 20 01:36:17.393448 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1006B00000001] [log_port:0x1006B]
E               
E               2024 Nov 20 01:36:17.498359 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000013
E               
E               2024 Nov 20 01:36:17.498359 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1006100000001] [log_port:0x10061]
E               
E               2024 Nov 20 01:36:17.498359 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000013
E               
E               2024 Nov 20 01:36:17.498425 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1006100000001] [log_port:0x10061]
E               
E               2024 Nov 20 01:36:17.538491 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000013
E               
E               2024 Nov 20 01:36:17.538491 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1006300000001] [log_port:0x10063]
E               
E               2024 Nov 20 01:36:17.538491 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000013
E               
E               2024 Nov 20 01:36:17.538536 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1006300000001] [log_port:0x10063]
E               
E               2024 Nov 20 01:36:17.877030 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000016
E               
E               2024 Nov 20 01:36:17.877030 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1005900000001] [log_port:0x10059]
E               
E               2024 Nov 20 01:36:17.877030 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000016
E               
E               2024 Nov 20 01:36:17.877063 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1005900000001] [log_port:0x10059]
E               
E               2024 Nov 20 01:36:17.896635 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000016
E               
E               2024 Nov 20 01:36:17.896681 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, INGRESS_ACL, key:PORT [OID:0x1005B00000001] [log_port:0x1005B]
E               
E               2024 Nov 20 01:36:17.896697 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000016
E               
E               2024 Nov 20 01:36:17.896718 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_UTILS.ERR] ./src/mlnx_sai_utils.c[2031]- get_dispatch_attribs_handler: Failed Get #0, EGRESS_ACL, key:PORT [OID:0x1005B00000001] [log_port:0x1005B]
E               
E               2024 Nov 20 01:36:17.971054 bjw2-can-4600c-4 ERR syncd#SDK: [SAI_PORT.ERR] ./src/mlnx_sai_port.c[7976]- mlnx_port_idx_by_log_id: Port index not found in DB by log id 0x10000002

Results you see

Test should pass. Unrelated log should be ignored.

Results you expected to see

The test result is error because of some error logs in syslog.

Is it platform specific

generic

Relevant log output

No response

Output of show version

No response

Attach files (if any)

No response

bingwang-ms commented 2 days ago

@echuawu Can you help check and fix this issue?