Skip to content

[Arista] Remove duplicate logrotate configuration for arista.log#9731

Merged
sujinmkang merged 1 commit intosonic-net:masterfrom
Staphylo:master-logrotate
Mar 11, 2022
Merged

[Arista] Remove duplicate logrotate configuration for arista.log#9731
sujinmkang merged 1 commit intosonic-net:masterfrom
Staphylo:master-logrotate

Conversation

@Staphylo
Copy link
Collaborator

Why I did it

In parallel of this change Arista added a custom logrotate configuration as part of its driver library.
Having 2 logrotate configuration for the same log file triggers an issue.

Fixes aristanetworks/sonic#38

How I did it

Arista merged a few changes in sonic-buildimage which added a logrotate configuration aristanetworks/sonic@e43c797
It is therefore the right path to remove the arista.log line from the logrotate.d/rsyslog configuration.

How to verify it

Logrotate works without any error message, arista log rotation happens and arista daemons still append logs once file was truncated.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Issue also present on 202111

Description for the changelog

Remove duplicate arista.log logrotate from logrotate.d/rsyslog

@Staphylo Staphylo requested a review from lguohan as a code owner January 11, 2022 14:03
arlakshm
arlakshm previously approved these changes Jan 11, 2022
Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bratashX
Copy link
Contributor

bratashX commented Mar 8, 2022

@lguohan, please review and merge

@sujinmkang sujinmkang merged commit 8d419ca into sonic-net:master Mar 11, 2022
@bratashX
Copy link
Contributor

@lguohan @sujinmkang please cherry-pick into 202111 branch

qiluo-msft pushed a commit that referenced this pull request Apr 28, 2022
Why I did it
In parallel of this change Arista added a custom logrotate configuration as part of its driver library.
Having 2 logrotate configuration for the same log file triggers an issue.

Fixes aristanetworks/sonic#38

How I did it
Arista merged a few changes in sonic-buildimage which added a logrotate configuration aristanetworks/sonic@e43c797
It is therefore the right path to remove the arista.log line from the logrotate.d/rsyslog configuration.

How to verify it
Logrotate works without any error message, arista log rotation happens and arista daemons still append logs once file was truncated.
bratashX pushed a commit to bratashX/sonic-buildimage that referenced this pull request Jun 6, 2022
…9731)

Why I did it
In parallel of this change Arista added a custom logrotate configuration as part of its driver library.
Having 2 logrotate configuration for the same log file triggers an issue.

Fixes aristanetworks/sonic#38

How I did it
Arista merged a few changes in sonic-buildimage which added a logrotate configuration aristanetworks/sonic@e43c797
It is therefore the right path to remove the arista.log line from the logrotate.d/rsyslog configuration.

How to verify it
Logrotate works without any error message, arista log rotation happens and arista daemons still append logs once file was truncated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logrotate -f failing due to duplicating arista configuration in logrotate.d

7 participants