Skip to content

Comments

configlet/test_add_rack.py Add comparison ignore for extra entries added by generic patcher#21143

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
justin-wong-ce:configlet
Jan 29, 2026
Merged

configlet/test_add_rack.py Add comparison ignore for extra entries added by generic patcher#21143
StormLiangMS merged 1 commit intosonic-net:masterfrom
justin-wong-ce:configlet

Conversation

@justin-wong-ce
Copy link
Contributor

Description of PR

Summary:
When patching the DUT to remove t0 peers, the test fails the DB comparison due to extra entries being added to APP_DB.

These entries only get added when generic patcher in SONiC (config apply-patch) is used to remove t0 from the DUT.

Ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

Fixes # (issue)

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
  • msft_202412
  • 202505

Approach

What is the motivation for this PR?

configlet/test_add_rack.py is failing.

How did you do it?

Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?

Test no longer fails

Any platform specific information?

Broadcom platform is used for testing.

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS
Copy link
Collaborator

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS
Copy link
Collaborator

@vaibhavhd could you help to take a look?

@r12f
Copy link
Contributor

r12f commented Dec 11, 2025

hi @prgeor do you mind to help check this issue and confirm the PR change? https://github.com/aristanetworks/sonic-qual.msft/issues/895

all extra fields should be optics related in my understanding.

Copy link
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit fe7318a into sonic-net:master Jan 29, 2026
23 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 29, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #22162

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#977

ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
vmittal-msft pushed a commit that referenced this pull request Feb 3, 2026
) (#22162)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Co-authored-by: Justin Wong <51811017+justin-wong-ce@users.noreply.github.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.
Anirudh-nokia pushed a commit to Anirudh-nokia/sonic-mgmt-fork that referenced this pull request Feb 6, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: ayya <anirudh.ayya@nokia.com>
@justin-wong-ce
Copy link
Contributor Author

Still needs a cherrypick to msft-202503 and 202505

lakshmi-nexthop pushed a commit to lakshmi-nexthop/sonic-mgmt that referenced this pull request Feb 11, 2026
…ic-net#21143) (sonic-net#22162)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Co-authored-by: Justin Wong <51811017+justin-wong-ce@users.noreply.github.com>
Signed-off-by: Lakshmi Yarramaneni <lakshmi@nexthop.ai>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Feb 13, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202503: Azure/sonic-mgmt.msft#1028

anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Feb 20, 2026
…ic-net#21143)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

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

Cherry-pick PR to 202505: #22492

mssonicbld pushed a commit that referenced this pull request Feb 20, 2026
)

What is the motivation for this PR?
configlet/test_add_rack.py is failing.

How did you do it?
Adding extra entries to ignore. These entries seems to be harmless and not used. However it is not understood why it is being added by config apply-patch.

Again, ideally this should be fixed in config apply-patch code. This PR is a workaround for the issue since the extra entries are harmless and does not get used.

How did you verify/test it?
Test no longer fails

Any platform specific information?
Broadcom platform is used for testing.

Signed-off-by: mssonicbld <sonicbld@microsoft.com>
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.

8 participants