<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 12/17/2013 09:39 AM, Dan Kenigsberg
wrote:<br>
</div>
<blockquote type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">The answer is in the log: "No medium found".
Could you retry with a cd inside?
Thread-311::DEBUG::2013-12-16 10:09:36,221::BindingXMLRPC::974::vds::(wrapper) client [172.16.0.58]::call vmChangeCD with ('99f89b62-d8e2-4ffd-b2e1-e471beff63b6', '/dev/cdrom') {}
Thread-311::<a class="moz-txt-link-freetext" href="INFO::2013-12-16">INFO::2013-12-16</a> 10:09:36,222::clientIF::350::vds::(prepareVolumePath) prepared volume path: /dev/cdrom
Thread-311::DEBUG::2013-12-16 10:09:36,307::libvirtconnection::108::libvirtconnection::(wrapper) Unknown libvirterror: ecode: 38 edom: 18 level: 2 message: cannot open file '/dev/cdrom': No medium found
Thread-311::DEBUG::2013-12-16 10:09:36,307::vm::4150::vm.Vm::(_changeBlockDev) vmId=`99f89b62-d8e2-4ffd-b2e1-e471beff63b6`::updateDeviceFlags failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 4148, in _changeBlockDev
diskelem.toxml(), libvirt.VIR_DOMAIN_DEVICE_MODIFY_FORCE)
File "/usr/share/vdsm/vm.py", line 835, in f
ret = attr(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 76, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1755, in updateDeviceFlags
if ret == -1: raise libvirtError ('virDomainUpdateDeviceFlags() failed', dom=self)
libvirtError: cannot open file '/dev/cdrom': No medium found
Thread-311::DEBUG::2013-12-16 10:09:36,325::BindingXMLRPC::981::vds::(wrapper) return vmChangeCD with {'status': {'message': 'Failed to change disk image', 'code': 41}}
</pre>
</div>
</blockquote>
<br>
Thanks - I missed this in the log, which is quite verbose. Now I
know better what to look for.<br>
<br>
I inserted some media, and tried again. I got the same output error.
I then tried unmounting the media from the host itself, and retried
the command, but the same result.<br>
<br>
In the log (full log attached) I see:<br>
<br>
<pre>Thread-3469::DEBUG::2013-12-17 11:16:07,402::BindingXMLRPC::974::vds::(wrapper) cl
ient [172.16.0.58]::call vmChangeCD with ('99f89b62-d8e2-4ffd-b2e1-e471beff63b6',
'/dev/sr0') {}
Thread-3469::<a class="moz-txt-link-freetext" href="INFO::2013-12-17">INFO::2013-12-17</a> 11:16:07,402::clientIF::350::vds::(prepareVolumePath
) prepared volume path: /dev/sr0
Thread-3469::DEBUG::2013-12-17 11:16:07,456::libvirtconnection::108::libvirtconnec
tion::(wrapper) Unknown libvirterror: ecode: 1 edom: 10 level: 2 message: internal
error unable to execute QEMU command 'change': Could not open '/dev/sr0': Permiss
ion denied
Thread-3469::DEBUG::2013-12-17 11:16:07,456::vm::4150::vm.Vm::(_changeBlockDev) vm
Id=`99f89b62-d8e2-4ffd-b2e1-e471beff63b6`::updateDeviceFlags failed
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 4148, in _changeBlockDev
diskelem.toxml(), libvirt.VIR_DOMAIN_DEVICE_MODIFY_FORCE)
File "/usr/share/vdsm/vm.py", line 835, in f
ret = attr(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 76, in
wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1755, in updateDevice
Flags
if ret == -1: raise libvirtError ('virDomainUpdateDeviceFlags() failed', dom=s
elf)
libvirtError: internal error unable to execute QEMU command 'change': Could not op
en '/dev/sr0': Permission denied
Thread-3469::DEBUG::2013-12-17 11:16:07,457::BindingXMLRPC::981::vds::(wrapper) re
turn vmChangeCD with {'status': {'message': 'Failed to change disk image', 'code':
41}}
</pre>
<br>
I tried with both /dev/cdrom and /dev/sr0 with the same result.<br>
<br>
-Bob<br>
<br>
</body>
</html>