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