-
Notifications
You must be signed in to change notification settings - Fork 714
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 test fails with 'Host Unreachable' error #1615
Comments
@noaOrMlnx looks like the wait_for is waiting for dut to reboot. This is a known instability with using wait_for for this purpose. Please use work-around similar to reboot test to wait for DUT to come back. |
Checked the test script, it's not related with reboot. @noaOrMlnx Could you please check if manual SSH to DUT works after |
The console where |
@vsenchyshyn If running I tried from my side on master image and got some findings:
When the SSH connection is not broken, the localhost.wait_for module will always fail with "Host Unreachable". Probably a limitation of the module. So, is the SSH connection to DUT supposed to be broken or not when mgmt VRF is configured/removed on DUT? @chitra-raghavan |
@vsenchyshyn , When the tests were written , the command hangs device for long time and ssh connection got broken. Now in latest images, if ansible ssh doesnt get timed out , wait_for can be removed |
@chitra-raghavan , can you open an pr to resolve this issue? |
Description
test_mgmtvrf.py fails on setup_mvrf() function when tries to execute:
localhost.wait_for(host=var['dut_ip'], port=22, state='started', search_regex=SONIC_SSH_REGEX, timeout=90)
NOTE: mgmt vrf becomes enabled after this function execution.
When ignoring the wait_for() function on setup_mvrf() function, the test fails on test_service_acl() test case - also on wait_for() function.
Steps to reproduce the issue:
Describe the results you received:
'Host Unreachable'.
Describe the results you expected:
Test should pass.
The text was updated successfully, but these errors were encountered: