Skip to content

collect_dut_info to check if we have front-end and/or back-end asics#4070

Merged
yxieca merged 2 commits intosonic-net:masterfrom
sanmalho-git:collect_dut_info
Oct 22, 2021
Merged

collect_dut_info to check if we have front-end and/or back-end asics#4070
yxieca merged 2 commits intosonic-net:masterfrom
sanmalho-git:collect_dut_info

Conversation

@sanmalho-git
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

PR #3696 added container names in meta data file for frontend and backend ASIC on which autorestart test will be performed for multi-asic platform. This assumes that on a multi-asic platform, there are always front-end and back-end asics.

However, on a VoQ chassis

  • linecards don't have back-end asics.
  • supervisor card has niether front-end nor back-end asics

So, need to check if we have front-end or back-end asics before trying to add them to asic_services.

How did you do it?

If we have front-end or back-end asics, (len != 0), only then pick up randomly and add it to asic_services.

How did you verify/test it?

Tested on multi-asic linecard and supervisor card in a VoQ chassis.

Any platform specific information?

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

Documentation

@sanmalho-git sanmalho-git requested a review from a team as a code owner August 18, 2021 15:35
@smaheshm
Copy link
Contributor

There are lot of places where "is_multi_asic" is used. There could be other issues popping up. Have you explored adding a new sonichost type?
cc: @arlakshm

@sanmalho-git
Copy link
Contributor Author

@smaheshm MultiAsicSonicHost in tests/common/devices/multi_asic.py is the class that represents a SonicHost with multiple asics - this has a list of asics in the SonicHost. Even a single asic box is an instance of MultiAsicSonicHost with a single asic. This class allows for seemless compatibility between single and multi-asic DUTs with minimal changes to be made to make a test be able to run on both DUT types.

Copy link
Contributor

@arlakshm arlakshm 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
Copy link
Contributor

@sanmalho-git, can you fix the conflicts ?

@sanmalho-git
Copy link
Contributor Author

@arlakshm - Fixed the conflicts

@arlakshm
Copy link
Contributor

/Azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm linked an issue Oct 15, 2021 that may be closed by this pull request
@arlakshm
Copy link
Contributor

Waiting for LGTM analysis to finish...

@yxieca
Copy link
Collaborator

yxieca commented Oct 20, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

PR# 3696 added container names in meta data file for frontend and backend ASIC on which autorestart test will be performed for multi-asic platform.
This assumes that on a multi-asic platform, there are always front-end and back-end asics.

However, on a VoQ chassis
  - linecards don't have back-end asics.
  - supervisor card has niether front-end nor back-end asics

So, need to check if we have front-end or back-end asics before trying to add them to asic_services.
@sanmalho-git
Copy link
Contributor Author

@yxieca @arlakshm can we get this PR merged. Thanks.

@yxieca yxieca merged commit ed94d5b into sonic-net:master Oct 22, 2021
@sanmalho-git sanmalho-git deleted the collect_dut_info branch November 15, 2021 14:47
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
- What I did
Ported a fix from libteam master to our master.
Fixes sonic-net#4070
Fixes sonic-net#3649

- How I did it
Applied patch jpirko/libteam@c723737 from upstream.

- How to verify it
Build image for your DUT and warm-reboot your DUT 10 times. Check that all PortChannels are up and no error messages in teamd.log
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (#24970)

#### Why I did it
src/sonic-swss
```
* 3c6ec95c - (HEAD -> 202511, origin/202511) [portsorch] fix crash when number of PGs returned 0 (sonic-net#4106) (29 hours ago) [mssonicbld]
* f4c0865a - [orchagent] support single ASIC VOQ Fixed-System (sonic-net#4105) (30 hours ago) [mssonicbld]
* 2a8deda1 - Change DB that DPU orchagents listens to for all orchs (sonic-net#4070) (2 days ago) [mssonicbld]
* 15e017e8 - [ssw][ha] add ACTION_COUNTER to acl table type (sonic-net#4078) (2 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chassis] test_update_testbed_metadata fails on supervisor card

4 participants