Bug 785431
Summary: | lxc domain log file quickly fills up filesystem | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Robin Green <greenrd> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | berrange, clalancette, crobinso, dougsland, itamar, jforbes, laine, libvirt-maint, veillard, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-05 23:45:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Robin Green
2012-01-28 22:28:00 UTC
The problem seems to be: [root@pavilion lxc]# fuser Rawhide.log Rawhide.log: 17538 [root@pavilion lxc]# cat /proc/17538/cmdline /usr/libexec/libvirt_lxc--nameRawhide--console24--handshake27--background--vethveth1[root@pavilion lxc]# ls -l /proc/17538/fd total 0 lrwx------. 1 root root 64 Jan 28 22:04 0 -> /dev/null l-wx------. 1 root root 64 Jan 28 22:04 1 -> /var/log/libvirt/lxc/Rawhide.log l-wx------. 1 root root 64 Jan 28 22:04 2 -> /var/log/libvirt/lxc/Rawhide.log lrwx------. 1 root root 64 Jan 28 22:04 24 -> /dev/ptmx lrwx------. 1 root root 64 Jan 28 22:04 3 -> socket:[1104196] lrwx------. 1 root root 64 Jan 28 22:04 4 -> socket:[1104999] lrwx------. 1 root root 64 Jan 28 22:04 5 -> socket:[1102982] lrwx------. 1 root root 64 Jan 28 22:04 6 -> anon_inode:[eventpoll] lrwx------. 1 root root 64 Jan 28 22:04 7 -> socket:[1102984] lrwx------. 1 root root 64 Jan 28 22:04 9 -> /mnt/rawhide/dev/pts/ptmx [root@pavilion lxc]# ls /mnt/rawhide/dev/pts/ptmx ls: cannot access /mnt/rawhide/dev/pts/ptmx: No such file or directory [root@pavilion lxc]# ls /mnt/rawhide/dev/pts/ [root@pavilion lxc]# ls /mnt/rawhide/dev/ fd full null ptmx pts random shm stderr stdin stdout tty urandom zero - as you can see, the guest /dev/pts is private, so the host libvirt wouldn't be able to read from it. Or maybe I misunderstand. > - as you can see, the guest /dev/pts is private, so the host libvirt wouldn't
> be able to read from it. Or maybe I misunderstand.
The libvirt_lxc process is doing special things with mounts & namespaces, so that it can read/write to both the host /dev/pts and the container /dev/pts at the same time.
I have seen this bug before, and I think it is fixed upstream, so I'll check if there's something to backport.
Moving in to POST, I know there were a bunch of lxc error reporting fixes that need backport. libvirt-0.9.6.1-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libvirt-0.9.6.1-1.fc16 Package libvirt-0.9.6.1-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-0.9.6.1-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9913/libvirt-0.9.6.1-1.fc16 then log in and leave karma (feedback). libvirt-0.9.6.1-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |