-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 fails to do PHY device cleanup OR graceful deinit during docker restart and config reload. #16608
Labels
Comments
@jaganbal-a Could you share more info on which platform, which branch and build. |
Platform: Multi-ASIC Platform with PHY device: I see this issue with Cisco 88-LC36-FH-MO line card. |
@abdosi f.y.i |
This was referenced Oct 9, 2023
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this issue
Dec 15, 2023
…nic-net#16812) Fix sonic-net#16608. Need to gracefully shutdown syncd/gbsyncd individually.
This was referenced Dec 15, 2023
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this issue
Dec 16, 2023
…nic-net#16812) Fix sonic-net#16608. Need to gracefully shutdown syncd/gbsyncd individually.
jimmyzhai
added a commit
to jimmyzhai/sonic-buildimage
that referenced
this issue
Dec 19, 2023
…nic-net#16812) Fix sonic-net#16608. Need to gracefully shutdown syncd/gbsyncd individually.
11 tasks
yxieca
pushed a commit
that referenced
this issue
Dec 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description:
Gbsyncd fails to do PHY device cleanup OR graceful deinit during docker restart and config reload.
Restarting ‘syncd0’ docker, invokes /usr/bin/syncd_request_shutdown from syncd.sh which gbsyncd0 also receives the request and does the PHY cleanup, Which is incorrect.
Findings:
So how to make syncnd_request_shutdown command to notify only the respective docker syncd process ?
root@sonic:/home/cisco# /usr/bin/docker exec -i syncd0 /usr/bin/syncd_request_shutdown --cold
requested COLD shutdown
Sep 20 16:00:52.631030 sonic NOTICE syncd0#syncd_request_shutdown: :- loadFromFile: no context config specified, will load default context config
Sep 20 16:00:52.631030 sonic NOTICE syncd0#syncd_request_shutdown: :- insert: added switch: idx 0, hwinfo ''
Sep 20 16:00:52.631227 sonic NOTICE syncd0#syncd_request_shutdown: :- send: requested COLD shutdown
Sep 20 16:00:52.631447 sonic NOTICE syncd0#syncd: :- run: is asic queue empty: 1
Sep 20 16:00:52.631447 sonic NOTICE syncd0#syncd: :- run: drained queue
Sep 20 16:00:52.631467 sonic NOTICE gbsyncd0#GBSAI[14]: :- run: is asic queue empty: 1
Sep 20 16:00:52.631499 sonic NOTICE gbsyncd0#GBSAI[14]: :- run: drained queue
Sep 20 16:00:52.631499 sonic NOTICE syncd0#syncd: :- handleRestartQuery: received COLD switch shutdown event
Sep 20 16:00:52.631541 sonic NOTICE gbsyncd0#GBSAI[14]: :- handleRestartQuery: received COLD switch shutdown event
Sep 20 16:00:52.632546 sonic NOTICE gbsyncd0#GBSAI[14]: :- removeAllSwitches: Removing all switches
-->
Description
Steps to reproduce the issue:
Describe the results you received:
With config reload, gbsyncd never receive notification to gracefully deinit the PHY. this is due to shutdownplatform1 is not implemented in gyncd.sh.
Since the gbsyncd docker get terminated ~12 sec before syncd docker, the syncd_shutsown_request issued in syncd docker do not reach gbsyncd as it is already terminated.
syncd docker restart makes the gbsyncd to cleanup PHY .
Describe the results you expected:
gbsyncd should be notified of graceful de-init/shutdown during config reload.
syncd docker restart should only cleanup the device controlled by the docker and do not send notification to gbsyncd.
Output of
show version
:Output of
show techsupport
:The text was updated successfully, but these errors were encountered: