Created attachment 773768 [details] engine.log, vdsm.log, libvirtd.log Description of problem: Something is wrong when create VM xml on vdsm. ...snip... <channel type="spicevmc"> <target name="com.redhat.spice.0" type="virtio"/> </channel> <graphics autoport="yes" keymap="es" listen="0" passwd="*****" passwdValidTo="1970-01-01T00:00:01" port="-1" tlsPort="-1" type="spice"> <channel mode="secure" name="main"/> <channel mode="secure" name="inputs"/> <channel mode="secure" name="cursor"/> <channel mode="secure" name="playback"/> <channel mode="secure" name="record"/> <channel mode="secure" name="display"/> <channel mode="secure" name="usbredir"/> <channel mode="secure" name="smartcard"/> </graphics> <channel type="spicevmc"/> <channel type="spicevmc"/> <channel type="spicevmc"/> <channel type="spicevmc"/> ...snip... See 4 times lines with 'spicevmc'. Next lines following in vdsm.log are: 2013-07-15 11:53:17.131+0000: 2489: error : virDomainChrDefaultTargetType:5319 : XML error: target type must be specified for channel device ...snip... 2013-07-15 11:53:17.241+0000: 2489: error : virDomainChrDefFormat:12840 : internal error Could not format channel target type Version-Release number of selected component (if applicable): is5 How reproducible: 100% Steps to Reproduce: 1. create a vm with usb native (my case: win7 64bit, desktop) 2. start vm 3. Actual results: 2013-Jul-15, 15:53 VM test1 is down. Exit message: internal error Could not format channel target type. Expected results: up and running Additional info:
dup of bug 950768?
I don't know but there's difference in vdsm.log: * BZ950765 Thread-253548::ERROR::2013-02-28 02:28:12,282::vm::631::vm.Vm::(_startUnderlyingVm) vmId=`28c6d8a2-6ba7-4ac2-94dc-fc2ff70f7a7d`::The vm start process failed Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 597, in _startUnderlyingVm File "/usr/share/vdsm/libvirtvm.py", line 1448, in _run File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2489, in createXML libvirtError: internal error process exited while connecting to monitor: qemu-kvm: -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2: Duplicate ID 'usb' for device Thread-253548::DEBUG::2013-02-28 02:28:12,293::vm::965::vm.Vm::(setDownStatus) vmId=`28c6d8a2-6ba7-4ac2-94dc-fc2ff70f7a7d`::Changed state to Down: internal error process exited while connecti ng to monitor: qemu-kvm: -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2: Duplicate ID 'usb' for device * BZ984586 (this one) Thread-568191::ERROR::2013-07-15 13:53:17,530::vm::2008::vm.Vm::(_startUnderlyingVm) vmId=`a02b7ffd-56b1-4bce-9cff-a325830245e4`::The vm start process failed Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 1968, in _startUnderlyingVm self._run() File "/usr/share/vdsm/vm.py", line 2841, in _run self._connection.createXML(domxml, flags), File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 112, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2645, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: internal error Could not format channel target type
Jiri, Can you retest this with the build from 950768 so we can verify if it's a dupe?
Cannot reproduce on is6. VM starts and xml part in vdsm.log does not contains reported duplicated lines.
I obviously did not have 'USB Native' in comment#4. I _CAN_ still reproduce with w7 64bit (desktop) and USB Native configured.
this bug cause because of commit b649768599959e4433438e04271b13ccecbe1b8c for some reason device with type 'redir' was changed to 'channel' i verified that changing back ro redir fix this. i will check what other changes were made and why before submitting the fix.
merged to master: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=bc80454abf7f2573182d5bbe61fc1dee83c2e9b5 yet needs to get in to engine_3.3 branch too...
merged to ovirt-engine-3.3: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=92451495a9be928601d1d27b4ee8f52d135bd234
Doesn't work on is9.1. mperina@ informed the diff wasn't merged to downstream...
Even when both patches (master and ovirt-engine-3.3 branch) has been merged on August 6th, they are not included in is9.1 (created on August 8th). Even stranger this is that patch for bug 994191 that has been merged on August 8th and this one IS INCLUDED in is9.1 build. Could some please fix this?
ok, is10.
Closing - RHEV 3.3 Released