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

[MgmtVrf ]: fix for Host Unreachable' error #1775

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

chitra-raghavan
Copy link
Contributor

Summary:
Fixes #1615

Type of change

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

Approach

What is the motivation for this PR?

How did you do it?

Removed the wait_for after adding mgmt vrf.

How did you verify/test it?

Tested by running in S5232 testbed.

Logs

py.test --inventory=../ansible/lab --host-pattern=sonic-s5232-01 --module-path ../ansible/library/ --testbed=vms-t0-56 --testbed_file=../ansible/testbed.csv test_mgmtvrf.py --log-level=DEBUG --log-file mvrf-debug.log --disable_loganalyzer -rab -vvv
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-4.6.5, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
ansible: 2.8.7
rootdir: /var/johnar/sonic-mgmt/tests, inifile: pytest.ini
plugins: xdist-1.28.0, repeat-0.8.0, forked-1.1.3, ansible-2.2.2
collecting ... collected 10 items

test_mgmtvrf.py::TestMvrfInbound::test_ping PASSED [ 10%]
test_mgmtvrf.py::TestMvrfInbound::test_snmp_fact PASSED [ 20%]
test_mgmtvrf.py::TestMvrfOutbound::test_ping PASSED [ 30%]
test_mgmtvrf.py::TestMvrfOutbound::test_wget PASSED [ 40%]
test_mgmtvrf.py::TestMvrfOutbound::test_curl PASSED [ 50%]
test_mgmtvrf.py::TestServices::test_ntp PASSED [ 60%]
test_mgmtvrf.py::TestServices::test_service_acl PASSED [ 70%]
test_mgmtvrf.py::TestReboot::test_warmboot PASSED [ 80%]
test_mgmtvrf.py::TestReboot::test_reboot PASSED [ 90%]
test_mgmtvrf.py::TestReboot::test_fastboot PASSED [100%]

========================= 10 passed in 1549.91 seconds =========================
Triggering a new build of write_to_csv
Finished: SUCCESS

Any platform specific information?

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

Documentation

@lgtm-com
Copy link

lgtm-com bot commented Jun 16, 2020

This pull request introduces 1 alert and fixes 1 when merging cf5e310 into ce122b6 - view on LGTM.com

new alerts:

  • 1 for Variable defined multiple times

fixed alerts:

  • 1 for Variable defined multiple times

@chitra-raghavan
Copy link
Contributor Author

retest this please

@daall
Copy link
Contributor

daall commented Jun 19, 2020

retest vsimage please

@neethajohn neethajohn requested a review from wangxin June 19, 2020 17:28
@chitra-raghavan
Copy link
Contributor Author

retest vsimage please

1 similar comment
@chitra-raghavan
Copy link
Contributor Author

retest vsimage please

@wangxin wangxin merged commit 1661316 into sonic-net:master Jul 1, 2020
@irene-pan1202
Copy link
Contributor

irene-pan1202 commented Oct 19, 2020

@chitra-raghavan @wangxin
Solution is removed the wait_for after adding mgmt vrf. Why need to add the wait_for SSH stop after deleting mgmt vrf?
Because after deleting mgmt vrf, some models only need 1 second to disconnect, adding this confirmation seems to cause the test timeout. Thanks.

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.

Mgmtvrf test fails with 'Host Unreachable' error
4 participants