-
Notifications
You must be signed in to change notification settings - Fork 718
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
[dualtor-aa][sanity_check] Add checker to verify dualtor-aa
interfaces are active on both sides
#11637
Merged
yxieca
merged 1 commit into
sonic-net:master
from
zjswhhh:bgp_update_timer_master_public
Feb 12, 2024
Merged
[dualtor-aa][sanity_check] Add checker to verify dualtor-aa
interfaces are active on both sides
#11637
yxieca
merged 1 commit into
sonic-net:master
from
zjswhhh:bgp_update_timer_master_public
Feb 12, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lolyu
approved these changes
Feb 8, 2024
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.
LGTM
yxieca
reviewed
Feb 12, 2024
@@ -519,6 +519,12 @@ def _verify_inconsistent_mux_status(duts_parsed_mux_status, dut_upper_tor, dut_l | |||
err_msg_from_mux_status.append('Inconsistent mux status for active-standby ports on dualtors, \ | |||
please check output of "show mux status"') | |||
dut_wrong_mux_status_ports.append(port_idx) | |||
if cable_type == CableType.active_active: | |||
logger.debug('Verify that active-active ports:{}'.format(duts_parsed_mux_status)) | |||
if (upper_tor_mux_status[port_idx]['status'] != 1 or lower_tor_mux_status[port_idx]['status'] != 1): |
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.
Not for this PR. but suggest define constants for active/standby/...
Cherry-pick PR to 202311: #12091 |
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Mar 22, 2024
8 tasks
Cherry-pick PR to 202305: #12092 |
8 tasks
mssonicbld
pushed a commit
that referenced
this pull request
Mar 22, 2024
mssonicbld
pushed a commit
that referenced
this pull request
Mar 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
Add checker to verify
dualtor-aa
interfaces are active on both sides. If not, try recovering by configuring mux mode, restart nic_simulator etc.sign-off: Jing Zhang zhangjing@microsoft.com
Type of change
Back port request
Approach
What is the motivation for this PR?
Tests are failing at setup due to dualtor-aa interfaces left in non-active status.
How did you do it?
config reload
and savedauto
config explicitly.mux_simulator
restart when there is no active-standby interfaces to avoid unnecessary errors.How did you verify/test it?
Ran
bgp/test_bgp_update_timer.py::test_bgp_update_timer_session_down
:auto
, sanity check passed, test passed.standby
on both sides, sanity check triggeredrecover
, test passed.Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation