aristanetworks / sonic

Open source drivers and initialization library for Arista platforms running SONiC
GNU General Public License v2.0
22 stars 30 forks source link

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

Closed OleksandrKozodoi closed 2 years ago

OleksandrKozodoi commented 2 years ago

There is failure in Arista devices when run test_pfcwd_timer_accuracy. Changes from e43c797 commit caused conflict with changes from a685fe1 commit of sonic-buildimage repo. This affects the correct work of logrotate utility on Arista devices and trying to execute command logrotate -f /etc/logrotate.conf returns error

$ sudo logrotate -f /etc/logrotate.conf
error: rsyslog:16 duplicate log entry for /var/log/arista.log
error: found error in file rsyslog, skipping

Platform info:

Platform: x86_64-arista_7170_64c
HwSKU: Arista-7170-64C
ASIC: barefoot
Staphylo commented 2 years ago

Thanks for bringing this issue to our attention. Because our driver repo now implements its own logrotate configuration we will favor it and revert the change made by https://github.com/Azure/sonic-buildimage/commit/a685fe17650e5f8857902865943f9034d03dcf92

OleksandrKozodoi commented 2 years ago

@Staphylo It makes sense. Thank you for responding so quickly!

Staphylo commented 2 years ago

Closing this issue as the fix made its way to sonic-buildimage.