Use converged topo in KVM to save PR test CPU#23326
Open
xwjiang-ms wants to merge 3 commits intosonic-net:masterfrom
Open
Use converged topo in KVM to save PR test CPU#23326xwjiang-ms wants to merge 3 commits intosonic-net:masterfrom
xwjiang-ms wants to merge 3 commits intosonic-net:masterfrom
Conversation
Signed-off-by: xiaweijiang <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1. testbed.py: Run ceos_topo_converger at parse time when use_converged_peers is enabled and the topology YAML has not been pre-converged. This ensures the test fixtures see the converged topology (topo_is_multi_vrf, convergence_data) even when the on-disk YAML was not modified by an earlier add-topo step. 2. vtestbed.yaml: Only enable use_converged_peers for t0 KVM testbeds. Non-t0 topologies (t1-lag, t2, dualtor, etc.) exceed the KVM per-VM VLAN limit (NUM_FP_VLANS_PER_FP=4) when all VMs of the same role are consolidated into one prime device. Co-authored-by: Copilot <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ceos_topo_converger now computes max_fp_num based on the actual maximum VLAN count across prime VMs, so enough OVS bridges are created. The computed value is written to the topology YAML and picked up by include_vars (overriding the default max_fp_num=4 from group_vars). This is equivalent to passing -e max_fp_num=<N> on the CLI, but computed automatically. Also restores use_converged_peers for all KVM testbed entries. Co-authored-by: Copilot <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or 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
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)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation