[
https://issues.apache.org/jira/browse/CLOUDSTACK-5632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861545#comment-13861545
]
Gaurav Aradhye commented on CLOUDSTACK-5632:
--------------------------------------------
The template is already downloaded and in ready state, still while removing the
template, it throws error and the log says it is currently being downloaded.
This seems to be a product issue.
Log:
2014-01-04 00:16:20,077 DEBUG [c.c.t.HypervisorTemplateAdapter]
(Job-Executor-38:ctx-904b77fb ctx-29e1ff72) Template: Public template-LWLUKO is
currently being
downloaded to secondary storage host:
nfs://10.147.28.8:/vol/dgVol/automation/adv/secondary; cant' delete it.
2014-01-04 00:16:20,078 WARN [c.c.u.AccountManagerImpl]
(Job-Executor-38:ctx-904b77fb ctx-29e1ff72) Failed to delete template while
removing account: Public template-LWLUKO due to:
com.cloud.utils.exception.CloudRuntimeException: Please specify a template that
is not currently being downloaded.
at
com.cloud.template.HypervisorTemplateAdapter.delete(HypervisorTemplateAdapter.java:299)
at
com.cloud.template.TemplateManagerImpl.delete(TemplateManagerImpl.java:769)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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.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 $Proxy158.delete(Unknown Source)
at
com.cloud.user.AccountManagerImpl.cleanupAccount(AccountManagerImpl.java:608)
at
com.cloud.user.AccountManagerImpl.deleteAccount(AccountManagerImpl.java:561)
at
com.cloud.user.AccountManagerImpl.deleteUserAccount(AccountManagerImpl.java:1308)
at sun.reflect.GeneratedMethodAccessor500.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
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 $Proxy82.deleteUserAccount(Unknown Source)
at
org.apache.cloudstack.region.RegionManagerImpl.deleteUserAccount(RegionManagerImpl.java:193)
at
org.apache.cloudstack.region.RegionServiceImpl.deleteUserAccount(RegionServiceImpl.java:118)
at
org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd.execute(DeleteAccountCmd.java:101)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at
com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109)
at
com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
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
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:524)
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
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2014-01-04 00:16:20,086 WARN [c.c.u.AccountManagerImpl]
(Job-Executor-38:ctx-904b77fb ctx-29e1ff72) Failed to delete templates while
removing account id=44
2014-01-04 00:16:20,092 DEBUG [c.c.u.AccountManagerImpl]
(Job-Executor-38:ctx-904b77fb ctx-29e1ff72) Expunging # of vms (accountId=44): 0
> [Automation]template deletion failed because teardown is not waiting for it
> to download
> ---------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5632
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5632
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Automation
> Affects Versions: 4.3.0
> Environment: xenserver 62
> advanced zone
> Reporter: Srikanteswararao Talluri
> Assignee: Gaurav Aradhye
> Fix For: 4.3.0
>
>
> Creating this bug as a place holder for the following failures, needs further
> analysis,
> ContextSuite context=TestTemplateHierarchy>:teardown FAILED Warning:
> Exception during cleanup : Execute cmd: asyncquery failed, due to: {errorcode
> : 530, errortext : u'Please specify a template that is not currently being
> downloaded.'}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)