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

fix: resolve duplicate rsyslog entries for Azure Linux #4588

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

henryli001
Copy link
Contributor

@henryli001 henryli001 commented Jul 3, 2024

What type of PR is this?

What this PR does / why we need it:

This PR aims to fix the issue of duplicate entries in /var/log/messages file in Azure Linux AKS.

  • The default rsyslog configuration file (/etc/rsyslog.conf) in Azure Linux contains the following setting:
    *.*,auth,authpriv,mail,cron.none -/var/log/messages

  • The 60-CIS.conf file provided by AgentBaker contains the following setting:
    *.*;mail.none;news.none -/var/log/messages

The duplicate specification of *.* is the reason why logs are written twice into /var/log/messages. The default setting in Azure Linux cannot be modified as that will affect the standard Azure Linux images and thus this PR makes the fix in the AgentBaker repo to not apply *.* twice for Azure Linux AKS container host.

Bug link: https://microsoft.visualstudio.com/OS/_workitems/edit/50154304/

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@coveralls
Copy link

coveralls commented Jul 3, 2024

Pull Request Test Coverage Report for Build 9784181482

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.486%

Totals Coverage Status
Change from base Build 9783805229: 0.0%
Covered Lines: 2627
Relevant Lines: 3727

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 3, 2024

Pull Request Test Coverage Report for Build 9784192610

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.486%

Totals Coverage Status
Change from base Build 9783805229: 0.0%
Covered Lines: 2627
Relevant Lines: 3727

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 4, 2024

Pull Request Test Coverage Report for Build 9786964606

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.486%

Totals Coverage Status
Change from base Build 9783805229: 0.0%
Covered Lines: 2627
Relevant Lines: 3727

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 5, 2024

Pull Request Test Coverage Report for Build 9811824468

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.486%

Totals Coverage Status
Change from base Build 9810915486: 0.0%
Covered Lines: 2627
Relevant Lines: 3727

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jul 5, 2024

Pull Request Test Coverage Report for Build 9813113656

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.486%

Totals Coverage Status
Change from base Build 9811870560: 0.0%
Covered Lines: 2627
Relevant Lines: 3727

💛 - Coveralls

@cameronmeissner
Copy link
Collaborator

lgtm pending green abe2e run

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9879732586

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 70.926%

Totals Coverage Status
Change from base Build 9879534347: 0.0%
Covered Lines: 2559
Relevant Lines: 3608

💛 - Coveralls

@henryli001
Copy link
Contributor Author

@cameronmeissner all checks including AgentBaker E2E has passed.

@henryli001 henryli001 merged commit 72f69b8 into master Jul 10, 2024
18 checks passed
@henryli001 henryli001 deleted the lihl/fix-duplicate-syslog branch July 10, 2024 21:47
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.

None yet

4 participants