Bug 795122 - [ovirt] [vdsm] change cd doesn't work - TypeError: 'str' object does not support item assignment
Summary: [ovirt] [vdsm] change cd doesn't work - TypeError: 'str' object does not supp...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.1
Assignee: Eduardo Warszawski
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-19 13:50 UTC by Haim
Modified: 2014-01-13 00:51 UTC (History)
11 users (show)

Fixed In Version: vdsm-4.9.6-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 08:02:18 UTC
oVirt Team: ---


Attachments (Terms of Use)

Description Haim 2012-02-19 13:50:49 UTC
Description of problem:

- start vm 
- initiate change cd command:

Thread-4106::DEBUG::2012-02-19 15:31:21,633::task::980::TaskManager.Task::(_decref) Task=`b326ab2a-39e0-4910-bb18-131c0c242772`::ref 0 aborting False
Thread-4111::DEBUG::2012-02-19 15:31:31,840::BindingXMLRPC::848::vds::(wrapper) client [10.16.144.104]::call vmChangeCD with ('1c6b7313-e57f-4883-a66f-3a1f5dee7990', '/rhev/data-center/2319b7ff-09f6-488c-83c4-aa78139db3b4/019d4b6f-5450-
4eb6-80ee-c63ea062de49/images/11111111-1111-1111-1111-111111111111/Fedora-16-x86_64-Live-Desktop.iso') {}

result:

Thread-4111::ERROR::2012-02-19 15:31:31,845::BindingXMLRPC::863::vds::(wrapper) Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 853, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 231, in vmChangeCD
    return vm.changeCD(driveSpec)
  File "/usr/share/vdsm/API.py", line 88, in changeCD
    return v.changeCD(driveSpec)
  File "/usr/share/vdsm/libvirtvm.py", line 1703, in changeCD
    return self._changeBlockDev('cdrom', 'hdc', drivespec)
  File "/usr/share/vdsm/libvirtvm.py", line 1710, in _changeBlockDev
    path = self.cif.prepareVolumePath(drivespec)
  File "/usr/share/vdsm/clientIF.py", line 203, in prepareVolumePath
    drive['blockDev'] = utils.isBlockDevice(volPath)
TypeError: 'str' object does not support item assignment

Comment 1 Dan Kenigsberg 2012-02-19 13:57:21 UTC
Probably solved by
http://gerrit.ovirt.org/#change,1935,patchset=3

Comment 2 Yaniv Kaul 2012-02-19 14:31:03 UTC
Which VDSM version?
Did it ever work before (which makes this a regression) ?

Comment 3 Haim 2012-02-19 14:44:12 UTC
(In reply to comment #2)
> Which VDSM version?
> Did it ever work before (which makes this a regression) ?

yes, it worked.

Comment 4 Eduardo Warszawski 2012-02-20 09:21:32 UTC
http://gerrit.ovirt.org/#change,1935

Comment 5 Federico Simoncelli 2012-06-22 10:58:40 UTC
In the ovirt-3.1 branch as: 0c03857ec6ba22236d7d6fc63a13ff6194cb1d41

Comment 6 Itamar Heim 2012-08-09 08:02:18 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/

Comment 7 Itamar Heim 2012-08-09 08:03:37 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/


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