Bug 705982 - Interface cannot be hot-unplugged from guest on Xen HVM
Summary: Interface cannot be hot-unplugged from guest on Xen HVM
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.7
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 05:22 UTC by mliu
Modified: 2012-07-03 03:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-17 00:33:02 UTC
Target Upstream Version:


Attachments (Terms of Use)
virt-manager log message, for #virt-manager --debug could not take effect in the rhel5.7. (4.63 KB, text/plain)
2011-07-13 10:41 UTC, Huming Jiang
no flags Details

Description mliu 2011-05-19 05:22:24 UTC
Description of problem:
Interface cannot be hot-unplugged from guest on Xen HVM

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-14.el5
kernel-xen-2.6.18-261.el5
xen-3.0.3-131.el5
libvirt-0.8.2-20.el5

How reproducible:
Always

Steps to Reproduce:
1.Make sure you have added a NIC.
2.Launch virt-manager: #virt-manager
3.choose a vm and click the Run button in the Virtual Machine Details window.
3.Click the Hardware tab.
4.Select the NIC you just added then click Remove button.
  
Actual results:
the NIC is still in the list, after reboot vm, the NIC is disappeared.

Expected results:
the NIC is deleted successfully

Additional info:

Comment 1 mliu 2011-05-19 05:47:11 UTC
This problem can be reproduced when I do virtual disk hot-unplug.

Comment 2 RHEL Program Management 2011-06-21 05:28:18 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 4 Cole Robinson 2011-07-12 23:33:37 UTC
Please provide the output of virt-manager --debug when reproducing.

Comment 5 Huming Jiang 2011-07-13 10:39:26 UTC
Reproduced with the following components and steps:

Components:
virt-manager-0.6.1-14.el5
libvirt-0.8.2-22.el5
xen-3.0.3-132.el5
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-274.el5xen #1 SMP Fri Jul 8 17:45:44 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

Steps:
1. Add a interface device (type is "pcnet") to a shut-down guest.
2. Start the guest.
3. When the guest boots up completely, remove the "pcnet" interface.

Actual results:
the NIC is still in the list, after reboot vm, the NIC is disappeared.

Expected results:
the NIC is deleted successfully

Additional info:
Interface with type "ne2k_pci" and "rtl8139" has similar problems.
But interface with type "hypervisor default" has no this problem.

Comment 6 Huming Jiang 2011-07-13 10:41:27 UTC
Created attachment 512629 [details]
virt-manager log message, for #virt-manager --debug could not take effect in the rhel5.7.

Comment 8 Cole Robinson 2011-10-14 22:39:48 UTC
This is either a xen or libvirt bug.

My xenfv and xenpv guest both have network devices like:

    <interface type='bridge'>
      <mac address='00:16:3e:72:cb:f3'/>
      <source bridge='xenbr0'/>
      <script path='vif-bridge'/>
    </interface>

If I remove that device with 'virsh detach-device' on a running pv guest, virsh dumpxml will no longer show the network device after a couple seconds.

For a fullvirt guest though, detach-device succeeds but the network device is never removed from the dumpxml output.

Reassigning to libvirt for further triage


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