Skip to content

Fix shutdown/startup flow in test_reset to support multi-asic #20120

Merged
roy-sror merged 10 commits intosonic-net:masterfrom
ytzur1:fix_multi_asic_flow
Aug 10, 2025
Merged

Fix shutdown/startup flow in test_reset to support multi-asic #20120
roy-sror merged 10 commits intosonic-net:masterfrom
ytzur1:fix_multi_asic_flow

Conversation

@ytzur1
Copy link
Copy Markdown
Contributor

@ytzur1 ytzur1 commented Aug 7, 2025

Description of PR

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix #18772

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Fix #18772

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

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@ytzur1 ytzur1 force-pushed the fix_multi_asic_flow branch from 21c2232 to 146ee37 Compare August 7, 2025 15:04
@ytzur1 ytzur1 requested a review from prgeor as a code owner August 7, 2025 15:04
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@roy-sror
Copy link
Copy Markdown
Contributor

roy-sror commented Aug 7, 2025

@YatishSVC - can u approve this PR?

@YatishSVC
Copy link
Copy Markdown
Contributor

@YatishSVC - can u approve this PR?

Thanks @ytzur1, lgtm, I'll approve

Copy link
Copy Markdown
Contributor

@YatishSVC YatishSVC left a comment

Choose a reason for hiding this comment

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

lgtm, Thanks!

@YatishSVC
Copy link
Copy Markdown
Contributor

@mihirpat1, @prgeor,
Can you please help review and merge?

@roy-sror roy-sror merged commit c68c681 into sonic-net:master Aug 10, 2025
23 checks passed
@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Aug 10, 2025

hi @ytzur1 , will need some help to pick this one to 202412

@mssonicbld
Copy link
Copy Markdown
Collaborator

@ytzur1 PR conflicts with 202505 branch

arlakshm pushed a commit to Azure/sonic-mgmt.msft that referenced this pull request Aug 11, 2025
…ptics (#635)

Cherry pick conflicts, so created new pull request.
Pr's: 
sonic-net/sonic-mgmt#18772
sonic-net/sonic-mgmt#20120
sonic-net/sonic-mgmt#19691

Adding a check for Cloudlight optics.
Adding multi asic support for test_reset

Co-authored-by: yatishkoul <[email protected]>
ytzur1 added a commit to ytzur1/sonic-mgmt that referenced this pull request Aug 11, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
ytzur1 added a commit to ytzur1/sonic-mgmt that referenced this pull request Aug 11, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
@ytzur1
Copy link
Copy Markdown
Contributor Author

ytzur1 commented Aug 11, 2025

@ytzur1 PR conflicts with 202505 branch

added the fix to open PR - https://github.com/sonic-net/sonic-mgmt/pull/20096/files

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Aug 12, 2025

hi @ytzur1 , please let me know, once the PR is in 202412.

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Aug 12, 2025

also, if this is multi-asic only, it might not be land in 202412 branch as well. please let me know.

@ytzur1
Copy link
Copy Markdown
Contributor Author

ytzur1 commented Aug 12, 2025

Hi @r12f
Azure/sonic-mgmt.msft#639
it's the PR in 202412, I combined the fix and #18772 in the same PR.

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Aug 12, 2025

got it! thanks @ytzur1 ! kicked off CI and will follow up.

ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
roy-sror pushed a commit that referenced this pull request Aug 18, 2025
For test_sfp.py::test_reset - preformed shutdown and startup to all interfaces in bulk, instead of running the commands one by one on each port to improve running time

Runtime Stats:
before improvement: 00:20:45 avg
after improvement: 00:01:35 avg
includes the fix for multi-asic shutdown and startup #20120
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

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
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 added a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…net#20120)

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772

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

Fixed shutdown/startup flow in test_reset to support multi-asic
for multi-asic devices, shutdown and startup commands with be preformed for each port and not in bulk
Fix sonic-net#18772
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.

7 participants