libvirtd is leaking file descriptors to /var/log/libvirt/qemu/<vmid>.log

Bug #438815 reported by Daniel Nurmi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Invalid
Medium
Dustin Kirkland 
libvirt (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

It looks like the libvirtd daemon is leaking file descriptors to the logfile that it sets up for each VM. I've attached a typescript showing the symptom (start vm, inspect lsof, stop vm, inspect lsof, start vm, inspect lsof, stop vm, inspect lsof), note that the descriptors referring to the VM logfiles are never closed. After a thousand or so VMs, the daemon stops accepting new VM creation events until libvirtd is restarted.

Tags: eucalyptus

Related branches

Revision history for this message
Daniel Nurmi (nurmi) wrote :
tags: added: eucalyptus
Changed in libvirt (Ubuntu):
importance: Undecided → Medium
Changed in eucalyptus (Ubuntu):
importance: Undecided → Medium
Chuck Short (zulcss)
Changed in libvirt (Ubuntu):
status: New → Triaged
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I think I found a fix in upstream git:

commit 32456779a1e93854631cc8da930c077d04b56660
Author: Ryota Ozaki <email address hidden>
Date: Thu Sep 10 11:34:14 2009 +0200

    Close logfile fd after spawning qemu

    * src/qemu_driver.c: avoid a leak of file descriptor when exec'ing qemu

Changed in libvirt (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Dustin Kirkland (kirkland)
Changed in eucalyptus (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
status: New → In Progress
Changed in eucalyptus (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.7.0-1ubuntu10

---------------
libvirt (0.7.0-1ubuntu10) karmic; urgency=low

  * debian/patches/0005-Close-logfile-fd-after-spawning-qemu.patch: fix
    egregious file descriptor leak with cherry-pick from upstream git,
    LP: #438815

 -- Dustin Kirkland <email address hidden> Tue, 06 Oct 2009 18:57:22 -0500

Changed in libvirt (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.