-
Notifications
You must be signed in to change notification settings - Fork 746
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
[T2][Chassis] tsa-tsb: Add additional timer check before checking tsa-tsb service status #15649
Conversation
Hi Sanjair, sorry I didn't quite understand, are you saying it's possible TSA TSB startup service is still running ( |
Hi @Javier-Tan, Let me rephrase the test scenario here in detail,
During Step 4 above, test case handles two cases. What if the line card's tsa-tsb service is still running or service is already done and exited after timer expiry.
As part of the above check, when we get the status of tsa-tsb service, there could be chances for the second/third line card to show the status like this shown below once completing the check for first line card. (15 mins = 900 seconds is the max configured value on the line card for tsa-tsb service)
At this 15th minute, tsa-tsb service applies 'TSB' on the line card and changes the traffic-shift-state to 'TS_NORMAL' already in the background even though the service status shows 'active (running)'. To handle this, I have added the above code change for this particular test case. |
Hi @sanjair-git, thanks for the clarification. I think this is a safe fix, I wonder if the service being active after it's finished its duty should be investigated, perhaps it is on purpose for cleanup. |
@Javier-Tan, from what I noticed, yes, it is on the purpose of cleanup. Can you please approve if you are ok with the fix? |
) This PR fixes a corner case w.r.t 'test_user_init_tsb_on_sup_while_service_run_on_dut' test under 'test_startup_tsa_tsb_service.py' and adds more check while fetching the 'tsa-tsb' service status on the line cards after applying 'TSB' on supervisor card. The fix makes sure if the service is 'Active' running state and the service uptime is not the same as configured time.
Cherry-pick PR to 202405: #16101 |
This PR fixes a corner case w.r.t 'test_user_init_tsb_on_sup_while_service_run_on_dut' test under 'test_startup_tsa_tsb_service.py' and adds more check while fetching the 'tsa-tsb' service status on the line cards after applying 'TSB' on supervisor card. The fix makes sure if the service is 'Active' running state and the service uptime is not the same as configured time.
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
**"stdout": " Active: active (running) since Sat 2024-11-16 20:19:21 UTC; 15min ago",**
Note: only this test case requires this change, other tests won't get into this corner case.
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation