Skip to content

[qos/t2] support single ASIC linecards#13700

Merged
yxieca merged 1 commit intosonic-net:masterfrom
kenneth-arista:master-t2-qos-support-single-asic
Jul 24, 2024
Merged

[qos/t2] support single ASIC linecards#13700
yxieca merged 1 commit intosonic-net:masterfrom
kenneth-arista:master-t2-qos-support-single-asic

Conversation

@kenneth-arista
Copy link
Contributor

Description of PR

#11000 only can handle multi-asic linecards. This fixes the limitation foro single ASIC linecards.

Summary:
Fixes # #13676

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

sonic-net#11000 only can handle
multi-asic linecards. This fixes the limitation foro single ASIC
linecards.
@kenneth-arista
Copy link
Contributor Author

@wenyiz2021 @arlakshm @ysmanman for awareness

@arlakshm
Copy link
Contributor

@vmittal-msft

@kenneth-arista
Copy link
Contributor Author

@wenyiz2021 can you help merge this fix?

@yxieca yxieca merged commit 2b0f851 into sonic-net:master Jul 24, 2024
@kenneth-arista
Copy link
Contributor Author

@wenyiz2021 can you help add a label to Request for 202405 branch?

arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
sonic-net#11000 only can handle
multi-asic linecards. This fixes the limitation foro single ASIC
linecards.
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
sonic-net#11000 only can handle
multi-asic linecards. This fixes the limitation foro single ASIC
linecards.
@kenneth-arista
Copy link
Contributor Author

@arlakshm @wenyiz2021 can this PR be cherry-picked to 202405 soon?

@wenyiz2021
Copy link
Contributor

@yejianquan can you help port this to 202405? thanks

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Nov 22, 2024
sonic-net#11000 only can handle
multi-asic linecards. This fixes the limitation foro single ASIC
linecards.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #15697

mssonicbld pushed a commit that referenced this pull request Nov 22, 2024
#11000 only can handle
multi-asic linecards. This fixes the limitation foro single ASIC
linecards.
patrickmacarthur added a commit to patrickmacarthur/sonic-mgmt that referenced this pull request Nov 22, 2024
We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR sonic-net#13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
rlhui pushed a commit that referenced this pull request Jan 7, 2025
)

We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR #13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Jan 9, 2025
…ic-net#15708)

We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR sonic-net#13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
yejianquan pushed a commit to yejianquan/sonic-mgmt that referenced this pull request Jan 17, 2025
…ic-net#15708)

We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR sonic-net#13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
yejianquan added a commit to yejianquan/sonic-mgmt that referenced this pull request Jan 17, 2025
sonic-mgmt: Fix namespace issues for qos tests on T2 single ASIC (sonic-net#15708)

Approach
What is the motivation for this PR?
We are seeing UnboundLocalError when running sonic-mgmt tests against a single-ASIC linecard:

UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
Upon further investigation, this was determined to be happening because a previous attempt to fix this issue (PR sonic-net#13700) completely omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db do have an Asic0 prefix even on a single ASIC DUT.

How did you do it?
Resolve this by specifically adding the Asic0 prefix in the case of a single-ASIC T2 DUT, instead of leaving the prefix out.

How did you verify/test it?
Tested by manually running qos tests on a T2 single ASIC DUT with these changes.

co-authorized by: jianquanye@microsoft.com
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Feb 21, 2025
…ic-net#15708)

We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR sonic-net#13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Mar 15, 2025
…ic-net#15708)

We are seeing UnboundLocalError when running sonic-mgmt tests against
a single-ASIC linecard:

```
UnboundLocalError: local variable 'dst_sys_port_id' referenced before assignment
```

Upon further investigation, this was determined to be happening
because a previous attempt to fix this issue (PR sonic-net#13700) completely
omitted the ASIC prefix, but the entries in SYSTEM_PORT in config_db
do have an Asic0 prefix even on a single ASIC DUT.

Resolve this by specifically adding the Asic0 prefix in the case of a
single-ASIC T2 DUT, instead of leaving the prefix out.

Tested by manually running qos tests on a T2 single ASIC DUT with
these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants