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 851979 - The controller device still exist after clicking remove button by virt-manager
Summary: The controller device still exist after clicking remove button by virt-manager
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: virt-mgr-maint
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 949201
TreeView+ depends on / blocked
 
Reported: 2012-08-27 08:15 UTC by Daisy Wu
Modified: 2014-01-30 12:52 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 949201 (view as bug list)
Environment:
Last Closed: 2014-01-30 12:52:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Daisy Wu 2012-08-27 08:15:53 UTC
Description of problem:
The controller device can not be removed by virt-manager successfully and virt-manager does not pop up any relative info to remind customer.

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-14.el6.x86_64
libvirt-0.10.0-0rc0.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.303.el6.x86_64
# uname -a
Linux jwu.redhat.com 2.6.32-288.el6.x86_64 #1 SMP Thu Jul 19 23:09:22 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
100%

Steps to Reproduce:
1.  prepare one guest, make sure the guest with some controller. Just like:
#virsh dumpxml rhel63-qcow2
...
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
...

2. launch virt-manager -> shut down this guest
3. open one guest -> click "show virtual hardware detials"-> choose "Controller IDE"-> click remove button -> pop up windows "Are you sure you want to remove this device?" click yes


Actual results:
The Controller IDE device still exist and virt-manager does not pop up any relative info to customer.

Expected results:
1. The Controller IDE device disappear on virt-manager
2. If this kind of device can not be removed by customer, virt-manager should pop up some relative info to remind customer.

Additional info:
1. #virt-manager --debug:
...
2012-08-27 02:29:06,748 (details:2249): Removing device: controller <virtinst.VirtualController.VirtualController object at 0x30c51d0>
2012-08-27 02:29:15,965 (libvirtobject:135): Redefining 'rhel63-qcow2' with XML diff:
--- Original XML 
+++ New XML 
@@ -34,9 +34,6 @@
     <controller type="usb" index="0">
       <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
     </controller>
-    <controller type="ide" index="0">
-      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
-    </controller>
     <interface type="network">
       <mac address="52:54:00:06:e6:db"/>
       <source network="default"/>


2. After click remove, check the dumpxml, Controller IDE still exist:
# virsh dumpxml rhel63-qcow2
...
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
...

Comment 3 CongDong 2013-04-02 08:22:17 UTC
Reproduce  this bug on RHEL6.4

[root@localhost ~]# rpm -qa virt-manager libvirt qemu-kvm
virt-manager-0.9.0-18.el6.x86_64
libvirt-0.10.2-18.el6.x86_64
qemu-kvm-0.12.1.2-2.355.el6.x86_64
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

Comment 4 Giuseppe Scrivano 2014-01-30 12:52:29 UTC
from what I can see, libvirt implicitly adds an IDE controller when there are IDE disks.  You can check this by removing the IDE controller manually using "virsh" and see it is re-added.


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