Here is the engine logs :- 

------------------
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
, sharedLocks= ]
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
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
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
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
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: ("Cannot delete shared image 5bc75cd6-aeec-4caf-bcff-78fbd26c4847. volImgs: {'98cad41e-7cec-4fe0-a7c5-d31985770b5f': ImgsPar(imgs=('5bc75cd6-aeec-4caf-bcff-78fbd26c4847', '5bc75cd6-aeec-4caf-bcff-78fbd26c4847'), parent='00000000-0000-0000-0000-000000000000')}",)
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
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: ("Cannot delete shared image 5bc75cd6-aeec-4caf-bcff-78fbd26c4847. volImgs: {'98cad41e-7cec-4fe0-a7c5-d31985770b5f': ImgsPar(imgs=('5bc75cd6-aeec-4caf-bcff-78fbd26c4847', '5bc75cd6-aeec-4caf-bcff-78fbd26c4847'), parent='00000000-0000-0000-0000-000000000000')}",) (Failed with error CannotDeleteSharedVolume and code 223)
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.
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
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].
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.
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).
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
, sharedLocks= ]
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
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
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
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
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
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
--------------------


On Tue, Aug 19, 2014 at 3:52 PM, Punit Dambiwal <hypunit@gmail.com> wrote:
Hi,

I have created one OS template...now i want to use that to provision VM's...but when i try to deploy the VM..VM failed with the following error :- 

Error while executing action AddVmFromTemplate: Image is not a legal chain

Even i can not remove this template....

Thanks,
Punit