Skip to content
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

Test cases for LAG on Distributed VOQ System #3148

Merged
merged 5 commits into from Apr 20, 2021

Conversation

oxygen980
Copy link
Contributor

Description of PR

Test cases for LAG
Test plan PR :-
#3033

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

Test cases for LAG on Distributed VOQ System

How did you do it?

How did you verify/test it?

Verified on T2 topology

Any platform specific information?

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

T2 topology

Documentation

@oxygen980 oxygen980 requested a review from a team as a code owner March 16, 2021 05:01
@lgtm-com
Copy link

lgtm-com bot commented Mar 16, 2021

This pull request introduces 1 alert when merging 35e605b into eb75a74 - view on LGTM.com

new alerts:

  • 1 for Unused argument in a formatting call

@lgtm-com
Copy link

lgtm-com bot commented Mar 16, 2021

This pull request introduces 1 alert when merging 979e34b into b1c4f28 - view on LGTM.com

new alerts:

  • 1 for Unused argument in a formatting call

@lgtm-com
Copy link

lgtm-com bot commented Mar 17, 2021

This pull request introduces 1 alert when merging 0fbdc04 into b1c4f28 - view on LGTM.com

new alerts:

  • 1 for Unused argument in a formatting call

@oxygen980
Copy link
Contributor Author

retest vs image please

@oxygen980
Copy link
Contributor Author

oxygen980 commented Mar 18, 2021

@yxieca The run is failing in 'test_po_update' duting LogAnalyzer. My code changes are not touching this file. Could you please re-run the build ?

@shubav
Copy link
Contributor

shubav commented Mar 22, 2021

@yxieca, Could you help review these test cases? The failures in the test case are unrelated to this commit. Could you help restart the pipeline?

@oxygen980
Copy link
Contributor Author

@yxieca, Could you help restart the pipeline? the failure is not from the code change.

@shubav
Copy link
Contributor

shubav commented Mar 30, 2021

The pipeline checks have passed.
@yxieca, @wangxin - could you please review?
@eswaranb - could you please add Arista reviewers?
There are just 4 TCs. Thanks.

@anshuv-mfst
Copy link

@yxieca @wangxin , @saravanansv - could you please take a look, thanks.

tests/pc/test_po_voq.py Outdated Show resolved Hide resolved
tests/common/helpers/voq_lag.py Outdated Show resolved Hide resolved
tests/common/helpers/voq_lag.py Outdated Show resolved Hide resolved
tests/common/helpers/voq_lag.py Show resolved Hide resolved
tests/common/helpers/voq_lag.py Show resolved Hide resolved
tests/common/helpers/voq_lag.py Show resolved Hide resolved
if re.search(pattern, lag_member):
exist = True
logging.info('lag member {} found in system lag member table {}'
.format(member, lag_member))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add break to jump out from the iteration early?

@wangxin
Copy link
Collaborator

wangxin commented Apr 13, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@skbarista
Copy link

Hi, This is Sambath from Arista. Sorry I am little late on this. The test plan from https://github.com/Azure/sonic-mgmt/pull/3033/files as well as test cases does not seem to have any traffic validation. Would traffic validation be added in a future update to the test plan/test cases?

@oxygen980
Copy link
Contributor Author

@skbarista Thank you for the review ! As we have mentioned in the test plan 'This test plan does not cover functioning of LAG as an IP/Layer3 endpoint as that is outside the scope of the code PR' we are not going to have traffic test cases in future too.

@shubav
Copy link
Contributor

shubav commented Apr 14, 2021

@skbarista Thank you for the review ! As we have mentioned in the test plan 'This test plan does not cover functioning of LAG as an IP/Layer3 endpoint as that is outside the scope of the code PR' we are not going to have traffic test cases in future too.

Also, this test case will execute on a T2 topology, of which, LAG is a part. Many T1 test cases, when converted by the chassis subgroup, will cover this forwarding aspect.

We kept forwarding out of this because:

  1. The code PR does not touch fwding and not even teamd
  2. Other forwarding tests check hashing and forwarding. So we avoided duplication

@skbarista
Copy link

Thanks for the clarification @shubav @oxygen980

@shubav
Copy link
Contributor

shubav commented Apr 19, 2021

@wangxin comments from you and Arista have been addressed. If it looks fine, could you help get this merged, please?

@wangxin wangxin merged commit 738e3aa into sonic-net:master Apr 20, 2021
saravanansv pushed a commit to saravanansv/sonic-mgmt that referenced this pull request May 6, 2021
What is the motivation for this PR?
Test cases for LAG on Distributed VOQ System

How did you verify/test it?
Verified on T2 topology

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

Co-authored-by: falodiya <renu.falodiy@nokia.com>
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
What is the motivation for this PR?
Test cases for LAG on Distributed VOQ System

How did you verify/test it?
Verified on T2 topology

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

Co-authored-by: falodiya <renu.falodiy@nokia.com>
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.

None yet

5 participants