logrorated is duplicating headers when updating config file

Bug #1969155 reported by Garrett Neugent
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
logrotate-charm
Fix Released
Medium
Mert Kirpici

Bug Description

We see in a focal/ussuri cloud that the charm is prepending headers instead of overwriting the file:

root@<redacted>:/etc/logrotate.d# grep 'Configuration file maintained by Juju' ovn-common |wc -l
3351

Tags: bseng-1039

Related branches

Linda Guo (lihuiguo)
Changed in charm-logrotated:
status: New → Confirmed
importance: Undecided → High
importance: High → Medium
Eric Chen (eric-chen)
tags: added: bseng-1039
Changed in charm-logrotated:
assignee: nobody → Mert Kirpici (mertkirpici)
status: Confirmed → In Progress
Chi Wai CHAN (raychan96)
Changed in charm-logrotated:
status: In Progress → Fix Committed
Chi Wai CHAN (raychan96)
Changed in charm-logrotated:
milestone: none → 23.07
Chi Wai CHAN (raychan96)
Changed in charm-logrotated:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.