Patch for bz #645237 introduce check for image existence. However, libvirt pass empty string to disconect image from guest that cause error so disconnecting is not possible.
Fix built into xen-3.0.3-135.el5
Verified with xen-3.0.3-135.el5.
With the xen <= -134, there is error message prompt when try to disconnect the cdrom device in virt-manager:
Error Removing CDROM: Requeseted operation is not valid:
Xm driver only supports modifying persistent config.
And xend raise the error as following:
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1573, in reconfigureDevice
File "/usr/lib64/python2.4/site-packages/xen/xend/server/blkif.py", line 130, in reconfigureDevice
raise VmError("Can't read disk file %s" % new_back['params'])
VmError: Can't read disk file
After update to xen-3.0.3-135.el5, there is no issue with disconnecting cdrom device.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.