<html><head><meta http-equiv="content-type" content="text/html; charset=GB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ΢ÈíÑźÚ; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>hi,all:</div><div> why can't a virtual machine with a lock file snapshot?</div><div> the code is this:</div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">4490 </span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">4491 if vmDrive.hasVolumeLeases:<br>4492 self.log.error('disk %s has volume leases', vmDrive.name)<br>4493 return errCode['noimpl']<br>4494 <br>[./vdsm/virt/vm.py] </span><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> If I deleted the above code,a snapshot is successfull,the lock is also successful. </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> the vm xml of part is this:</span></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><devices></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <emulator>/usr/libexec/qemu-kvm</emulator></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <disk type='file' device='disk' snapshot='no'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <driver name='qemu' type='qcow2' cache='none' error_policy='stop' io='threads'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <font color="#0000ff"> <source file='/rhev/data-center/ab1ad4e8-e69e-47e2-af48-aa6bd64ba9e2/f6c878db-e530-415e-a0d8-b5b89027c297/images/0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/55e40a24-be89-4325-a5e1-a5fecc3b1f46'></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><font color="#0000ff"> <seclabel model='selinux' labelskip='yes'/></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><font color="#0000ff"> </source></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <backingStore type='file' index='1'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <format type='qcow2'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <source file='/rhev/data-center/ab1ad4e8-e69e-47e2-af48-aa6bd64ba9e2/f6c878db-e530-415e-a0d8-b5b89027c297/images/0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/../0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/dadecfd8-feda-4dfa-a0a4-b99490f33c46'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <backingStore type='file' index='2'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <format type='raw'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <source file='/rhev/data-center/ab1ad4e8-e69e-47e2-af48-aa6bd64ba9e2/f6c878db-e530-415e-a0d8-b5b89027c297/images/0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/../0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/../0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/d467c150-1576-4ced-89af-f2e6ebe897ee'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <backingStore/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </backingStore></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </backingStore></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <target dev='hda' bus='ide'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <serial>0b4d3165-8d34-42f0-b2b3-efdf79ac60c3</serial></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <boot order='1'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='ide0-0-0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='drive' controller='0' bus='0' target='0' unit='0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </disk></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <disk type='file' device='cdrom'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <driver name='qemu' type='raw'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <source startupPolicy='optional'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <backingStore/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <target dev='hdc' bus='ide'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <readonly/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <serial></serial></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='ide0-1-0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='drive' controller='0' bus='1' target='0' unit='0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </disk></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <controller type='scsi' index='0' model='virtio-scsi'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='scsi0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </controller></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <controller type='virtio-serial' index='0' ports='16'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='virtio-serial0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </controller></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <controller type='usb' index='0'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='usb0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </controller></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <controller type='pci' index='0' model='pci-root'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='pci.0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </controller></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <controller type='ide' index='0'></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <alias name='ide0'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> </controller></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"> <font color="#0000ff"> <lease></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><font color="#0000ff"> <lockspace>f6c878db-e530-415e-a0d8-b5b89027c297</lockspace></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><font color="#0000ff"> <key>55e40a24-be89-4325-a5e1-a5fecc3b1f46</key></font></div><div style="margin: 0px; font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px;"><font color="#0000ff"> <target path='/rhev/data-center/mnt/192.168.8.100:_data_maokx/f6c878db-e530-415e-a0d8-b5b89027c297/images/0b4d3165-8d34-42f0-b2b3-efdf79ac60c3/55e40a24-be89-4325-a5e1-a5fecc3b1f46.lease'/></font></div><div><span style="color: rgb(0, 0, 255); font-family: Helvetica, 'Hiragino Sans GB', ΢ÈíÑźÚ, 'Microsoft YaHei UI', SimSun, SimHei, arial, sans-serif; font-size: 15px; line-height: 24px; background-color: window;"> </lease></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> </span>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>maokexu@126.com</div></div></span></div>
</div></body></html>