Created attachment 588066[details]
vdsm.log + engine.log
Description of problem:
It is not possible to hotplug/hotunplug NIC from VM after VM snapshot is created
Version-Release number of selected component (if applicable):
oVirt Enterprise Virtualization Engine Manager Version: 3.1.0_0001-11.el6ev
How reproducible:
100%
Steps to Reproduce:
1) create VM with windows7 (install virtIO driver for NIC)
2) add 2 NIC to VM (1 activated, 1 deactivated)
3) start VM
4) create snapshot of running VM
5) try to decativate active NIC
Actual results:
hotplug NIC stops working after VM snapshot is created
Expected results:
hotplug NIC should be working without error after VM snapshot is created
Additional info:
No error is reported in events
engine.log
2012-05-31 14:17:42,925 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (pool-10-thread-47) [289b8ea0] Command HotUnplugNicVDS execution failed. Exception: XmlRpcRunTimeException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException
2012-05-31 14:17:42,926 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand] (pool-10-thread-47) [289b8ea0] FINISH, HotUnplugNicVDSCommand, log id: 28771028
2012-05-31 14:17:42,927 ERROR [org.ovirt.engine.core.bll.HotPlugUnplugVmNicCommand] (pool-10-thread-47) [289b8ea0] Command org.ovirt.engine.core.bll.HotPlugUnplugVmNicCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException
There are two issues here, both should be solved on VDSM side:
1. The returned value contains a dictionary for key 'vmList' which contains a field (in a device sub-dictionary) with value None which causes XML RPC parser to crash at engine side.
2. The engine does not look at the vmList dictionary in any of the plug/unplug (nic/disk) actions, so not returning it will definitely solve the reported bug.
Please fix as you deem correct on VDSM side.
Created attachment 588066 [details] vdsm.log + engine.log Description of problem: It is not possible to hotplug/hotunplug NIC from VM after VM snapshot is created Version-Release number of selected component (if applicable): oVirt Enterprise Virtualization Engine Manager Version: 3.1.0_0001-11.el6ev How reproducible: 100% Steps to Reproduce: 1) create VM with windows7 (install virtIO driver for NIC) 2) add 2 NIC to VM (1 activated, 1 deactivated) 3) start VM 4) create snapshot of running VM 5) try to decativate active NIC Actual results: hotplug NIC stops working after VM snapshot is created Expected results: hotplug NIC should be working without error after VM snapshot is created Additional info: No error is reported in events engine.log 2012-05-31 14:17:42,925 ERROR [org.ovirt.engine.core.vdsbroker.VDSCommandBase] (pool-10-thread-47) [289b8ea0] Command HotUnplugNicVDS execution failed. Exception: XmlRpcRunTimeException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException 2012-05-31 14:17:42,926 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand] (pool-10-thread-47) [289b8ea0] FINISH, HotUnplugNicVDSCommand, log id: 28771028 2012-05-31 14:17:42,927 ERROR [org.ovirt.engine.core.bll.HotPlugUnplugVmNicCommand] (pool-10-thread-47) [289b8ea0] Command org.ovirt.engine.core.bll.HotPlugUnplugVmNicCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException