Bug 1972556 - /var/log/libvirt/qemu/*.log is never rotated
Summary: /var/log/libvirt/qemu/*.log is never rotated
Keywords:
Status: CLOSED DUPLICATE of bug 2022736
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Bogdan Dobrelya
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-16 07:47 UTC by Takashi Kajinami
Modified: 2021-11-29 17:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-29 17:07:42 UTC
Target Upstream Version: Train
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1932128 0 None None None 2021-06-16 13:25:18 UTC
OpenStack gerrit 810170 0 None NEW Fix libvirt/qemu logs location 2021-09-21 12:08:24 UTC
Red Hat Issue Tracker OSP-5229 0 None None None 2021-11-29 17:09:01 UTC

Description Takashi Kajinami 2021-06-16 07:47:44 UTC
Description of problem:

In RHOSP16.1, libvirt-daemon-driver-qemu is not installed in overcloud image.
Because of that /etc/logrotate.d/libvirtd is not created in overcloud nodes and logs under /var/log/libvirt/qemu are never rotated.
This means that the file can grow for example when many stop/start operation is executed.

In addition, the file is never purged even after the instance is deleted. Because nova assigns a different id for each instances
this would result in huge number of log files left.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Deploy overcloud
2. Create and delete some instances
3. Check /var/log/libvirt/qemu/ after several days

Actual results:
The log files are not rotated and left


Expected results:
The log files are rotated and delete dafter a while

Additional info:

Comment 1 Bogdan Dobrelya 2021-09-21 12:15:23 UTC
There is also https://bugzilla.redhat.com/show_bug.cgi?id=2005340 that can be fixed with the same linked patch

Comment 2 Bogdan Dobrelya 2021-11-29 17:07:42 UTC

*** This bug has been marked as a duplicate of bug 2022736 ***


Note You need to log in before you can comment on or make changes to this bug.