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

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

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

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 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 ?

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