Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 838832

Summary: [RHEVM] [Hot Plug NIC] Hotplug NIC not working for RHEL 5u8 guest
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engineAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact: Martin Pavlik <mpavlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: dyasny, gklein, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-23 13:50:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log + engine.log none

Description Martin Pavlik 2012-07-10 09:26:55 UTC
Created attachment 597252 [details]
vdsm.log + engine.log

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

Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.1.0-5.el6ev 

How reproducible:
100%

Steps to Reproduce:
1. Create VM with RHEL 5u8 x64 installed containing 1 NIC (active)
2. Power up the machine
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: 

full logs in attachment

###engine.log####

2012-07-10 10:57:01,587 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-4-thread-50) [421e32f4] Failed in HotPlugNicVDS method
2012-07-10 10:57:01,587 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-4-thread-50) [421e32f4] Error code unexpected and error message VDSGenericException: VDSErrorException: Failed to HotPlugNicVDS, error = internal error unable to execute QEMU command 'device_add': Duplicate ID 'net0' for device
2012-07-10 10:57:01,587 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-4-thread-50) [421e32f4] Command org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand return value 
 Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc
mStatus                       Class Name: org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc
mCode                         49
mMessage                      internal error unable to execute QEMU command 'device_add': Duplicate ID 'net0' for device



###vdsm.log###

Thread-63223::ERROR::2012-07-10 10:57:01,580::libvirtvm::1386::vm.Vm::(hotplugNic) vmId=`9b9ecb88-af4f-4e3c-9b16-fb3e76c14afb`::Hotplug failed
Traceback (most recent call last):
  File "/usr/share/vdsm/libvirtvm.py", line 1384, in hotplugNic
    self._dom.attachDevice(nicXml)
  File "/usr/share/vdsm/libvirtvm.py", line 491, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/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)

Comment 1 Itamar Heim 2012-07-12 22:56:03 UTC
the error does not seem related to guest type, rather to device addresses?

Comment 2 Martin Pavlik 2012-07-13 06:05:52 UTC
(In reply to comment #1)
> the error does not seem related to guest type, rather to device addresses?

I assumed that it has to do with guest since, I tested thae same thing for Windows 7 guest and for RHEL 6.3 guest and it worked just fine.

Comment 3 lpeer 2012-07-23 13:50:51 UTC
There was a decision not to block any guest os for now, please look at -
BZ828854#c14

The fix for BZ 828854 will remove any os related limits