Bug 773212 - [LXC] resume operation will destroy a guest sometimes
Summary: [LXC] resume operation will destroy a guest sometimes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Gunannan Ren
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-11 09:31 UTC by Alex Jia
Modified: 2012-05-24 08:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-08 04:58:24 UTC
Target Upstream Version:


Attachments (Terms of Use)
testing_script (1.25 KB, text/plain)
2012-02-28 16:01 UTC, Gunannan Ren
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.