-
Notifications
You must be signed in to change notification settings - Fork 745
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
Add sanity check command to debug PTF unreachable issue #16444
Add sanity check command to debug PTF unreachable issue #16444
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -90,6 +90,10 @@ def print_logs(duthosts, print_dual_tor_logs=False): | |||
cmds.remove(constants.PRINT_LOGS['mux_status']) | |||
cmds.remove(constants.PRINT_LOGS['mux_config']) | |||
|
|||
# check PTF device reachability | |||
cmds.append("ping {} -c 1 -W 3".format(ptfhost.mgmt_ip)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, check both IPV4 and IPV6
@@ -90,6 +90,10 @@ def print_logs(duthosts, print_dual_tor_logs=False): | |||
cmds.remove(constants.PRINT_LOGS['mux_status']) | |||
cmds.remove(constants.PRINT_LOGS['mux_config']) | |||
|
|||
# check PTF device reachability | |||
cmds.append("ping {} -c 1 -W 3".format(ptfhost.mgmt_ip)) | |||
cmds.append("traceroute {}".format(ptfhost.mgmt_ip)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add sanity check command to debug PTF unreachable issue.
Why I did it
TACACS test case failed because PTF device unreachable, need more info to debug.
Work item tracking
How I did it
Add sanity check command to debug PTF unreachable issue.
How to verify it
Pass all test case.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Add sanity check command to debug PTF unreachable issue.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)