[Bug 2072647] Re: [SRU] virtlogd not rotating logs properly

Heitor Alves de Siqueira 2072647 at bugs.launchpad.net
Thu Jul 18 14:57:27 UTC 2024


Thanks for the patch, David!

I think this needs to target Oracular as well, right? I'm adding that to
the bug, and will unsubscribe ~ubuntu-sponsors as devel needs to be
fixed first.

Once you have uploaded a debdiff or MR for Oracular, feel free to re-
subscribe the ~ubuntu-sponsors team.

** Also affects: libvirt (Ubuntu Oracular)
   Importance: Undecided
     Assignee: David Negreira (dnegreira)
       Status: New

** Changed in: libvirt (Ubuntu Noble)
       Status: New => In Progress

** Changed in: libvirt (Ubuntu Oracular)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2072647

Title:
  [SRU] virtlogd not rotating logs properly

Status in libvirt package in Ubuntu:
  In Progress
Status in libvirt source package in Noble:
  In Progress
Status in libvirt source package in Oracular:
  In Progress

Bug description:
  [Impact]

   When one enables max_age_days on /etc/libvirt/virtlogd.conf, for
  example by setting it to max_age_days = 1, the log files are not
  rotated correctly and we see this error on virtlogd:

  [Test Case]

  1) Launch a couple of dummy VMs to ensure that there are some logs in /var/log/libvirt
  2) Edit /etc/libvirt/virtlogd.conf and ensure that the max_age_days setting is uncommented as per the following:
     max_age_days = 1
  3) sudo systemctl restart virtlogd
  4) Wait 24 hours. (There is no way to accelerate the timer unless one edits the source code)
  5) Verify that logs are cleaned up and there are no errors in syslog or virtlogd journal like the following:
     Feb 28 08:58:57 dixie virtlogd[7205]: internal error: Failed to parse rotated index from ''

  [Where problems could occur]

  There could be some issues with virtlogd, but the code path only executes when max_age_days is different than 0.
   In the event of a regression,  one could disable the setting by commenting max_age_days.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2072647/+subscriptions




More information about the Ubuntu-sponsors mailing list