/etc/logrotate.d/fuel.nodaily is not using dateext directive, /etc/logrotate.conf is not using dateformat, which leads to broken log rotation, and filled up disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Rodion Tikunov | ||
6.1.x |
In Progress
|
High
|
Oleksiy Molchanov | ||
7.0.x |
In Progress
|
High
|
Oleksiy Molchanov | ||
8.0.x |
In Progress
|
High
|
Oleksiy Molchanov | ||
Mitaka |
Fix Released
|
High
|
Oleksiy Molchanov | ||
Newton |
Fix Released
|
High
|
Oleksiy Molchanov |
Bug Description
In /etc/logrotate.
# logrotate allows to use only year, month, day and unix epoch
dateformat -%Y%m%d-%s
But dateext directive from /etc/logrotate.conf is not inherited.
So dateformat doesn't work.
Because of this we still see on customer's installations errors like these:
error: error creating output file /var/log/
error: error creating output file /var/log/
To avoid it we MUST HAVE both deteext and dateformat /etc/logrotate.
# logrotate allows to use only year, month, day and unix epoch
dateext
dateformat -%Y%m%d-%s
All versions 6.1-9.0 are affected.
summary: |
- Fuel logrotate configuration is not using date suffix + fuel.nodaily logrotate configuration is not using date suffix |
summary: |
- fuel.nodaily logrotate configuration is not using date suffix + fuel.nodaily logrotate configuration is not using date suffix, which + leads to broken log rotation, and filled up disk |
description: | updated |
summary: |
- fuel.nodaily logrotate configuration is not using date suffix, which - leads to broken log rotation, and filled up disk + /etc/logrotate.d/fuel.nodaily is not using dateext directive, + /etc/logrotate.conf is not using dateformat, which leads to broken log + rotation, and filled up disk |
Changed in fuel: | |
status: | In Progress → Confirmed |
status: | Confirmed → In Progress |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Rodion Tikunov (rtikunov) |
Changed in fuel: | |
assignee: | Rodion Tikunov (rtikunov) → Oleksiy Molchanov (omolchanov) |
Changed in fuel: | |
assignee: | Oleksiy Molchanov (omolchanov) → Sergii Golovatiuk (sgolovatiuk) |
tags: | added: on-verification |
Changed in fuel: | |
status: | Fix Committed → Confirmed |
assignee: | Richard Berwald (rberwald) → Oleksiy Molchanov (omolchanov) |
tags: | added: on-verification |
tags: | added: on-verification |
the errors like: remote/ 10.189. 168.19/ CRON.log. 1: File exists
>error: error creating output file /var/log/
appears only from the previously failed run for example on the lack of free disk space for example.