Skip to content

Conversation

@xixuej
Copy link
Contributor

@xixuej xixuej commented Dec 4, 2025

Description of PR

Summary: Add hostname to syslog logging configuration in pfc_gen.py

sonic-net/sonic-buildimage#24394 changed
the rsyslog configuration in new image which requires hostname to be
included when writing syslog, otherwise the message will
be silently ignored

Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

Fix the issue that fanout switch unable to write syslog on dut in pfc_gen.py

How did you do it?

add hostname in the syslogger in pfc_gen.py

How did you verify/test it?

run test on physical setups

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

sonic-net/sonic-buildimage#24394 changed
the rsyslog configuration in new image which requires hostname to be
included when writing syslog, otherwise the message will
be silently ignored
@xixuej xixuej requested review from wangxin and yxieca as code owners December 4, 2025 02:15
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nhe-NV
Copy link
Contributor

nhe-NV commented Dec 8, 2025

@xixuej when the fanout is onxy, we also have problem, need to fix it in the same PR.

@xixuej
Copy link
Contributor Author

xixuej commented Dec 8, 2025

The failure with onyx fanout is caused due to stale pfc_gen.py script prebuilt in storm container on onyx fanout. We need to update storm container with latest pfc_gen.py. @nhe-NV

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