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

[dockers/supervisord]: Don't use deprecated config options #20980

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

bradh352
Copy link
Contributor

@bradh352 bradh352 commented Dec 1, 2024

Why I did it

Supervisord emits warnings due to the use of stdout_logfile=syslog and stderr_logfile=syslog.

Example:

2024 Dec  1 15:31:06.467218 sw2 INFO pmon#supervisord 2024-12-01 15:31:04,033 WARN For [program:xcvrd], stderr_logfile=syslog but this is deprecated and will be removed.  Use stderr_syslog=true to enable syslog instead.
Work item tracking

How I did it

Read the configuration documentation at https://github.com/Supervisor/supervisor/blob/main/docs/configuration.rst

Then replaced with the modern configuration options of stdout_syslog=true and stderr_syslog=true and set the log file itself to NONE so it doesn't generate a file-based log.

How to verify it

Apply patch, observe the warnings go away in syslog.

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

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

Tested branch (Please provide the tested image version)

master as of 20241201

Description for the changelog

[dockers/supervisord]: Don't use deprecated config options

Link to config_db schema for YANG module changes

N/A

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

Signed-off-by: Brad House (@bradh352)

@bradh352 bradh352 requested a review from lguohan as a code owner December 1, 2024 16:13
@bradh352 bradh352 force-pushed the bgp-supervisord-warnings branch 2 times, most recently from 6b73ac2 to d25140f Compare December 1, 2024 18:10
@lguohan
Copy link
Collaborator

lguohan commented Dec 4, 2024

/azpw ms_conflict

@bradh352 bradh352 force-pushed the bgp-supervisord-warnings branch from df36021 to f53be3d Compare December 11, 2024 21:50
@bradh352
Copy link
Contributor Author

rebased to force rebuild to see if general sonic CI tests are working yet

@bradh352
Copy link
Contributor Author

@lguohan any idea what this is blocked on ?

Supervisord emits warnings due to the use of `stdout_logfile=syslog`
and `stderr_logfile=syslog`.  Replace with the modern configuration
options of `stdout_syslog=true` and `stderr_syslog=true` and set
the log file itself to `NONE` so it doesn't generate a file-based
log.

Warnings corrected look like:
```
2024 Dec  1 15:31:06.467218 sw2 INFO pmon#supervisord 2024-12-01 15:31:04,033 WARN For [program:xcvrd], stderr_logfile=syslog but this is deprecated and will be removed.  Use stderr_syslog=true to enable syslog instead.
```

Signed-off-by: Brad House (@bradh352)
@bradh352 bradh352 force-pushed the bgp-supervisord-warnings branch from f53be3d to a862e93 Compare December 15, 2024 19:46
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352
Copy link
Contributor Author

rebased to try to force rebuild since last build hung

@lguohan lguohan merged commit a135a49 into sonic-net:master Dec 16, 2024
21 checks passed
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.

3 participants