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

[multi-asic] skip the neighbor check if the neighbor is ASIC #3908

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

arlakshm
Copy link
Contributor

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]

Description of PR

On multi asic platforms skip the neighbor check if the neighbor is ASIC.
Summary:
Fixes # (issue)

Type of change

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

Back port request

  • [x ] 201911

Approach

What is the motivation for this PR?

Currently the test test_nbr_health is failing on multi asic platform.
This is because the test tries to incorrectly tries to find internal neighbors in nbrhost list for the DUT.

How did you do it?

exclude internal neigbors from the check in the test

How did you verify/test it?

run the tests in test_nbr_health.py on single and multi asic platforms

arlakshm@1c0c7668065c:/data/repos/azvm/sonic-mgmt/tests$ ./run_tests.sh -d str-multi-asic-acs-2 -n vms13-t1-multi-asic-2 -c test_nbr_health.py -i ../ansible/str,../ansible/veos -f ../ansible/testbed.csv -l WARNING -k debug -m individual -r  -t t1
,any -e '--skip_sanity --deep_clean  --disable_loganalyzer'
=== Preparing DUT for subsequent tests ===
/usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature
=========================================================================================================== test session starts ============================================================================================================
platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.10.0, pluggy-0.13.1
ansible: 2.8.12
rootdir: /data/repos/azvm/sonic-mgmt
plugins: forked-1.3.0, metadata-1.11.0, xdist-1.28.0, html-1.22.1, repeat-0.9.1, ansible-2.2.2
collected 2818 items / 2805 deselected / 13 selected

test_nbr_health.py::test_neighbors_health[str-multi-asic-acs-2] PASSED                                                                                    [  7%]
arlakshm@1c0c7668065c:/data/repos/azvm/sonic-mgmt/tests$ ./run_tests.sh -d str-single-asic-acs-1 -n vms13-t0-single-asic -c test_nbr_health.py -i ../ansible/str,../ansible/veos -f ../ansible/testbed.csv -l WARNING -k debug -m individual  -r -t t0,a
ny -e '--skip_sanity --allow_recover --showlocals --assert plain -rav --module-path ../ansible/library/ --collect_techsupport False --deep_clean '
=== Preparing DUT for subsequent tests ===
/usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature
=========================================================================================================== test session starts ============================================================================================================
platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.10.0, pluggy-0.13.1
ansible: 2.8.12
rootdir: /data/repos/azvm/sonic-mgmt
plugins: forked-1.3.0, metadata-1.11.0, xdist-1.28.0, html-1.22.1, repeat-0.9.1, ansible-2.2.2
collected 2426 items / 2413 deselected / 13 selected

test_nbr_health.py::test_neighbors_health[str-single-asic-acs-1] PASSED                                                                                    [  7%]                                                                                                                                                                                                                     

Any platform specific information?

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

Documentation

@arlakshm arlakshm requested a review from a team as a code owner July 28, 2021 22:56
@arlakshm arlakshm requested review from smaheshm and wangxin July 28, 2021 22:57
Copy link
Contributor

@smaheshm smaheshm left a comment

Choose a reason for hiding this comment

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

:shipit:

@smaheshm
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm merged commit 0de45d2 into sonic-net:master Jul 29, 2021
@arlakshm arlakshm deleted the masic_nbr_health_fix branch July 29, 2021 20:36
@arlakshm arlakshm mentioned this pull request Aug 3, 2021
3 tasks
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…t#3908)

What is the motivation for this PR?
Currently the test test_nbr_health is failing on multi asic platform.
This is because the test tries to incorrectly tries to find internal neighbors in nbrhost list for the DUT.

How did you do it?
exclude internal neigbors from the check in the test

How did you verify/test it?
run the tests in test_nbr_health.py on single and multi asic platforms

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
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.

2 participants