You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by je...@gmail.com on 2019/06/05 18:47:40 UTC

delete UploadAbandoned template

How do I remove abandined templates?

While trying to clean up after couple failed attempts of importing a vm
template status is "UploadAbandoned"
When I try to delete file I get an error , "Failed to delete template"
Looking at management.log
2019-06-05 14:43:17,508 WARN  [c.c.t.HypervisorTemplateAdapter]
(API-Job-Executor-27:ctx-1bdcfb28 job-402 ctx-9643b0f7) (logid:334038d9)
Failed to delete the template:
Tmpl[209-QCOW2-209-2-b1f68c47-8b88-3d46-90fa-753f4e8bcc72 from the image
store: atlas_nfs due to: Unable to delete file 207 under Template path
template/tmpl/2/209

And directory 209 does not exist due to upload being abandoned.

Any suggestions?

TIA,
  Jesse

Re: delete UploadAbandoned template

Posted by je...@gmail.com.
I did not try your fix but I will be trying to import image again soon and
see. My fix was to create directory in template/tmpl/2/209, then using th
UI I was able to remove the template.

Thanks again,

 Jesse

On Wed, Jun 5, 2019 at 4:55 PM Nicolas Vazquez <
Nicolas.Vazquez@shapeblue.com> wrote:

> Hi Jesse,
>
> As the upload was abandoned, it has never started, so the workaround will
> be just deleting the entry from CloudStack as there will be no files on
> secondary storage. To do this, please first execute this query on database:
>
> update template_store_ref set destroyed = 1 where template_id = 209;
>
> After that, try again to delete the template from CloudStack.
>
>
> Regards,
>
> Nicolas Vazquez
>
> ________________________________
> From: jesse.waters@gmail.com <je...@gmail.com>
> Sent: Wednesday, June 5, 2019 3:47 PM
> To: users@cloudstack.apache.org
> Subject: delete UploadAbandoned template
>
> How do I remove abandined templates?
>
> While trying to clean up after couple failed attempts of importing a vm
> template status is "UploadAbandoned"
> When I try to delete file I get an error , "Failed to delete template"
> Looking at management.log
> 2019-06-05 14:43:17,508 WARN  [c.c.t.HypervisorTemplateAdapter]
> (API-Job-Executor-27:ctx-1bdcfb28 job-402 ctx-9643b0f7) (logid:334038d9)
> Failed to delete the template:
> Tmpl[209-QCOW2-209-2-b1f68c47-8b88-3d46-90fa-753f4e8bcc72 from the image
> store: atlas_nfs due to: Unable to delete file 207 under Template path
> template/tmpl/2/209
>
> And directory 209 does not exist due to upload being abandoned.
>
> Any suggestions?
>
> TIA,
>   Jesse
>
> Nicolas.Vazquez@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue
>
>
>
>

Re: delete UploadAbandoned template

Posted by Nicolas Vazquez <Ni...@shapeblue.com>.
Hi Jesse,

As the upload was abandoned, it has never started, so the workaround will be just deleting the entry from CloudStack as there will be no files on secondary storage. To do this, please first execute this query on database:

update template_store_ref set destroyed = 1 where template_id = 209;

After that, try again to delete the template from CloudStack.


Regards,

Nicolas Vazquez

________________________________
From: jesse.waters@gmail.com <je...@gmail.com>
Sent: Wednesday, June 5, 2019 3:47 PM
To: users@cloudstack.apache.org
Subject: delete UploadAbandoned template

How do I remove abandined templates?

While trying to clean up after couple failed attempts of importing a vm
template status is "UploadAbandoned"
When I try to delete file I get an error , "Failed to delete template"
Looking at management.log
2019-06-05 14:43:17,508 WARN  [c.c.t.HypervisorTemplateAdapter]
(API-Job-Executor-27:ctx-1bdcfb28 job-402 ctx-9643b0f7) (logid:334038d9)
Failed to delete the template:
Tmpl[209-QCOW2-209-2-b1f68c47-8b88-3d46-90fa-753f4e8bcc72 from the image
store: atlas_nfs due to: Unable to delete file 207 under Template path
template/tmpl/2/209

And directory 209 does not exist due to upload being abandoned.

Any suggestions?

TIA,
  Jesse

Nicolas.Vazquez@shapeblue.comĀ 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue