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

syslog: T6858: bugfix remote syslog using TCP #4185

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Nov 7, 2024

Change Summary

Commit 042be39 (syslog: T5367: add format option to include timezone in message) added an invalid, outer if-statement when rendering the rsyslog configuration option for TCP.

Remote hosts only got added when the format option "octet-counting" was defined in addition to the TCP protocol. This has been fix and now TCP transport is decoupled from octet-counting mode.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test

set system syslog host 10.5.0.20 facility all level 'all'
set system syslog host 10.5.0.20 port '10513'
set system syslog host 10.5.0.20 protocol 'tcp'

Smoketest result

vyos@vyos:~$ /usr/libexec/vyos/tests/smoke/cli/test_system_syslog.py
test_syslog_basic (__main__.TestRSYSLOGService.test_syslog_basic) ... ok
test_syslog_global (__main__.TestRSYSLOGService.test_syslog_global) ... ok
test_syslog_remote (__main__.TestRSYSLOGService.test_syslog_remote) ... ok

----------------------------------------------------------------------
Ran 3 tests in 13.652s

OK

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

github-actions bot commented Nov 7, 2024

👍
No issues in PR Title / Commit Title

Commit 042be39 ("syslog: T5367: add format option to include timezone in
message") added an invalid, outer if-statement when rendering the rsyslog
configuration option for TCP.

Remote hosts only got added when the format option "octet-counting" was defined
in addition to the TCP protocol. This has been fix and now TCP transport is
decoupled from octet-counting mode.
Copy link

github-actions bot commented Nov 7, 2024

❌ Issues found in unused-imports check. . Please refer the workflow run

Copy link

github-actions bot commented Nov 7, 2024

CI integration ❌ failed!

Details

CI logs

  • CLI Smoketests (no interfaces) ❌ failed
  • CLI Smoketests (interfaces only) 👍 passed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@dmbaturin dmbaturin merged commit ff82bd5 into vyos:current Nov 8, 2024
14 of 17 checks passed
@c-po c-po deleted the syslog-fixup branch November 11, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants