| Summary: | Add workaround for systemd failing to remove cgroups on VM shutdown | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Daniel Berrangé <berrange> |
| Component: | libvirt | Assignee: | Daniel Berrangé <berrange> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | acathrow, ajia, berrange, dallan, dyuan, lcui, lsu, svenkatr |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-1.1.1-9.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 09:31:56 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: | |
|
Description
Daniel Berrangé
2013-10-14 10:17:50 UTC
Hi Daniel , I still can't meet the error after downgrade the libvirt , systemd , kernel to previous version. libvirt-1.1.1-8.el7.x86_64 kernel-3.10.0-0.rc7.64.el7.x86_64 systemd-206-1.el7.x86_64 With the command , run 30 minutes # while true ; do virsh -c lxc:/// start test ; virsh -c lxc:/// destroy test ; done Does any other packages related to this issue else ? Or is there an effective way to reproduce the cgroup error with libvirt? Thanks . (In reply to time.su from comment #3) > Hi Daniel , > > I still can't meet the error after downgrade the libvirt , systemd , kernel > to previous version. > > libvirt-1.1.1-8.el7.x86_64 > kernel-3.10.0-0.rc7.64.el7.x86_64 > systemd-206-1.el7.x86_64 > > With the command , run 30 minutes > # while true ; do virsh -c lxc:/// start test ; virsh -c lxc:/// destroy > test ; done > > > Does any other packages related to this issue else ? > Or is there an effective way to reproduce the cgroup error with libvirt? > Thanks . It turns out that the key thing is that you want to have systemd itself running inside the container. The best way to get this setup is to use libvirt-sandbox eg virt-sandbox-service create -u httpd.service myapache and then do your 'while true' loop using the 'myapache' guest. Thanks your kindly help , Daniel. Verify this bug with libvirt-1.1.1-16.el7.x86_64 Steps: #virt-sandbox-service create -u httpd.service myapache #while true ; do virsh -c lxc:/// start myapache ; virsh -c lxc:/// destroy myapache ; done Expected:the container can be started and destroyed successfully In libvirt-1.1.1-8.el7.x86_64 The steps will cause 1.systemd crashed and generate core dump by abrtd 2.Libvirtd shows Assertion 'n_pids > 0' failed at src/shared/cgroup-show.c:47, function show_pid_array(). Aborting. Aborted (core dumped) 3.The container fail to start again due systemd has gone away. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |