logrotation of /var/log/libvirt/qemu is misconfigured for clouds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Triaged
|
High
|
Unassigned | ||
nova-compute (Juju Charms Collection) |
Invalid
|
High
|
Unassigned |
Bug Description
By default libvirt stores a per instance log file in
/var/log/
It also ships with a logrotate.d file to rotate these but that file
specifies 'minsize 100k' which the vast majority of instances in the
vast majority of OpenStack workloads will never get near (e.g. none of
ours are >> 8k) IMO.
The end result of this (for us at leasat) is that these log files grow
without bound. One of our internal OpenStack clusters has well over a
million of them across only a relatively small number of compute
nodes.
I think the nova-compute charm or package should override (or
supplement) the libvirt logrotate configuration with something that
rotates these files out based solely on age and regardless of size.
Changed in nova-compute (Juju Charms Collection): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 15.07 |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | 15.07 → 15.10 |
tags: | added: openstack |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | 15.10 → 16.04 |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | 16.04 → 16.07 |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | 16.07 → 16.10 |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | 16.10 → 17.01 |
Changed in charm-nova-compute: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in nova-compute (Juju Charms Collection): | |
status: | Triaged → Invalid |
Changed in charm-nova-compute: | |
milestone: | none → 19.04 |
Changed in charm-nova-compute: | |
milestone: | 19.04 → 19.07 |
Changed in charm-nova-compute: | |
milestone: | 19.07 → 19.10 |
Changed in charm-nova-compute: | |
milestone: | 19.10 → 20.01 |
Changed in charm-nova-compute: | |
milestone: | 20.01 → 20.05 |
Changed in charm-nova-compute: | |
milestone: | 20.05 → 20.08 |
Changed in charm-nova-compute: | |
milestone: | 20.08 → none |
The 'minsize 100k' setting may not be the only problem.
I suspect that even when rotated, empty log files of deleted instances would stay behind forever (as they would be rotated forever and are not distinguishable from files of still existing instances that just don't write anything. And 'notifempty' doesn't help as then they would never be deleted as things like 'maxage' are only applied when the files are rotated).
Another issue may be the distinction of deleted instances from shutdown instances. I guess logrotate can't tell these apart, while you probably want to keep the latter and get rid of the former.