Bug 773212

Summary: [LXC] resume operation will destroy a guest sometimes
Product: Red Hat Enterprise Linux 6 Reporter: Alex Jia <ajia>
Component: libvirtAssignee: Gunannan Ren <gren>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: acathrow, dallan, dyuan, mzhan, rwu
Target Milestone: rc   
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-05-08 04:58:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
testing_script none

Description Alex Jia 2012-01-11 09:31:37 UTC
Description of problem:
Resume operation will destroy a guest sometimes.

Version-Release number of selected component (if applicable):
# rpm -q libvirt
libvirt-0.9.9-1.el6.x86_64

How reproducible:
it's not 100% reproducible.

Steps to Reproduce:

# virsh -c lxc:/// dumpxml toy
<domain type='lxc'>
  <name>toy</name>
  <uuid>d1f4798b-bebf-d93c-1d97-fe1c1cb7c780</uuid>
  <memory>500000</memory>
  <currentMemory>500000</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>exe</type>
    <init>/bin/sh</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>
    <interface type='network'>
      <mac address='52:54:00:25:bf:e9'/>
      <source network='default'/>
    </interface>
    <console type='pty'>
      <target type='lxc' port='0'/>
    </console>
  </devices>
</domain>

# virsh -c lxc:/// list
 Id Name                 State
----------------------------------
9591 toy                  running

# virsh -c lxc:/// suspend toy
Domain toy suspended

# virsh -c lxc:/// list
 Id Name                 State
----------------------------------
9591 toy                  paused

# virsh -c lxc:/// resume toy
Domain toy resumed

# virsh -c lxc:/// list --all
 Id Name                 State
----------------------------------
  - toy                  shut off
  
Actual results:
the guest 'toy' hasn't recovered original 'running' state.

Expected results:
should recover original 'running' state

Additional info:

Comment 1 Gunannan Ren 2012-02-28 16:01:19 UTC
Created attachment 566330 [details]
testing_script

Comment 2 Gunannan Ren 2012-02-28 16:05:54 UTC
I wrote a script (comment 1) to test the problem using libvirt-0.9.10-3.el6, but couldn't reproduce the issue.

Comment 3 Alex Jia 2012-02-29 03:06:57 UTC
(In reply to comment #2)
> I wrote a script (comment 1) to test the problem using libvirt-0.9.10-3.el6,
> but couldn't reproduce the issue.

Please try it on libvirt-0.9.9-1.el6.x86_64 firstly, the libvirt-0.9.9-1.el6 is a existent issue version not libvirt-0.9.10-3.el6, if you can reproduce the issue on the libvirt-0.9.9-1.el6, but the libvirt-0.9.10-3.el6 is fine for you, could you find this fixed commit then paste it in here?  

BTW, the libvirt-0.9.10-3.el6 is also fine for me.

Regards,
Alex

Comment 4 Gunannan Ren 2012-05-08 04:58:24 UTC
The bug couldn't be reproduced, and without enough log info to determine the root reason, set to "closed", If the problem still occurs in latest version, please reopen the bug.