Skip to content

[action] [PR:22340] Fix check_config_applied logic in set_dual_tor_state_to_orchagent#22720

Open
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22340
Open

[action] [PR:22340] Fix check_config_applied logic in set_dual_tor_state_to_orchagent#22720
mssonicbld wants to merge 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/22340

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)
https://msazure.visualstudio.com/One/_workitems/edit/36060751

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

The previous check_config_applied function compared the total number of entries in MUX_CABLE_TABLE with the number of interfaces. However, MUX_CABLE_TABLE contains entries for all mux ports in the system (e.g., 24 ports in T0 KVM), which always remain the same.

The previous implementation of check_config_applied() validated the mux state change by comparing the total number of entries in MUX_CABLE_TABLE with the number of interfaces being updated. When updating only a subset of interfaces, it causes the check to fail consistently and wait_until function to retry until the 2min timeout.

How did you do it?

By checking the state of each instead of comparing the total number of table entries.

How did you verify/test it?

Before the improvement:
https://elastictest.org/scheduler/testplan/698bf70cbb7d1dad4c804782?searchTestCase=test_orchagent_active_tor_downstream&testcase=dualtor%2Ftest_orchagent_active_tor_downstream.py&type=log&leftSideViewMode=detail
image

Now:
https://elastictest.org/scheduler/testplan/698c18b648d58f009f2c7b39?searchTestCase=test_orchagent_active_tor_downstream&testcase=dualtor%2Ftest_orchagent_active_tor_downstream.py&type=log&leftSideViewMode=detail
image

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…nic-net#22340)

What is the motivation for this PR?
The previous check_config_applied function compared the total number of entries in MUX_CABLE_TABLE with the number of interfaces. However, MUX_CABLE_TABLE contains entries for all mux ports in the system (e.g., 24 ports in T0 KVM), which always remain the same.

The previous implementation of check_config_applied() validated the mux state change by comparing the total number of entries in MUX_CABLE_TABLE with the number of interfaces being updated. When updating only a subset of interfaces, it causes the check to fail consistently and wait_until function to retry until the 2min timeout.

How did you do it?
By checking the state of each instead of comparing the total number of table entries.

How did you verify/test it?
Before the improvement:
https://elastictest.org/scheduler/testplan/698bf70cbb7d1dad4c804782?searchTestCase=test_orchagent_active_tor_downstream&testcase=dualtor%2Ftest_orchagent_active_tor_downstream.py&type=log&leftSideViewMode=detail
Signed-off-by: yawenni <yawenni@microsoft.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #22340

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants