Skip to content

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

Merged
wangxin merged 1 commit intosonic-net:masterfrom
chitra-raghavan:mvrf
Jul 1, 2020
Merged

[MgmtVrf ]: fix for Host Unreachable' error#1775
wangxin merged 1 commit intosonic-net:masterfrom
chitra-raghavan:mvrf

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.

kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…tically (#25609)

#### Why I did it
src/sonic-sairedis
```
* c7a61be0 - (HEAD -> 202511, origin/202511) Fix switch stat counters by using get_stats_ext instead of get_stats (sonic-net#1775) (3 hours ago) [mssonicbld]
* 4f1d7d99 - Revert "Temp workaround for sonic-buildimage issue 23387 (sonic-net#1629)" (sonic-net#1758) (13 hours ago) [mssonicbld]
* 7c5f17d2 - [ci] Install redis from Debian (sonic-net#1778) (24 hours ago) [mssonicbld]
* ec4a54d5 - Fix dash meter COUNTERS_DB keys to use VID instead of RID (sonic-net#1750) (4 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.

Mgmtvrf test fails with 'Host Unreachable' error

4 participants