<div class="yui3-editable_text-text" id="yui_3_10_3_1_1502159300224_176" style="background-color: rgba(0, 0, 0, 0);"><pre style="margin: 0em;">Hello all,
</pre><p id="yui_3_10_3_1_1502159300224_1818" style="orphans: 2; widows: 2;"><tt>This is my first mail to this list, so let me introduce myself. My name </tt><tt>is yuanzhi cao, and I work in the oVirt team. Currently We are using libvirt lxc in large-scale and found that libvirt can't destroy container process normally </tt><span style="background-color: rgba(0, 0, 0, 0);">.</span></p><p id="yui_3_10_3_1_1502159300224_1818" style="orphans: 2; widows: 2;"><span style="background-color: rgba(0, 0, 0, 0);">Environments:</span></p><p id="yui_3_10_3_1_1502159300224_1818">
System: zesty<br>
libvirt version: 2.5.0-3ubuntu5<br>
vm rootfs release: ubuntu:16.04</p>
<p id="yui_3_10_3_1_1502159300224_1817">Reproduce:<br>
1. Run command "virsh -c lxc:// start vm" and the release of vm is xenial<br>
2. Run command "pa aux|grep init" ,you would find the pid of init launch by vm.<br>
3. Run command "virsh -c lxc:// destroy vm".<br>
4. Run command "virsh -c lxc:// list --all" and "ps aux|grep init" ,you 
could find that vm is shutoff, but the init process launch by vm is 
still running.</p>
<p>Infact I have found the case of this bug, there is a patch after 1.3.1 that import this bug.</p>
<p>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-----<br>
Commit: dc576025c360a1d<wbr>2c89da410d0f3f0<wbr>da55d0143f [dc57602]<br>
Parents: 511e7c5bba<br>
Author: Daniel P. Berrange <berrange@<wbr>redhat.<wbr>com><br>
Date: 2016年1月23日 GMT+8 上午12:07:18<br>
Commit Date: 2016年1月27日 GMT+8 上午12:11:32<br>
lxc: don't try to hide parent cgroups inside container<br>
-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-------<wbr>-----</p>
<p>Cgroups inside container does't hide parent, so the process of container can change it own cgroup to  another cgroup.<br>
lxc destroy process by read cgroup tasks file,if process change it own cgroup,it can't destroy container process normally.</p></div>