--_000_HK2PR03MB08201EA7FCCECDBF94D27A309C540HK2PR03MB0820apcp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I have a template which I no longer need but I cannot remove it. The templ=
ate 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.RemoveVmTemplateCo=
mmand] (ajp--127.0.0.1-8702-4) [704a05dd] Lock Acquired to object EngineLoc=
k [exclusiveLocks=3D key: b0968117-4932-47af-a4da-c3c5c9b2b2bd value: TEMPL=
ATE
, sharedLocks=3D ]
2014-12-24 11:44:19,095 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateCo=
mmand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Running command: Remo=
veVmTemplateCommand internal: false. Entities affected : ID: b0968117-4932=
-47af-a4da-c3c5c9b2b2bd Type: VmTemplateAction group DELETE_TEMPLATE with r=
ole type USER
2014-12-24 11:44:19,150 INFO [org.ovirt.engine.core.bll.RemoveAllVmTemplat=
eImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Runn=
ing command: RemoveAllVmTemplateImageTemplatesCommand internal: true. Entit=
ies affected : ID: b0968117-4932-47af-a4da-c3c5c9b2b2bd Type: VmTemplate
2014-12-24 11:44:19,224 INFO [org.ovirt.engine.core.bll.RemoveTemplateSnap=
shotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Running command: =
RemoveTemplateSnapshotCommand internal: true. Entities affected : ID: 7396=
8e04-9176-439c-a9e8-fa5313d15f8e Type: Storage
2014-12-24 11:44:19,291 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.De=
leteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] STAR=
T, DeleteImageGroupVDSCommand( storagePoolId =3D bd7c67a2-5008-41a0-808a-b9=
f58f2742d7, ignoreFailoverLimit =3D false, storageDomainId =3D 73968e04-917=
6-439c-a9e8-fa5313d15f8e, imageGroupId =3D d584d61c-5759-4e13-a9a4-f1a75068=
edd6, postZeros =3D false, forceDelete =3D false), log id: 1768709a
2014-12-24 11:44:19,324 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.De=
leteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Comm=
and DeleteImageGroupVDSCommand( storagePoolId =3D bd7c67a2-5008-41a0-808a-b=
9f58f2742d7, ignoreFailoverLimit =3D false, storageDomainId =3D 73968e04-91=
76-439c-a9e8-fa5313d15f8e, imageGroupId =3D d584d61c-5759-4e13-a9a4-f1a7506=
8edd6, postZeros =3D false, forceDelete =3D false) execution failed. Except=
ion: IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorEx=
ception: Shared Volume cannot be deleted: (u"Cannot delete shared image d58=
4d61c-5759-4e13-a9a4-f1a75068edd6. volImgs: {u'b24d30ea-8774-4dfa-adcf-e30b=
0ef73592': ImgsPar(imgs=3D(u'd584d61c-5759-4e13-a9a4-f1a75068edd6',
u'dd10f=
fd2-edb2-4923-bd34-a6a12a76beaf'), parent=3D'00000000-0000-0000-0000-000000=
000000')}",)
2014-12-24 11:44:19,457 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.De=
leteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] FINI=
SH, DeleteImageGroupVDSCommand, log id: 1768709a
2014-12-24 11:44:19,491 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnap=
shotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Command org.ovirt=
.engine.core.bll.RemoveTemplateSnapshotCommand throw Vdc Bll exception. Wit=
h error message VdcBLLException: org.ovirt.engine.core.vdsbroker.irsbroker.=
IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorExcepti=
on: Shared Volume cannot be deleted: (u"Cannot delete shared image d584d61c=
-5759-4e13-a9a4-f1a75068edd6. volImgs: {u'b24d30ea-8774-4dfa-adcf-e30b0ef73=
592': ImgsPar(imgs=3D(u'd584d61c-5759-4e13-a9a4-f1a75068edd6',
u'dd10ffd2-e=
db2-4923-bd34-a6a12a76beaf'), parent=3D'00000000-0000-0000-0000-00000000000=
0')}",) (Failed with error CannotDeleteSharedVolume and code 223)
2014-12-24 11:44:19,636 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnap=
shotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transaction rolle=
d-back for command: org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand=
.
2014-12-24 11:44:19,641 INFO [org.ovirt.engine.core.bll.tasks.AsyncTaskMan=
ager] (org.ovirt.thread.pool-8-thread-47) [296e0a] Removed task e2d5b03c-00=
8d-4493-8601-51354f7cda7a from DataBase
2014-12-24 11:44:19,678 INFO [org.ovirt.engine.core.bll.RemoveAllVmTemplat=
eImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Comman=
d [id=3Df7b1b13c-2d21-4d2c-a4f6-7ab4f07c1fe3]: Compensating CHANGED_STATUS_=
ONLY of org.ovirt.engine.core.common.businessentities.VmTemplate; snapshot:=
EntityStatusSnapshot [id=3Db0968117-4932-47af-a4da-c3c5c9b2b2bd, status=3D=
OK].
2014-12-24 11:44:19,742 ERROR [org.ovirt.engine.core.bll.RemoveAllVmTemplat=
eImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transa=
ction rolled-back for command: org.ovirt.engine.core.bll.RemoveAllVmTemplat=
eImageTemplatesCommand.
2014-12-24 11:44:19,818 ERROR [org.ovirt.engine.core.dal.dbbroker.auditlogh=
andling.AuditLogDirector] (org.ovirt.thread.pool-8-thread-47) [296e0a] Corr=
elation ID: 704a05dd, Job ID: 7b890ce3-860e-41da-af7c-2951d82146d5, Call St=
ack: null, Custom Event ID: -1, Message: Failed to initiate removal of Temp=
late Vagrant_CentOS7_4 (User: admin).
2014-12-24 11:44:19,881 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateCo=
mmand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Lock freed to object En=
gineLock [exclusiveLocks=3D key: b0968117-4932-47af-a4da-c3c5c9b2b2bd value=
: TEMPLATE
, sharedLocks=3D ]
Is there a way to force remove perhaps from the ovirt-shell?
Jackson
--_000_HK2PR03MB08201EA7FCCECDBF94D27A309C540HK2PR03MB0820apcp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml"
xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word"
=
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
xmlns=3D"http:=
//www.w3.org/TR/REC-html40"
<head
<meta http-equiv=3D"Content-Type"
content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"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=3D"edit" spidmax=3D"1026"
<v:textbox inset=3D"5.85pt,.7pt,5.85pt,.7pt" /
</o:shapedefaults></xml><![endif]--><!--[if gte mso
9]><xml
<o:shapelayout
v:ext=3D"edit"
<o:idmap v:ext=3D"edit"
data=3D"1" /
</o:shapelayout></xml><![endif]--
</head
<body lang=3D"JA"
link=3D"blue" vlink=3D"purple" style=3D"text-justify-trim=
:punctuation"
<div
class=3D"WordSection1"
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">I ha=
ve a template which I no longer need but I cannot remove it. The temp=
late 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=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt"><o:p=
> </o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">The =
logs during removal:<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt"><o:p=
> </o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,002 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateC=
ommand] (ajp--127.0.0.1-8702-4) [704a05dd] Lock Acquired to object EngineLo=
ck [exclusiveLocks=3D key: b0968117-4932-47af-a4da-c3c5c9b2b2bd
value: TEMPLATE<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">, sh=
aredLocks=3D ]<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,095 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateC=
ommand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Running command: Rem=
oveVmTemplateCommand internal: false. Entities
affected : ID: b0968117-4932-47af-a4da-c3c5c9b2b2bd Type: VmTemplate=
Action group DELETE_TEMPLATE with role type
USER<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,150 INFO [org.ovirt.engine.core.bll.RemoveAllVmTempla=
teImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [704a05dd] Run=
ning command: RemoveAllVmTemplateImageTemplatesCommand
internal: true. Entities affected : ID: b0968117-4932-47af-a4da-c3c5=
c9b2b2bd Type: VmTemplate<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,224 INFO [org.ovirt.engine.core.bll.RemoveTemplateSna=
pshotCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Running command:=
RemoveTemplateSnapshotCommand internal: true.
Entities affected : ID: 73968e04-9176-439c-a9e8-fa5313d15f8e Type: S=
torage<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,291 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.D=
eleteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] STA=
RT, DeleteImageGroupVDSCommand( storagePoolId
=3D bd7c67a2-5008-41a0-808a-b9f58f2742d7, ignoreFailoverLimit =3D false, s=
torageDomainId =3D 73968e04-9176-439c-a9e8-fa5313d15f8e, imageGroupId =3D d=
584d61c-5759-4e13-a9a4-f1a75068edd6, postZeros =3D false, forceDelete =3D f=
alse), log id: 1768709a<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,324 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.Delete=
ImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Command =
DeleteImageGroupVDSCommand( storagePoolId
=3D bd7c67a2-5008-41a0-808a-b9f58f2742d7, ignoreFailoverLimit =3D false, s=
torageDomainId =3D 73968e04-9176-439c-a9e8-fa5313d15f8e, imageGroupId =3D d=
584d61c-5759-4e13-a9a4-f1a75068edd6, postZeros =3D false, forceDelete =3D f=
alse) execution failed. Exception: IrsOperationFailedNoFailoverException:
IRSGenericException: IRSErrorException: Shared Volume cannot be deleted: (=
u"Cannot delete shared image d584d61c-5759-4e13-a9a4-f1a75068edd6. vol=
Imgs: {u'b24d30ea-8774-4dfa-adcf-e30b0ef73592': ImgsPar(imgs=3D(u'd584d61c-=
5759-4e13-a9a4-f1a75068edd6', u'dd10ffd2-edb2-4923-bd34-a6a12a76beaf'),
parent=3D'00000000-0000-0000-0000-000000000000')}",)<o:p></o:p></span=
></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,457 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.D=
eleteImageGroupVDSCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] FIN=
ISH, DeleteImageGroupVDSCommand, log id:
1768709a<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,491 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshot=
Command] (org.ovirt.thread.pool-8-thread-47) [296e0a] Command org.ovirt.eng=
ine.core.bll.RemoveTemplateSnapshotCommand
throw Vdc Bll exception. With error message VdcBLLException: org.ovirt.eng=
ine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException: IRSGene=
ricException: IRSErrorException: Shared Volume cannot be deleted: (u"C=
annot delete shared image d584d61c-5759-4e13-a9a4-f1a75068edd6.
volImgs: {u'b24d30ea-8774-4dfa-adcf-e30b0ef73592': ImgsPar(imgs=3D(u'd584d=
61c-5759-4e13-a9a4-f1a75068edd6', u'dd10ffd2-edb2-4923-bd34-a6a12a76beaf'),=
parent=3D'00000000-0000-0000-0000-000000000000')}",) (Failed with err=
or CannotDeleteSharedVolume and code 223)<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,636 ERROR [org.ovirt.engine.core.bll.RemoveTemplateSnapshot=
Command] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transaction rolled-ba=
ck for command: org.ovirt.engine.core.bll.RemoveTemplateSnapshotCommand.<o:=
p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,641 INFO [org.ovirt.engine.core.bll.tasks.AsyncTaskMa=
nager] (org.ovirt.thread.pool-8-thread-47) [296e0a] Removed task e2d5b03c-0=
08d-4493-8601-51354f7cda7a from DataBase<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,678 INFO [org.ovirt.engine.core.bll.RemoveAllVmTempla=
teImageTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Comma=
nd [id=3Df7b1b13c-2d21-4d2c-a4f6-7ab4f07c1fe3]:
Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businesse=
ntities.VmTemplate; snapshot: EntityStatusSnapshot [id=3Db0968117-4932-47af=
-a4da-c3c5c9b2b2bd, status=3DOK].<o:p></o:p></span></p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,742 ERROR [org.ovirt.engine.core.bll.RemoveAllVmTemplateIma=
geTemplatesCommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Transactio=
n rolled-back for command: org.ovirt.engine.core.bll.RemoveAllVmTemplateIma=
geTemplatesCommand.<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,818 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandl=
ing.AuditLogDirector] (org.ovirt.thread.pool-8-thread-47) [296e0a] Correlat=
ion 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=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">2014=
-12-24 11:44:19,881 INFO [org.ovirt.engine.core.bll.RemoveVmTemplateC=
ommand] (org.ovirt.thread.pool-8-thread-47) [296e0a] Lock freed to object E=
ngineLock [exclusiveLocks=3D key: b0968117-4932-47af-a4da-c3c5c9b2b2bd
value: TEMPLATE<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">, sh=
aredLocks=3D ]<o:p></o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt"><o:p=
> </o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">Is t=
here a way to force remove perhaps from the
ovirt-shell?<o:p></o:p></span><=
/p
<p class=3D"MsoNormal"><span
lang=3D"EN-US" style=3D"font-size:10.0pt"><o:p=
> </o:p></span></p
<p
class=3D"MsoNormal"><span lang=3D"EN-US"
style=3D"font-size:10.0pt">Jack=
son<o:p></o:p></span></p
</div
</body
</html
--_000_HK2PR03MB08201EA7FCCECDBF94D27A309C540HK2PR03MB0820apcp_--