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

Mgmt EOF disconnect error log msg #21936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudhanshukumar22
Copy link
Contributor

@sudhanshukumar22 sudhanshukumar22 commented Mar 5, 2025

Why I did it

mgmtd: Change log level to INFO for EOF disconnect error, which can also happen in a valid scenario
Description: This error happens when we try to write to a socket or pipe
which is already closed by peer. For e.g., the other side may have been
killed during warmboot or using pkill. Hence, changing the log level to INFO.

Note: I have avoided changing bgp.sh script because the error could be seen in other scenarios also(apart from warmboot/fast boot, for e.g., if we just kill zebra, we will see this log).

Signed-off-by: sudhanshukumar22 ([email protected])

Work item tracking
  • Microsoft ADO (number only):

How I did it

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

2025 Mar 5 10:22:59.234007 sonic INFO bgp#mgmtd[33]: [GR5PJ-Q2R72] BE-adapter: mgmt_msg_read: got EOF/disconnect
2025 Mar 5 10:22:59.234845 sonic INFO bgp#supervisord 2025-03-05 10:22:59,234 WARN exited: zebra (terminated by SIGKILL; not expected)
2025 Mar 5 10:22:59.235034 sonic INFO bgp#supervisord: fpmsyncd Connection lost, reconnecting...
2025 Mar 5 10:22:59.235078 sonic INFO bgp#supervisord: fpmsyncd Waiting for fpm-client connection...
2025 Mar 5 10:22:59.239697 sonic INFO bgp#supervisor-proc-exit-listener: Process 'zebra' exited unexpectedly. Terminating supervisor 'bgp'
2025 Mar 5 10:22:59.239987 sonic NOTICE bgp#supervisor-proc-exit-listener: :- publish: EVENT_PUBLISHED: {"sonic-events-host:process-exited-unexpectedly":{"ctr_name":"bgp","process_name":"zebra","timestamp":"2025-03-05T10:22:59.239786Z"}}
2025 Mar 5 10:22:59.241330 sonic INFO bgp#supervisord 2025-03-05 10:22:59,241 WARN received SIGTERM indicating exit request
2025 Mar 5 10:22:59.241770 sonic INFO bgp#supervisord 2025-03-05 10:22:59,241 INFO waiting for supervisor-proc-exit-listener, rsyslogd, mgmtd, staticd, bgpd, bgpcfgd, bgpmon, fpmsyncd, staticroutebfd to die
2025 Mar 5 10:23:00.244898 sonic INFO bgp#supervisord 2025-03-05 10:23:00,244 INFO stopped: staticroutebfd (exit status 0)
2025 Mar 5 10:23:00.246125 sonic INFO bgp#supervisord 2025-03-05 10:23:00,245 WARN stopped: fpmsyncd (terminated by SIGTERM)
2025 Mar 5 10:23:00.247716 sonic INFO bgp#supervisord 2025-03-05 10:23:00,247 WARN stopped: bgpmon (terminated by SIGTERM)
2025 Mar 5 10:23:02.251113 sonic INFO bgp#supervisord 2025-03-05 10:23:02,250 INFO waiting for supervisor-proc-exit-listener, rsyslogd, mgmtd, staticd, bgpd, bgpcfgd to die
2025 Mar 5 10:23:05.255125 sonic INFO bgp#supervisord 2025-03-05 10:23:05,254 INFO waiting for supervisor-proc-exit-listener, rsyslogd, mgmtd, staticd, bgpd, bgpcfgd to die
2025 Mar 5 10:23:08.258691 sonic INFO bgp#supervisord 2025-03-05 10:23:08,258 INFO waiting for supervisor-proc-exit-listener, rsyslogd, mgmtd, staticd, bgpd, bgpcfgd to die
2025 Mar 5 10:23:10.261208 sonic INFO bgp#supervisord 2025-03-05 10:23:10,260 WARN killing 'bgpcfgd' (50) with SIGKILL
2025 Mar 5 10:23:10.264011 sonic INFO bgp#supervisord 2025-03-05 10:23:10,263 WARN stopped: bgpcfgd (terminated by SIGKILL)
2025 Mar 5 10:23:10.266753 sonic INFO bgp#supervisord 2025-03-05 10:23:10,266 WARN stopped: bgpd (terminated by SIGKILL)
2025 Mar 5 10:23:11.268288 sonic INFO bgp#supervisord 2025-03-05 10:23:11,267 INFO waiting for supervisor-proc-exit-listener, rsys

Link to config_db schema for YANG module changes

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

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@sudhanshukumar22 sudhanshukumar22 force-pushed the mgmt_eof_disconnect_error branch from d52a71e to 1be0ec4 Compare March 5, 2025 09:48
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sudhanshukumar22 sudhanshukumar22 force-pushed the mgmt_eof_disconnect_error branch 2 times, most recently from 13f5423 to b065ef5 Compare March 5, 2025 09:52
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

 which is already closed by peer.  For e.g., the other side may have been
 killed during warmboot or using pkill. Hence, changing the log level to INFO
@sudhanshukumar22 sudhanshukumar22 force-pushed the mgmt_eof_disconnect_error branch from b065ef5 to 9118e2c Compare March 5, 2025 11:04
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants