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 844622 - [RHEVM] [Hot Plug NIC] Hotplug NIC not working with rhel 5.8 guest
Summary: [RHEVM] [Hot Plug NIC] Hotplug NIC not working with rhel 5.8 guest
Keywords:
Status: CLOSED DUPLICATE of bug 827544
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Laine Stump
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-31 08:39 UTC by Martin Pavlik
Modified: 2015-04-07 03:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-05 23:34:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (45.84 KB, application/x-gzip)
2012-07-31 08:39 UTC, Martin Pavlik
no flags Details

Description Martin Pavlik 2012-07-31 08:39:53 UTC
Created attachment 601472 [details]
logs

Description of problem:
NIC cannot be hot plugged back into VM when RHEL 5u8 x64 is used as a guest OS on VM.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: '3.1.0-9.el6ev' 

libvirt-0.9.10-21.el6.x86_64
qemu-img-rhev-0.12.1.2-2.298.el6_3.x86_64
vdsm-4.9.6-24.0.el6_3.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Create VM with RHEL 5u8 x64/Windows XP installed containing 1 NIC (active)
2. Power up the machine (wait until VM status is UP)
3. Virtual Machines -> your machine -> Network Interfaces -> nic1 -> Deactivate
4. Virtual Machines -> your machine -> Network Interfaces -> nic1 -> Activate
  
Actual results:
NIC is not plugged back

Expected results:
NIC should be plugged back properly


Additional info: log files contain problem for rhel 5u8 

Thread-10987::ERROR::2012-07-31 10:23:37,207::libvirtvm::1390::vm.Vm::(hotplugNic) vmId=`e3653dec-f739-41f9-8126-57d2b15b12ef`::Hotplug failed
Traceback (most recent call last):
  File "/usr/share/vdsm/libvirtvm.py", line 1388, in hotplugNic
    self._dom.attachDevice(nicXml)
  File "/usr/share/vdsm/libvirtvm.py", line 491, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 82, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 400, in attachDevice
    if ret == -1: raise libvirtError ('virDomainAttachDevice() failed', dom=self)
libvirtError: internal error unable to execute QEMU command 'device_add': Duplicate ID 'net0' for device

Comment 2 Laine Stump 2012-08-05 23:34:52 UTC
The problem here is in RHEL5's very poor support for PCI hotplug, and is not something fixable by libvirt (or, as I understand it, fixable on the host side at all). See the comments in Bug 827544 for more info.

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


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