Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gbsyncd] Graceful shutdown of syncd process in container gbsyncd #16812

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

jimmyzhai
Copy link
Contributor

@jimmyzhai jimmyzhai commented Oct 9, 2023

Why I did it

Fix #16608. Need to gracefully shutdown syncd/gbsyncd individually.

Work item tracking
  • Microsoft ADO : 26151608

How I did it

Update hook stopplatform1 in gbsyncd.sh.

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

lguohan
lguohan previously approved these changes Oct 27, 2023
@jimmyzhai
Copy link
Contributor Author

/azpw ms_conflict

1 similar comment
@xumia
Copy link
Collaborator

xumia commented Nov 23, 2023

/azpw ms_conflict

@lguohan lguohan merged commit 048f2a7 into sonic-net:master Dec 7, 2023
18 checks passed
@jimmyzhai jimmyzhai deleted the gbsyncd branch December 13, 2023 06:16
lguohan pushed a commit that referenced this pull request Dec 14, 2023
…7486)

The issue is related to #16812. Process syncd does not run in the container gbsyncd on kvm sonic with default hwsku.

Microsoft ADO : 26151608

How I did it
If syncd has not run in container gbsyncd, it is not needed to trigger graceful shudown of syncd.

How to verify it
None of syncd_request_shutdown coredump in config reload on KVM sonic
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 15, 2023
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #17523

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #17531

@gechiang
Copy link
Collaborator

@jimmyzhai , is this fix not needed by 202205? should we backport this for 202205?

jimmyzhai added a commit to jimmyzhai/sonic-buildimage that referenced this pull request Dec 19, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 19, 2023
…nic-net#17486)

The issue is related to sonic-net#16812. Process syncd does not run in the container gbsyncd on kvm sonic with default hwsku.

Microsoft ADO : 26151608

How I did it
If syncd has not run in container gbsyncd, it is not needed to trigger graceful shudown of syncd.

How to verify it
None of syncd_request_shutdown coredump in config reload on KVM sonic
@jimmyzhai
Copy link
Contributor Author

@jimmyzhai , is this fix not needed by 202205? should we backport this for 202205?

Looks 202205 is old and gearbox is not used in production on that.

yxieca pushed a commit that referenced this pull request Dec 20, 2023
…6812) (#17563)

Fix #16608. Need to gracefully shutdown syncd/gbsyncd individually.
@yxieca
Copy link
Contributor

yxieca commented Dec 20, 2023

@jimmyzhai do we still need this change in 202311 or have it been included with your manual cherry-picking PR?

@jimmyzhai
Copy link
Contributor Author

@jimmyzhai do we still need this change in 202311 or have it been included with your manual cherry-picking PR?

Included in 202311 with manual cherry-picking #17563

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.

gbsyncd fails to do PHY device cleanup OR graceful deinit during docker restart and config reload.
7 participants