Disable loganalyzer for voq_disrupts test#15917
Conversation
|
@arlakshm for awareness |
|
Looks like the pipeline failed with an Azure authentication error: |
|
/Azp run Azure.sonic-mgmt |
|
Commenter does not have sufficient privileges for PR 15917 in repo sonic-net/sonic-mgmt |
|
/azpw run Azure.sonic-mgmt |
|
/AzurePipelines run Azure.sonic-mgmt |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@arista-hpandya @wenyiz2021 I suggest add the offending error logs to the issue and assess if we should white-list them instead? disabling the log analyzer will generally ignore all issues could be caught by log analyzer therefore leaving windows for regression. |
@yxieca , here the error logs happened due to reboot, since the other reboot cases are disabling loganalyzer, and this test are all reboot tests except 1 config reload test. I think it would be hard to whitelist all errors due to reboot. |
Hi @yxieca and @wenyiz2021 , thank you for reviewing the change. To my knowledge the current process of ignoring logs is via adding them to |
|
If you wish I can open an issue for these untracked loganalyzer errors which would ensure that they don't slide away while giving the voq reboot tests the ability to run and verify reboot related checks |
The log analyzer infrastructure support adding whitelist to a single test case. With that said, reboot related error logs is long and Wenyi is right, other tests currently also choose to disable log analyzer. |
|
there is a way to ignore certain syslog on the testcase |
|
Thank you @wenyiz2021 and @yxieca for the prompt response. Based on the discussion can we go ahead and merge this change for consistency across all reboot test cases. |
Disable loganalyzer for voq_disrupts test, error logs due to reboot
|
Cherry-pick PR to 202405: #16098 |
Disable loganalyzer for voq_disrupts test, error logs due to reboot
Description of PR
Summary:
Fixes #15916
Type of change
Back port request
Approach
What is the motivation for this PR?
When an LC or a supervisor is rebooted it produces a lot of logs irrelevant to the individual testcases. This is one of the drawbacks faced by the voq disrupts tests that reboots the device and fails because of these unaccounted error logs. Following the theme seen in the below tests that call reboots, I have disabled the log analyzer in voq disrupt to make sure the test focuses more on catching the voq related failures.
sonic-mgmt/tests/pfcwd/test_pfcwd_warm_reboot.py
Line 37 in 7e7dded
sonic-mgmt/tests/platform_tests/test_power_off_reboot.py
Line 12 in 7e7dded
sonic-mgmt/tests/platform_tests/test_cont_warm_reboot.py
Line 23 in 7e7dded
How did you do it?
By adding the
pytest.mark.disable_loganalyzerpytest markHow did you verify/test it?
I have run the test on a T2 topology and verified that we no longer hit the loganalyzer errors
Any platform specific information?
NA
Supported testbed topology if it's a new test case?
NA
Documentation