<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"\FF2D\FF33 \30B4\30B7\30C3\30AF";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\FF2D\FF33 \30B4\30B7\30C3\30AF";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\@\FF2D\FF33 \30B4\30B7\30C3\30AF";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Arial","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Arial","sans-serif";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026">
<v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="JA" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">The logs during removal:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">, sharedLocks= ]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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')}",)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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].<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">, sharedLocks= ]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">Is there a way to force remove perhaps from the ovirt-shell?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt">Jackson<o:p></o:p></span></p>
</div>
</body>
</html>