Skip to content

[platform_tests/test_reload_config]: Respect overridden timeout#16031

Merged
arlakshm merged 3 commits intosonic-net:masterfrom
liamkearney-msft:pub-dev/reload_config_tweaks
Jan 2, 2025
Merged

[platform_tests/test_reload_config]: Respect overridden timeout#16031
arlakshm merged 3 commits intosonic-net:masterfrom
liamkearney-msft:pub-dev/reload_config_tweaks

Conversation

@liamkearney-msft
Copy link
Copy Markdown
Contributor

@liamkearney-msft liamkearney-msft commented Dec 12, 2024

  • Respect overridden timeout in inventory for reboot in reload_configuration_checks_test
  • Replace plt_override option with wait_for_processes - will bail early after SSH is up if not set
  • Don't check all containers for t2 / modular chassis
  • Increase timeouts

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • [ x] Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • [ x] 202405

Approach

What is the motivation for this PR?

There are various failures seen on nokia 7250 / arista 7800 / modular chassis DUTs for test_reload_config tests. Generally, they can be attributed to two things: too short of a timeout for t2 chassis, and the new docker status check.

How did you do it?

This PR refactors some logic in the reboot command, such that it will now respect overwritten values for the reboot timeout in the inventory file (so that SKU specific tweaks can be properly specified), and also repurposes the plt_reboot_ctrl_overwrite parameter to return_after_reconnect, which if set will cause the reboot function to return early after SSH comes back up, which is more in the spirit of how the test functions.

Additionally, some timeouts have been increased for this testcase, as t2 requires more time for services to come up.
Finally, the docker status check has been skipped for modular_chassis DUTs.

How did you verify/test it?

Ran on Nokia 7250 and Arista 7800 chassis

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

* Respect overridden timeout for reboot in
  reload_configuration_checks_test
* Replace plt_override option with wait_for_processes - will bail early
  after SSH is up if not set
* Don't check all containers for t2 / modular chassis
* Increase timeouts

Signed-off-by: Liam Kearney <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liamkearney-msft liamkearney-msft requested review from arlakshm, auspham and wenyiz2021 and removed request for prgeor December 12, 2024 01:36
@liamkearney-msft liamkearney-msft self-assigned this Dec 12, 2024
yejianquan
yejianquan previously approved these changes Dec 12, 2024
Copy link
Copy Markdown
Collaborator

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

arlakshm
arlakshm previously approved these changes Dec 13, 2024
@arlakshm
Copy link
Copy Markdown
Contributor

/Azp run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms
Copy link
Copy Markdown
Collaborator

Please share the test result for non-chassis platforms. The other PR #15951 caused regression on non-chassis platform

@liamkearney-msft
Copy link
Copy Markdown
Contributor Author

Hi @bingwang-ms, please see attached pass run on t1:
https://elastictest.org/scheduler/testplan/6762282fb4abf968292cbf94

@liamkearney-msft liamkearney-msft dismissed stale reviews from arlakshm and yejianquan via 10fda92 December 23, 2024 23:06
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm merged commit 696f580 into sonic-net:master Jan 2, 2025
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
…c-net#16031)

Approach
What is the motivation for this PR?
There are various failures seen on nokia 7250 / arista 7800 / modular chassis DUTs for test_reload_config tests. Generally, they can be attributed to two things: too short of a timeout for t2 chassis, and the new docker status check.

How did you do it?
This PR refactors some logic in the reboot command, such that it will now respect overwritten values for the reboot timeout in the inventory file (so that SKU specific tweaks can be properly specified), and also repurposes the plt_reboot_ctrl_overwrite parameter to return_after_reconnect, which if set will cause the reboot function to return early after SSH comes back up, which is more in the spirit of how the test functions.

Additionally, some timeouts have been increased for this testcase, as t2 requires more time for services to come up.
Finally, the docker status check has been skipped for modular_chassis DUTs.

How did you verify/test it?
Ran on Nokia 7250 and Arista 7800 chassis
---------

Signed-off-by: Liam Kearney <[email protected]>
rajkumar1-arista added a commit to rajkumar1-arista/sonic-mgmt that referenced this pull request Jun 11, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
rajkumar1-arista added a commit to rajkumar1-arista/sonic-mgmt that referenced this pull request Jun 11, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
wangxin pushed a commit that referenced this pull request Jun 12, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in #16031
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 3, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
mssonicbld pushed a commit that referenced this pull request Jul 3, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in #16031
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031

Signed-off-by: Yael Tzur <[email protected]>
Pterosaur pushed a commit to Pterosaur/sonic-mgmt that referenced this pull request Mar 26, 2026
…c-net#16031)

Approach
What is the motivation for this PR?
There are various failures seen on nokia 7250 / arista 7800 / modular chassis DUTs for test_reload_config tests. Generally, they can be attributed to two things: too short of a timeout for t2 chassis, and the new docker status check.

How did you do it?
This PR refactors some logic in the reboot command, such that it will now respect overwritten values for the reboot timeout in the inventory file (so that SKU specific tweaks can be properly specified), and also repurposes the plt_reboot_ctrl_overwrite parameter to return_after_reconnect, which if set will cause the reboot function to return early after SSH comes back up, which is more in the spirit of how the test functions.

Additionally, some timeouts have been increased for this testcase, as t2 requires more time for services to come up.
Finally, the docker status check has been skipped for modular_chassis DUTs.

How did you verify/test it?
Ran on Nokia 7250 and Arista 7800 chassis
---------

Signed-off-by: Liam Kearney <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
reboot call is still using the outdated argument `plt_reboot_ctrl_overwrite`
instead of `return_after_reconnect` that was introduced in sonic-net#16031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants