Bug 1363773
Summary: | libvirtd crashed when use virt-install to create a lxc container | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yisun |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | dyuan, mprivozn, pkrempa, rbalakri, xuzhang, yanyang, ydu |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-2.0.0-5.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:51:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
yisun
2016-08-03 14:05:15 UTC
Caused by commit: commit c066f9eed3ce6f43bfc79b3e789b2ff98bfe05e5 Author: Katerina Koukiou <k.koukiou> AuthorDate: Tue May 17 00:36:48 2016 +0300 Commit: Michal Privoznik <mprivozn> CommitDate: Thu May 19 18:42:08 2016 +0200 lxc: use job functions in lxcDomain{CreateXMLWithFiles, CreateWithFiles} Creating a large domain could potentially be time consuming. Use the recently added job functions and unlock the virDomainObj while the create operation is in progress. Signed-off-by: Katerina Koukiou <k.koukiou> virLXCDomainObjEndJob unconditionally dereferences the VM object and lxcDomainCreateXMLWithFiles has a code path that sets the vm object to NULL and then jumps to the 'endjob' label. *** This bug has been marked as a duplicate of bug 1351057 *** (In reply to Michal Privoznik from comment #2) > > *** This bug has been marked as a duplicate of bug 1351057 *** Hi Michal, bug 1351057 is on_qa and fixed in version libvirt-2.0.0-4.el7, but libvirtd still crashed with virt-install. And that's why I open this bug. Pls help to confirm if it's should be set to "duplicate" (In reply to yisun from comment #3) > (In reply to Michal Privoznik from comment #2) > > > > *** This bug has been marked as a duplicate of bug 1351057 *** > > Hi Michal, > bug 1351057 is on_qa and fixed in version libvirt-2.0.0-4.el7, but libvirtd > still crashed with virt-install. > And that's why I open this bug. Pls help to confirm if it's should be set to > "duplicate" mark as need info (In reply to yisun from comment #4) > (In reply to yisun from comment #3) > > (In reply to Michal Privoznik from comment #2) > > > > > > *** This bug has been marked as a duplicate of bug 1351057 *** > > > > Hi Michal, > > bug 1351057 is on_qa and fixed in version libvirt-2.0.0-4.el7, but libvirtd > > still crashed with virt-install. > > And that's why I open this bug. Pls help to confirm if it's should be set to > > "duplicate" > > mark as need info Ah, you're right. This is not a duplicate, sorry. Patch proposed here: https://www.redhat.com/archives/libvir-list/2016-August/msg00256.html Moving to POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2016-August/msg00612.html Verified on libvirt-2.0.0-5.el7 Crash not happened again, but virt-install still failed with selinux issue. So close this bug and open a new bug 1366485 steps: 1. virt-install a lxc container failed when setenforce 1 # setenforce 1 # virt-install --connect lxc:/// --name avocado-vt-vm1 --ram 500 --noautoconsole WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. Starting install... ERROR internal error: guest failed to start: Failure in libvirt_lxc startup: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect lxc:/// start avocado-vt-vm1 otherwise, please restart your installation. 2. virt-install a lxc container succeeded when setenforce 0 # setenforce 0 # virt-install --connect lxc:/// --name avocado-vt-vm1 --ram 500 --noautoconsole WARNING No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. Starting install... Creating domain... | 0 B 00:00:00 Domain creation completed. During above steps, no crash happened. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2577.html |