[ovirt-devel] Failed to Initiate Removal of Template
Tang Jackson
tangjack at square-enix.com
Wed Dec 24 07:46:30 UTC 2014
I have a template which I no longer need but I cannot remove it. The template is not attached to any VMs and is still fully functional, I can create new VMs with this template.
The logs during removal:
2014-12-24 11:44:19,002 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (ajp--127.0.0.1-8702-4) [704a05dd] Lock Acquired to object EngineLock [exclusiveLocks= key: b0968117-4932-47af-a4da-c3c5c9b2b2bd value: TEMPLATE
, sharedLocks= ]
2014-12-24 11:44:19,095 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Running command: RemoveVmTemplateCommand internal: false. Entities affected : ID: b0968117-4932-47af-a4da-c3c5c9b2b2bd Type: VmTemplateAction group DELETE_TEMPLATE with role type USER
2014-12-24 11:44:19,150 INFO [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Running command: RemoveAllVmTemplateImageTemplatesCommand internal: true. Entities affected : ID: b0968117-4932-47af-a4da-c3c5c9b2b2bd Type: VmTemplate
2014-12-24 11:44:19,224 INFO [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Running command: RemoveTemplateSnapshotCommand internal: true. Entities affected : ID: 73968e04-9176-439c-a9e8-fa5313d15f8e Type: Storage
2014-12-24 11:44:19,291 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] START, DeleteImageGroupVDSCommand( storagePoolId = bd7c67a2-5008-41a0-808a-b9f58f2742d7, ignoreFailoverLimit = false, storageDomainId = 73968e04-9176-439c-a9e8-fa5313d15f8e, imageGroupId = d584d61c-5759-4e13-a9a4-f1a75068edd6, postZeros = false, forceDelete = false), log id: 1768709a
2014-12-24 11:44:19,324 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Command DeleteImageGroupVDSCommand( storagePoolId = bd7c67a2-5008-41a0-808a-b9f58f2742d7, ignoreFailoverLimit = false, storageDomainId = 73968e04-9176-439c-a9e8-fa5313d15f8e, imageGroupId = d584d61c-5759-4e13-a9a4-f1a75068edd6, postZeros = false, forceDelete = false) execution failed. Exception: IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorException: Shared Volume cannot be deleted: (u"Cannot delete shared image d584d61c-5759-4e13-a9a4-f1a75068edd6. volImgs: {u'b24d30ea-8774-4dfa-adcf-e30b0ef73592': ImgsPar(imgs=(u'd584d61c-5759-4e13-a9a4-f1a75068edd6', u'dd10ffd2-edb2-4923-bd34-a6a12a76beaf'), parent='00000000-0000-0000-0000-000000000000')}",)
2014-12-24 11:44:19,457 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.DeleteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] FINISH, DeleteImageGroupVDSCommand, log id: 1768709a
2014-12-24 11:44:19,491 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] 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: (u"Cannot delete shared image d584d61c-5759-4e13-a9a4-f1a75068edd6. volImgs: {u'b24d30ea-8774-4dfa-adcf-e30b0ef73592': ImgsPar(imgs=(u'd584d61c-5759-4e13-a9a4-f1a75068edd6', u'dd10ffd2-edb2-4923-bd34-a6a12a76beaf'), parent='00000000-0000-0000-0000-000000000000')}",) (Failed with error CannotDeleteSharedVolume and code 223)
2014-12-24 11:44:19,636 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transaction rolled-back for command: org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand.
2014-12-24 11:44:19,641 INFO [org.ovirt.engine.core.bll.tasks.AsyncTaskManager] (org.ovirt.thread.pool-8-thread-47) [296e0a] Removed task e2d5b03c-008d-4493-8601-51354f7cda7a from DataBase
2014-12-24 11:44:19,678 INFO [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Command [id=f7b1b13c-2d21-4d2c-a4f6-7ab4f07c1fe3]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.VmTemplate; snapshot: EntityStatusSnapshot [id=b0968117-4932-47af-a4da-c3c5c9b2b2bd, status=OK].
2014-12-24 11:44:19,742 ERROR [org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transaction rolled-back for command: org.ovirt.engine.core.bll.RemoveAllVmTemplateImageTemplatesCommand.
2014-12-24 11:44:19,818 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-47) [296e0a] Correlation ID: 704a05dd, Job ID: 7b890ce3-860e-41da-af7c-2951d82146d5, Call Stack: null, Custom Event ID: -1, Message: Failed to initiate removal of Template Vagrant_CentOS7_4 (User: admin).
2014-12-24 11:44:19,881 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Lock freed to object EngineLock [exclusiveLocks= key: b0968117-4932-47af-a4da-c3c5c9b2b2bd value: TEMPLATE
, sharedLocks= ]
Is there a way to force remove perhaps from the ovirt-shell?
Jackson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20141224/5b50068f/attachment-0001.html>
More information about the Devel
mailing list