LogrotatePurgeAfterDays is not recognized in days due to the lack of 'd' suffix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Keigo Noha |
Bug Description
Description
===========
Change 641608 introduces tmpwatch into logrotate-crond container. However, LogrotatePurgeA
This triggers an issue that logs are rotated at unintended interval.
Steps to reproduce
==================
1. Deploy overcloud with the current T-H-T.
2. Check /etc/cron.
Expected result
===============
The time value is supplied in days.
~~~
#!/bin/sh
tmpwatch --nodirs \
-X "/var/log/
-X "/var/log/
-X "/var/log/
15 \ <---- HERE
/var/
~~~
Actual result
=============
The time value is supplied in hours.
~~~
#!/bin/sh
tmpwatch --nodirs \
-X "/var/log/
-X "/var/log/
-X "/var/log/
15d \ <---- HERE
/var/
~~~
Changed in tripleo: | |
assignee: | nobody → Keigo Noha (knoha) |
status: | New → In Progress |
It will need to be backported down to Queens, and down to OSP-13
Thank you for spotting this nasty issue.