<div dir="ltr">Here is the engine logs :- <div><br></div><div>------------------</div><div><div>2014-08-19 16:03:37,131 INFO  [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (ajp--127.0.0.1-8702-14) [7c0ea45] Lock Acquired to object EngineLock [exclusiveLocks= key: 289578b7-1909-4713-a1b8-2d099e940731 value: TEMPLATE</div>
<div>, sharedLocks= ]</div><div>2014-08-19 16:03:37,154 INFO  [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (org.ovirt.thread.pool-6-thread-47) [7c0ea45] Running command: RemoveVmTemplateCommand internal: false. Entities affected :  ID: 289578b7-1909-4713-a1b8-2d099e940731 Type: VmTemplate</div>
<div>2014-08-19 16:03:37,161 INFO  [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-6-thread-47) [7c0ea45] Running command: RemoveAllVmTemplateImageTemplatesCommand internal: true. Entities affected :  ID: 289578b7-1909-4713-a1b8-2d099e940731 Type: VmTemplate</div>
<div>2014-08-19 16:03:37,164 INFO  [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Running command: RemoveTemplateSnapshotCommand internal: true. Entities affected :  ID: ea499cc0-684f-4a2f-abef-43ff28d649cb Type: Storage</div>
<div>2014-08-19 16:03:37,169 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] START, DeleteImageGroupVDSCommand( storagePoolId = f4966810-0923-4752-a054-2b4954584970, ignoreFailoverLimit = false, storageDomainId = ea499cc0-684f-4a2f-abef-43ff28d649cb, imageGroupId = 5bc75cd6-aeec-4caf-bcff-78fbd26c4847, postZeros = false, forceDelete = false), log id: 6a01a40e</div>
<div>2014-08-19 16:03:37,214 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Command DeleteImageGroupVDSCommand( storagePoolId = f4966810-0923-4752-a054-2b4954584970, ignoreFailoverLimit = false, storageDomainId = ea499cc0-684f-4a2f-abef-43ff28d649cb, imageGroupId = 5bc75cd6-aeec-4caf-bcff-78fbd26c4847, postZeros = false, forceDelete = false) execution failed. Exception: IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorException: Shared Volume cannot be deleted: (&quot;Cannot delete shared image 5bc75cd6-aeec-4caf-bcff-78fbd26c4847. volImgs: {&#39;98cad41e-7cec-4fe0-a7c5-d31985770b5f&#39;: ImgsPar(imgs=(&#39;5bc75cd6-aeec-4caf-bcff-78fbd26c4847&#39;, &#39;5bc75cd6-aeec-4caf-bcff-78fbd26c4847&#39;), parent=&#39;00000000-0000-0000-0000-000000000000&#39;)}&quot;,)</div>
<div>2014-08-19 16:03:37,218 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] FINISH, DeleteImageGroupVDSCommand, log id: 6a01a40e</div><div>2014-08-19 16:03:37,219 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Command org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.engine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorException: Shared Volume cannot be deleted: (&quot;Cannot delete shared image 5bc75cd6-aeec-4caf-bcff-78fbd26c4847. volImgs: {&#39;98cad41e-7cec-4fe0-a7c5-d31985770b5f&#39;: ImgsPar(imgs=(&#39;5bc75cd6-aeec-4caf-bcff-78fbd26c4847&#39;, &#39;5bc75cd6-aeec-4caf-bcff-78fbd26c4847&#39;), parent=&#39;00000000-0000-0000-0000-000000000000&#39;)}&quot;,) (Failed with error CannotDeleteSharedVolume and code 223)</div>
<div>2014-08-19 16:03:37,222 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Transaction rolled-back for command: org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand.</div>
<div>2014-08-19 16:03:37,224 INFO  [org.ovirt.engine.core.bll.AsyncTaskManager] (org.ovirt.thread.pool-6-thread-47) [798d5859] Removed task 58ff69a3-ccfc-4e0c-8b57-ed7a2306fb88 from DataBase</div><div>2014-08-19 16:03:37,228 INFO  [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Command [id=6a5b1e1b-5b84-403d-b16d-2625aac4721e]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.VmTemplate; snapshot: EntityStatusSnapshot [id=289578b7-1909-4713-a1b8-2d099e940731, status=OK].</div>
<div>2014-08-19 16:03:37,232 ERROR [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Transaction rolled-back for command: org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand.</div>
<div>2014-08-19 16:03:37,238 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-47) [798d5859] Correlation ID: 7c0ea45, Job ID: 573dcba5-1f93-46d2-bec9-47a43e37c2a3, Call Stack: null, Custom Event ID: -1, Message: Failed to initiate removal of Template ubuntu (User: admin).</div>
<div>2014-08-19 16:03:37,242 INFO  [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (org.ovirt.thread.pool-6-thread-47) [798d5859] Lock freed to object EngineLock [exclusiveLocks= key: 289578b7-1909-4713-a1b8-2d099e940731 value: TEMPLATE</div>
<div>, sharedLocks= ]</div><div>2014-08-19 16:03:38,062 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-96) START, GlusterVolumesListVDSCommand(HostName = compute4, HostId = 3a7a4504-1434-4fd2-ac00-e8d12c043b37), log id: 4f7a9154</div>
<div>2014-08-19 16:03:38,213 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-96) FINISH, GlusterVolumesListVDSCommand, return: {e6117925-79b1-417b-9d07-cfc31f68bc51=org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity@d434f38c}, log id: 4f7a9154</div>
<div>2014-08-19 16:03:43,384 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-27) START, GlusterVolumesListVDSCommand(HostName = compute4, HostId = 3a7a4504-1434-4fd2-ac00-e8d12c043b37), log id: 8557a7</div>
<div>2014-08-19 16:03:43,538 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListVDSCommand] (DefaultQuartzScheduler_Worker-27) FINISH, GlusterVolumesListVDSCommand, return: {e6117925-79b1-417b-9d07-cfc31f68bc51=org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity@87600a7e}, log id: 8557a7</div>
<div>2014-08-19 16:03:46,720 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterTasksListVDSCommand] (DefaultQuartzScheduler_Worker-30) [39571a46] START, GlusterTasksListVDSCommand(HostName = compute4, HostId = 3a7a4504-1434-4fd2-ac00-e8d12c043b37), log id: dd7a686</div>
<div>2014-08-19 16:03:46,743 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GlusterTasksListVDSCommand] (DefaultQuartzScheduler_Worker-30) [39571a46] FINISH, GlusterTasksListVDSCommand, return: [], log id: dd7a686</div><div>
--------------------</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 3:52 PM, Punit Dambiwal <span dir="ltr">&lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have created one OS template...now i want to use that to provision VM&#39;s...but when i try to deploy the VM..VM failed with the following error :- </div>
<div><br></div><div>Error while executing action AddVmFromTemplate: Image is not a legal chain<br>
</div><div><br></div><div>Even i can not remove this template....</div><div><br></div><div>Thanks,</div><div>Punit</div></div>
</blockquote></div><br></div>