Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA00B17FA6 for ; Sun, 1 Feb 2015 06:55:34 +0000 (UTC) Received: (qmail 20748 invoked by uid 500); 1 Feb 2015 06:55:35 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 20721 invoked by uid 500); 1 Feb 2015 06:55:35 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 20712 invoked by uid 500); 1 Feb 2015 06:55:35 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 20709 invoked by uid 99); 1 Feb 2015 06:55:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2015 06:55:35 +0000 Date: Sun, 1 Feb 2015 06:55:35 +0000 (UTC) From: "Salvatore Sciacco (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CLOUDSTACK-7640) Failed to delete template that failed to download MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-7640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300094#comment-14300094 ] Salvatore Sciacco edited comment on CLOUDSTACK-7640 at 2/1/15 6:55 AM: ----------------------------------------------------------------------- Same issue with 4.4.0 Failed ISO download and SM unable to remove the ISO from secondary storage. {quote} 2015-02-01 07:41:31,784 INFO [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Delete template from image store: de1e17bc-8bd8-4cf3-b68c-fcb033527fde 2015-02-01 07:41:31,788 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) template 2753 is already in store:35, type:Image 2015-02-01 07:41:31,821 DEBUG [c.c.a.t.Request] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Seq 64-2538904289930124769: Sending { Cmd , MgmtId: 345049137152, via: 64(s-6580-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.comma nd.DeleteCommand":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/1120/2753","origUrl":"http://www.turnkeylinux.org/download?file=turnkey-openvpn-13.0-wheezy-amd64.iso","uuid":"483e76b3-8951-4aef-9c45-b9050103ca1c","id": 2753,"format":"ISO","accountId":1120,"hvm":true,"displayText":"OpenVPN ISO Full","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://192.168.11.6/home/a1iwstack","_role":"Image"}},"name":"2753-1120-b077fbf5-ef71-3296-a0a5-9f26d39f1de4","hypervi sorType":"None"}},"wait":0}}] } 2015-02-01 07:41:31,950 DEBUG [c.c.a.t.Request] (AgentManager-Handler-26:null) Seq 64-2538904289930124769: Processing: { Ans: , MgmtId: 345049137152, via: 64, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Unable to delete f ile .nfs000000002e00001c00000008 under Template path template/tmpl/1120/2753","wait":0}}] } 2015-02-01 07:41:31,951 DEBUG [c.c.a.t.Request] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Seq 64-2538904289930124769: Received: { Ans: , MgmtId: 345049137152, via: 64, Ver: v1, Flags: 10, { Answer } } 2015-02-01 07:41:31,960 WARN [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Failed to delete the template Tmpl[2753-ISO-2753-1120-b077fbf5-ef71-3296-a0a5-9f26d39f1de4 from the image store: de1e17bc-8bd8-4cf3-b 68c-fcb033527fde due to: Unable to delete file .nfs000000002e00001c00000008 under Template path template/tmpl/1120/2753 2015-02-01 07:41:31,981 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-89:ctx-833621ce job-234705) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd com.cloud.utils.exception.CloudRuntimeException: Failed to delete ISO at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1117) at sun.reflect.GeneratedMethodAccessor1570.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy172.deleteIso(Unknown Source) at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141) at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {quote} was (Author: sas2000): Same issue with 4.4.0 Failed ISO download and SM unable to remove the ISO from secondary storage. {quote} {{ 2015-02-01 07:41:31,784 INFO [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Delete template from image store: de1e17bc-8bd8-4cf3-b68c-fcb033527fde 2015-02-01 07:41:31,788 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) template 2753 is already in store:35, type:Image 2015-02-01 07:41:31,821 DEBUG [c.c.a.t.Request] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Seq 64-2538904289930124769: Sending { Cmd , MgmtId: 345049137152, via: 64(s-6580-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.comma nd.DeleteCommand":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/1120/2753","origUrl":"http://www.turnkeylinux.org/download?file=turnkey-openvpn-13.0-wheezy-amd64.iso","uuid":"483e76b3-8951-4aef-9c45-b9050103ca1c","id": 2753,"format":"ISO","accountId":1120,"hvm":true,"displayText":"OpenVPN ISO Full","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://192.168.11.6/home/a1iwstack","_role":"Image"}},"name":"2753-1120-b077fbf5-ef71-3296-a0a5-9f26d39f1de4","hypervi sorType":"None"}},"wait":0}}] } 2015-02-01 07:41:31,950 DEBUG [c.c.a.t.Request] (AgentManager-Handler-26:null) Seq 64-2538904289930124769: Processing: { Ans: , MgmtId: 345049137152, via: 64, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Unable to delete f ile .nfs000000002e00001c00000008 under Template path template/tmpl/1120/2753","wait":0}}] } 2015-02-01 07:41:31,951 DEBUG [c.c.a.t.Request] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Seq 64-2538904289930124769: Received: { Ans: , MgmtId: 345049137152, via: 64, Ver: v1, Flags: 10, { Answer } } 2015-02-01 07:41:31,960 WARN [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-89:ctx-833621ce job-234705 ctx-bd90ff78) Failed to delete the template Tmpl[2753-ISO-2753-1120-b077fbf5-ef71-3296-a0a5-9f26d39f1de4 from the image store: de1e17bc-8bd8-4cf3-b 68c-fcb033527fde due to: Unable to delete file .nfs000000002e00001c00000008 under Template path template/tmpl/1120/2753 2015-02-01 07:41:31,981 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-89:ctx-833621ce job-234705) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd com.cloud.utils.exception.CloudRuntimeException: Failed to delete ISO at com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1117) at sun.reflect.GeneratedMethodAccessor1570.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy172.deleteIso(Unknown Source) at org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141) at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) }} {quote} > Failed to delete template that failed to download > ------------------------------------------------- > > Key: CLOUDSTACK-7640 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7640 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.4.1 > Reporter: Kyle Browning > > I cannot delete templates that failed to download due to an interrupt in internet. > It continues to attempt to download. > I have 3 secondary storage via NFS > n2xlIjSajSw%3D&_=1411780661255 > 2014-09-26 18:17:38,461 INFO [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-11:ctx-a2ac74ca job-197 ctx-34dfcc08) Delete template from image store: nfs://10.0.1.95/export/secondary > 2014-09-26 18:17:38,463 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (API-Job-Executor-11:ctx-a2ac74ca job-197 ctx-34dfcc08) template 212 is already in store:1, type:Image > 2014-09-26 18:17:38,495 DEBUG [c.c.a.t.Request] (API-Job-Executor-11:ctx-a2ac74ca job-197 ctx-34dfcc08) Seq 2-7018015594326786290: Sending { Cmd , MgmtId: 75361032070884, via: 2(s-3-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DeleteCommand":{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/212","origUrl":"http://10.0.1.66:8080/erebus.vhd","uuid":"bb1e6f1c-7c94-4485-a7af-dd159d943526","id":212,"format":"VHD","accountId":2,"checksum":"80d3de1753b185ce174350aeb8c12892","hvm":true,"displayText":"erebus","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.0.1.95/export/secondary","_role":"Image"}},"name":"212-2-348304b5-905a-33dc-b302-8d9f73689cce","hypervisorType":"XenServer"}},"wait":0}}] } > 2014-09-26 18:17:38,582 DEBUG [c.c.a.t.Request] (AgentManager-Handler-2:null) Seq 2-7018015594326786290: Processing: { Ans: , MgmtId: 75361032070884, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Unable to delete file .nfs00000000001e14e000000001 under Template path template/tmpl/2/212","wait":0}}] } > 2014-09-26 18:17:38,583 DEBUG [c.c.a.t.Request] (API-Job-Executor-11:ctx-a2ac74ca job-197 ctx-34dfcc08) Seq 2-7018015594326786290: Received: { Ans: , MgmtId: 75361032070884, via: 2, Ver: v1, Flags: 10, { Answer } } > 2014-09-26 18:17:38,601 WARN [c.c.t.HypervisorTemplateAdapter] (API-Job-Executor-11:ctx-a2ac74ca job-197 ctx-34dfcc08) Failed to delete the template Tmpl[212-VHD-212-2-348304b5-905a-33dc-b302-8d9f73689cce from the image store: nfs://10.0.1.95/export/secondary due to: Unable to delete file .nfs00000000001e14e000000001 under Template path template/tmpl/2/212 -- This message was sent by Atlassian JIRA (v6.3.4#6332)