Skip to content

gbsyncd: use RESTORE REPLACE when cloning FEATURE entries#27317

Open
anamehra wants to merge 3 commits into
sonic-net:masterfrom
anamehra:anamehra/gbsyncd_restore
Open

gbsyncd: use RESTORE REPLACE when cloning FEATURE entries#27317
anamehra wants to merge 3 commits into
sonic-net:masterfrom
anamehra:anamehra/gbsyncd_restore

Conversation

@anamehra
Copy link
Copy Markdown
Contributor

Signed-off-by: Anand Mehra (anamehra) anamehra@cisco.com

Why I did it

Fixes: #26670

gbsyncd seeds FEATURE and SYSLOG_CONFIG_FEATURE rows for gbsyncd by cloning
the syncd entries through Redis DUMP/RESTORE.
RESTORE without REPLACE fails when destination key exists. In current runtime, featured and gbsyncd can touch the same feature keys during bootstrap, causing intermittent BUSYKEY failures and incomplete seeding.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Use RESTORE with REPLACE so initialization succeeds even when destination keys
already exist (for example when featured updates the same keys first). This
removes bootstrap failures caused by BUSYKEY races while preserving current
design intent: gbsyncd starts with syncd-equivalent config.

How to verify it

Bringup sonic-mgmt T2 configuration with deploy-mg.

Which release branch to backport (provide reason below if selected)

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@anamehra anamehra requested a review from lguohan as a code owner May 12, 2026 04:09
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: anamehra <anamehra@cisco.com>
@anamehra anamehra force-pushed the anamehra/gbsyncd_restore branch from 90534ec to 1d8cb2a Compare May 12, 2026 04:12
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

This PR has backport request for branch(es): 202511.
Added label(s) for branch(es) 202511.

---Powered by SONiC BuildBot

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

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.

Bug: config load_minigraph will result in missing gbsyncd fields

2 participants