Red Hat Bugzilla – Full Text Bug Listing
|Summary:||libvirt lxc doesn't clean up devpts mounts, "permission denied" subsequently|
|Product:||[Fedora] Fedora||Reporter:||Matt Johnston <matt>|
|Component:||libvirt||Assignee:||Libvirt Maintainers <libvirt-maint>|
|Status:||CLOSED WONTFIX||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Version:||17||CC:||berrange, clalancette, crobinso, dougsland, itamar, jforbes, jyang, laine, libvirt-maint, veillard, virt-maint|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2013-07-11 12:00:27 EDT||Type:||Bug|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Matt Johnston 2012-07-17 01:19:36 EDT
Description of problem: After stopping a lxc guest, devpts remains in use. Subsequent "virsh start" fails with "permission denied" Version-Release number of selected component (if applicable): libvirt-client-0.9.11.4-3.fc17.x86_64 linux 3.4.4-5.fc17.x86_64 How reproducible: Always Steps to Reproduce: 1. host config is as below. guest is a full centos 5.8 root filesystem rsynced from another VM. 2. virsh --connect lxc:/// start ghost5 3. something goes wrong starting the host, I haven't debugged that yet. "virsh console" says it is not running, libvirt_lxc process is not running either. 4. Try running it again "virsh --connect lxc:/// start ghost5" Actual results: error: Failed to start domain ghost5 error: internal error guest failed to start: 2012-07-17 05:10:53.691+0000: 1723: info : libvirt version: 0.9.11.4, package: 3.fc17 (Fedora Project, 2012-06-28-13:50:28, x86-05.phx2.fedoraproject.org) 2012-07-17 05:10:53.691+0000: 1723: error : lxcControllerRun:1504 : Failed to mount devpts on /home/vm/ghost5/fs/root/dev/pts: Permission denied Expected results: The guest runs the same way it ran the first time. Additional info: The only way to avoid the "permission denied" is a reboot of the host, as far as I can tell. Restarting libvirtd doesn't help. Running with <init>/bin/sh</init> works fine multiple times. It fails after having run with "/sbin/init" though. <domain type='lxc'> <name>ghost5</name> <uuid>10d3e111-b9e3-a25b-765d-3966a256f0f4</uuid> <memory unit='KiB'>2000000</memory> <currentMemory unit='KiB'>2000000</currentMemory> <vcpu>4</vcpu> <os> <type arch='x86_64'>exe</type> <init>/sbin/init</init> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/libvirt_lxc</emulator> <filesystem type='mount' accessmode='passthrough'> <source dir='/home/vm/ghost5/fs/root'/> <target dir='/'/> </filesystem> <interface type='bridge'> <mac address='52:54:00:81:5d:57'/> <source bridge='br0'/> </interface> <console type='pty'> <target type='lxc' port='0'/> </console> </devices> <seclabel type='none'/> </domain>
Comment 1 Fedora End Of Life 2013-07-03 19:44:54 EDT
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Comment 2 Cole Robinson 2013-07-11 12:00:27 EDT
Sorry for lack of response, but this is unlikely to be fixed in F17. Later versions of libvirt have seen a ton of lxc improvements, please reopen if you can still reproduce on F19 and we will take a look.