Skip to content

[action] [PR:26676] [dualtor] Load minigraph before golden config generation - #27337

Merged
mssonicbld merged 1 commit into
sonic-net:202605from
mssonicbld:cherry/202605/26676
Aug 26, 2026
Merged

mssonicbld merged 1 commit into
sonic-net:202605from
mssonicbld:cherry/202605/26676

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Description of PR

PR #26376 added dual-ToR golden config generation support for prober_type
and neighbor_mode. As part of that change, dualtor topologies started
generating golden_config_db.json with a PORT table copied from minigraph.

The deploy flow already runs config load_minigraph -y before golden config
generation for lt2 and ft2, because those topologies modify/copy PORT
and need the DUT config to reflect testbed-specific interface admin state
first. The new dualtor golden config path missed this preload step.

Without the preload, unused routed ports can be preserved as admin up in
golden_config_db.json. These ports have no link, remain oper down, and
pretest interface sanity fails.

This PR extends the existing preload condition to include dualtor.

Summary:
Fixes #26673

Type of change

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

Back port request

  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605

Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type: regression

Tested branch

  • master
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511
  • 202512
  • 202605
  • N/A

Test result

202605

Failure Results

  • SONiC image: branch.202605-ars.e7f59890-buildimage.de4f9f0baae9667c05bfe9fdeb1a4fdf4bd19d6c-nightly-2026.07.28.16.40
  • SONiC build commit: 0a4101e99
  • Build date: Tue Jul 28 21:11:40 UTC 2026
    test_pretest.log
    test_pretest.xml

Pass Results (after fix)

  • SONiC image: branch.202605-ars.e7f59890-buildimage.de4f9f0baae9667c05bfe9fdeb1a4fdf4bd19d6c-nightly-2026.07.28.16.40
  • SONiC build commit: 0a4101e99
  • Build date: Tue Jul 28 21:11:40 UTC 2026
    test_pretest.log
    test_pretest.xml

sonic-mgmt change under test:

Note: Both before and after tests used the same SONiC image/build; the validated change is in sonic-mgmt.

Approach

What is the motivation for this PR?

Fix a regression introduced when dualtor was added to the golden config
generation path. dualtor golden config now copies PORT, so it needs the
same minigraph preload step that already exists for lt2 and ft2.

How did you do it?

Updated ansible/config_sonic_basedon_testbed.yml so the existing
config load_minigraph -y step runs for dualtor before
golden_config_db.json is generated.

 - when: "'lt2' in topo or 'ft2' in topo"
 + when: "'lt2' in topo or 'ft2' in topo or 'dualtor' in topo"

How did you verify/test it?

Inspected failed pretest logs from tst-esx-31.
All failed during pretest setup sanity with unused routed ports
left as admin up / oper down.
Applied the fix and sanitized the duts , ran deploy-mg and pret-tests

Any platform specific information?

N/A

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

N/A

Documentation

N/A

…6676)

Approach
What is the motivation for this PR?
Fix a regression introduced when dualtor was added to the golden config
generation path. dualtor golden config now copies PORT, so it needs the
same minigraph preload step that already exists for lt2 and ft2.

How did you do it?
Updated ansible/config_sonic_basedon_testbed.yml so the existing
config load_minigraph -y step runs for dualtor before
golden_config_db.json is generated.

  -        when: "'lt2' in topo or 'ft2' in topo"
  +        when: "'lt2' in topo or 'ft2' in topo or 'dualtor' in topo"
How did you verify/test it?
Inspected failed pretest logs from tst-esx-31.
All failed during pretest setup sanity with unused routed ports
left as admin up / oper down.
Applied the fix and sanitized the duts , ran deploy-mg and pret-tests

Any platform specific information?
N/A

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

Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: #26676

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions
github-actions Bot requested review from r12f, sdszhang and wangxin August 25, 2026 12:49
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld
mssonicbld merged commit 23bf256 into sonic-net:202605 Aug 26, 2026
26 checks passed
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