[ovirt-users] hostusb with ovirt3.6

Alexandr Krivulya shuriku at shurik.kiev.ua
Thu Nov 12 19:29:29 UTC 2015


Hello,
after upgrade to 3.6 virtual machine with hostusb vdsm hook attached
cannot be started:

Thread-2194::ERROR::2015-11-12
21:21:16,527::vm::751::virt.vm::(_startUnderlyingVm)
vmId=`ec7cde24-ac17-453c-a0d3-1873993b80e1`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 695, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/virt/vm.py", line 1876, in _run
    self._domDependentInit()
  File "/usr/share/vdsm/virt/vm.py", line 1733, in _domDependentInit
    self._getUnderlyingVmDevicesInfo()
  File "/usr/share/vdsm/virt/vm.py", line 1682, in
_getUnderlyingVmDevicesInfo
    self._getUnderlyingHostDeviceInfo()
  File "/usr/share/vdsm/virt/vm.py", line 4106, in
_getUnderlyingHostDeviceInfo
    if device_type == 'usb':
  File "/usr/share/vdsm/virt/vm.py", line 4092, in
_getUnderlyingHostDeviceUSBInfo
    for dev in self.conf['devices']:
UnboundLocalError: local variable 'device' referenced before assignment
Thread-2194::INFO::2015-11-12
21:21:16,546::vm::1278::virt.vm::(setDownStatus)
vmId=`ec7cde24-ac17-453c-a0d3-1873993b80e1`::Changed state to Down:
local variable 'device' referenced before assignment (code=1)

Corresponding xml entry present in vm start config:

        <hostdev mode="subsystem" type="usb"><source><vendor
id="0x14a8"/><product id="0x0001"/></source></hostdev></devices>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151112/b8ab311b/attachment-0001.html>


More information about the Users mailing list