Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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.