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.wat...@gmail.com <jesse.wat...@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.vazq...@shapeblue.comĀ 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 

Reply via email to