Fix unreachable DUT mgmt_ip in IPv6 only test case#12492
Fix unreachable DUT mgmt_ip in IPv6 only test case#12492qiluo-msft merged 8 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Mai Bui <[email protected]>
This reverts commit b7230b1.
Signed-off-by: Mai Bui <[email protected]>
Signed-off-by: Mai Bui <[email protected]>
qiluo-msft
left a comment
There was a problem hiding this comment.
Please also check with other reviewers.
|
@maipbui I tested this change locally in KVM t0 testbed, there is a failure, can you please take a look? |
Signed-off-by: Mai Bui <[email protected]>
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Signed-off-by: Mai Bui <[email protected]>
tests/common/utilities.py
Outdated
| return pwd | ||
| def get_dut_current_passwd(ipv4_address, ipv6_address, username, passwords): | ||
| try: | ||
| return _paramiko_ssh(ipv4_address, username, passwords) |
There was a problem hiding this comment.
If you would like to keep old bahavior, suggest use a different variable name pwd -> passwd.
There was a problem hiding this comment.
updated, thanks for catching this
Signed-off-by: Mai Bui <[email protected]>
|
Tested on 202305 and internal on physical DUT, syncing offline with Dashuai Zhang for kvm test |
You can skip this error. It seems to be separate issues, not related to your change. I will check it further and reach out if needed. Your current code change looks good to me. |
## Description of PR Summary: Fix unreachable DUT mgmt_ip in IPv6 only test case ### Type of change - [X] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] Test case(new/improvement) ## Approach #### What is the motivation for this PR? sonic-net#12303 introduced a bug that DUT mgmt_ipv4 is unreachable in a IPv6 only test case, causing test_rw_user_ipv6_only, test_ro_user_ipv6_only, test_snmp_ipv6_only failed with `paramiko.ssh_exception.NoValidConnectionsError` or `socket.timeout: timed out` #### How did you do it? If mgmt_ip is unreachable, try mgmt_ipv6 #### How did you verify/test it? Verified on internal and 202305 branch on physical DUT
## Description of PR Summary: Fix unreachable DUT mgmt_ip in IPv6 only test case ### Type of change - [X] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] Test case(new/improvement) ## Approach #### What is the motivation for this PR? sonic-net#12303 introduced a bug that DUT mgmt_ipv4 is unreachable in a IPv6 only test case, causing test_rw_user_ipv6_only, test_ro_user_ipv6_only, test_snmp_ipv6_only failed with `paramiko.ssh_exception.NoValidConnectionsError` or `socket.timeout: timed out` #### How did you do it? If mgmt_ip is unreachable, try mgmt_ipv6 #### How did you verify/test it? Verified on internal and 202305 branch on physical DUT
|
Cherry-pick PR to 202305: #12573 |
|
Cherry-pick PR to 202311: #12574 |
## Description of PR Summary: Fix unreachable DUT mgmt_ip in IPv6 only test case ### Type of change - [X] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] Test case(new/improvement) ## Approach #### What is the motivation for this PR? #12303 introduced a bug that DUT mgmt_ipv4 is unreachable in a IPv6 only test case, causing test_rw_user_ipv6_only, test_ro_user_ipv6_only, test_snmp_ipv6_only failed with `paramiko.ssh_exception.NoValidConnectionsError` or `socket.timeout: timed out` #### How did you do it? If mgmt_ip is unreachable, try mgmt_ipv6 #### How did you verify/test it? Verified on internal and 202305 branch on physical DUT
## Description of PR Summary: Fix unreachable DUT mgmt_ip in IPv6 only test case ### Type of change - [X] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] Test case(new/improvement) ## Approach #### What is the motivation for this PR? #12303 introduced a bug that DUT mgmt_ipv4 is unreachable in a IPv6 only test case, causing test_rw_user_ipv6_only, test_ro_user_ipv6_only, test_snmp_ipv6_only failed with `paramiko.ssh_exception.NoValidConnectionsError` or `socket.timeout: timed out` #### How did you do it? If mgmt_ip is unreachable, try mgmt_ipv6 #### How did you verify/test it? Verified on internal and 202305 branch on physical DUT
Description of PR
Summary: Fix unreachable DUT mgmt_ip in IPv6 only test case
Fixes # (issue)
Microsoft ADO 27674168, 27674176
Type of change
Back port request
Approach
What is the motivation for this PR?
#12303 introduced a bug that DUT mgmt_ipv4 is unreachable in a IPv6 only test case, causing test_rw_user_ipv6_only, test_ro_user_ipv6_only, test_snmp_ipv6_only failed with
paramiko.ssh_exception.NoValidConnectionsErrororsocket.timeout: timed outHow did you do it?
If mgmt_ip is unreachable, try mgmt_ipv6
How did you verify/test it?
Verified on internal and 202305 branch on physical DUT
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation