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 863931 - The lxc guest was hang when stopped the cgconfig service
Summary: The lxc guest was hang when stopped the cgconfig service
Keywords:
Status: CLOSED DUPLICATE of bug 864336
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-08 06:03 UTC by zhenfeng wang
Modified: 2012-10-10 14:38 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-10 14:38:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhenfeng wang 2012-10-08 06:03:22 UTC
Description of problem:
The guest was hang when stopped the cgconfig service
 
Version-Release number of selected component (if applicable):
libvirt-0.10.2-1.el6.x86_64
qemu-kvm-0.12.1.2-2.316.el6.x86_64
kernel-2.6.32-309.el6.x86_64

How reproducible:
100%
1 prepare the domain xml
# cat lxc.xml
<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>

2 Define and start lxc guest.
# virsh -c lxc:/// define lxc.xml
# virsh -c lxc:/// start toy
# virsh -c lxc:/// list --all
 Id    Name                           State
----------------------------------------------------
 24294 toy                            running

3 Unmount cgroup 

  # /etc/init.d/cgconfig stop
  # /etc/init.d/cgconfig status
    Stopped
  # lscgroup

4 Then destoy the guest and found that the guest was hang
 # virsh -c lxc:/// destroy toy

5 Restart the libvirtd service and found that the guest was in "shut off" state 
  # /etc/init.d/libvirtd restart
  # virsh -c lxc:/// list --all
  Id    Name                           State
 ----------------------------------------------------
 -     toy                            shut off


Actual results:
The guest was hang when stopped the cgconfig service ,besides the guest was shutoff when restart the libvirtd service

Expected results:
the guest shouldn't be hang when stopped the cgconfig service and the guest should be still in "running"states when restart the libvirtd service 

Additional info

Comment 1 zhenfeng wang 2012-10-08 06:05:08 UTC
As it works on libvirt-0.9.10-21.el6.x86_64, so mark this bug a regression bug.

Comment 4 Jiri Denemark 2012-10-08 12:38:45 UTC
IIUC, it looks like virsh destroy actually destroy the domain (in which case it's just ok to see the domain shut off after restarting libvirtd) but hung in a followup cleanup phase. Could you provide libvirtd debug logs?

Comment 5 Daniel Berrangé 2012-10-10 14:38:43 UTC
I'm pretty certain this is a duplicate of 864336, so closing it

*** This bug has been marked as a duplicate of bug 864336 ***


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