Re: [vdsm] Readonly leases error in vdsm log

2012-07-05 Thread Shu Ming

On 2012-7-5 20:12, Deepak C Shetty wrote:


It looks like its trying to use the cdrom disk device as a disk lea


It seems this bug was hit:

*Bug 828633*  
-Sanlock locking failed for readonly devices

https://bugzilla.redhat.com/show_bug.cgi?id=828633

--
Shu Ming 
IBM China Systems and Technology Laboratory

___
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/vdsm-devel


[vdsm] Readonly leases error in vdsm log

2012-07-05 Thread Deepak C Shetty

Hello,
I am creating a VM using vdsm standalone script and facing issues 
when i add cdrom and make it boot from cdrom.




vdsOK(
s.create(dict(vmId=vmId,
  drives=[dict(poolID=spUUID, domainID=sdUUID, 
imageID=imgUUID, volumeID=volUUID)],

  memSize=256,
  display="vnc",
  vmName="vm-backed-by-gluster",
  cdrom="/home/deepakcs/Fedora-16-x86_64-Live-Desktop.iso",
  boot="d",
  custom={"dpktry":1},
 )
)

When i added cdrom= and boot= lines and ran, i see the below in vdsm.log

Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 570, in _startUnderlyingVm
self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1364, in _run
self._connection.createXML(domxml, flags),
  File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", 
line 82, in wrapper

ret = f(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2420, in 
createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', 
conn=self)
libvirtError: internal error unsupported configuration: Readonly leases 
are not supported
Thread-49::DEBUG::2012-07-05 
17:35:59,780::vm::920::vm.Vm::(setDownStatus) 
vmId=`8b400342-2cda-478d-93f6-a36bac8538c8`::Changed state to Down: 
internal error unsupported configuration: Readonly leases are not supported



It looks like its trying to use the cdrom disk device as a disk lease, 
hence complaining?

But the libvirt xml has  tags which looks liek this...


file="/rhev/data-center/98fc6cd9-d857-4735-bc7a-59a289bc0f55/01400276-e3c8-44d9-8353-924ab2183af2/images/95c9f6a4-def1-4300-baf6-db884dc8ccca/9d62e802-859e-4381-8029-7be5a6b1de26"/>


95c9f6a4-def1-4300-baf6-db884dc8ccca
type="raw"/>



startupPolicy="optional"/>





Any idea why it throws "Readonly leases are not supported" ?

thanx,
deepak

___
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/vdsm-devel