-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[COPP] Fixed COPP test - reload logic #5651
Conversation
Old logic caused time to time failures in first test in class due to traffic loss Signed-off-by: Petro Pikh <[email protected]>
/azp run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
@dgsudharsan culd you please help to review? |
Hi @liat-grozovik , I didn't understand that, |
Hi @yejianquan |
Hi @ppikh, can you paste error log? |
Hi @yejianquan Please see error log below
|
Hi @saiarcot895 |
Hi @yejianquan, I added One issue I can see is that if safe reload is enabled, then instead of waiting for a fixed 120 seconds (the old behavior), it may wait anywhere between 0 and 420 seconds (300 seconds added as a buffer for services to come up), which means it may end up waiting for less time if the services happen to be up by then. However, if swss isn't ready when services are reported to be up, maybe there needs to be some other check happening, to make sure everything is ready and any ASIC programming is done. For now, you can go ahead and merge this PR. |
FYI - We have a PR #5610 open to add for checking if the interfaces are up as an optional action as part of config reload. |
If that PR works consistently, then maybe that PR can be merged, and this one can be closed? |
@saiarcot895 do you mean to close this PR and leave #5610 |
@saiarcot895 kindly reminder |
I reviewed and merged #5610, as I feel that that might fix the issue seen here. Could you test with those changes and see if the issue is still present? |
Hi @saiarcot895 - it looks like PR #5610 fixed issue(I did run few times and issue does not reproduce). |
Signed-off-by: Petro Pikh [email protected]
Description of PR
Fixed COPP test - reload logic
Old logic caused time to time failures in first test in class due to traffic loss(looks like DUT not ready after reload). Issue introduced in PR: #5564
Summary: Fixed COPP test - reload logic
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix test failure
How did you do it?
See code
How did you verify/test it?
Executed tests from file sonic-mgmt/tests/copp/test_copp.py
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation