[
https://issues.apache.org/jira/browse/CLOUDSTACK-5092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817105#comment-13817105
]
manasaveloori edited comment on CLOUDSTACK-5092 at 11/8/13 9:04 AM:
--------------------------------------------------------------------
This is reproducible on KVM deployment with two zones using 4.2.1 build.
Here is the error log:
2013-11-08 19:12:04,227 DEBUG [storage.image.BaseImageStoreDriverImpl]
(RemoteHostEndPoint-1:null) Performing image store createTemplate async callback
2013-11-08 19:12:04,245 DEBUG [storage.image.TemplateServiceImpl]
(RemoteHostEndPoint-1:null) Performing copy template cross zone callback after
completion
2013-11-08 19:12:04,265 DEBUG [cloud.template.TemplateManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) copy
template failed for image store seckvm: HTTP Server returned 403 (expected 200
OK)
2013-11-08 19:12:04,280 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) Unexpected
exception while executing
org.apache.cloudstack.api.command.user.template.CopyTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy template
at
com.cloud.template.TemplateManagerImpl.copyTemplate(TemplateManagerImpl.java:740)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.template.CopyTemplateCmd.execute(CopyTemplateCmd.java:124)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
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)
2013-11-08 19:12:04,289 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) Complete
async job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to copy template
2013-11-08 19:12:05,395 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) VmStatsCollector is running...
was (Author: t_manasave):
This is reproducible on KVM deployment with two zones.
Here is the error log:
2013-11-08 19:12:04,227 DEBUG [storage.image.BaseImageStoreDriverImpl]
(RemoteHostEndPoint-1:null) Performing image store createTemplate async callback
2013-11-08 19:12:04,245 DEBUG [storage.image.TemplateServiceImpl]
(RemoteHostEndPoint-1:null) Performing copy template cross zone callback after
completion
2013-11-08 19:12:04,265 DEBUG [cloud.template.TemplateManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) copy
template failed for image store seckvm: HTTP Server returned 403 (expected 200
OK)
2013-11-08 19:12:04,280 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) Unexpected
exception while executing
org.apache.cloudstack.api.command.user.template.CopyTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy template
at
com.cloud.template.TemplateManagerImpl.copyTemplate(TemplateManagerImpl.java:740)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.template.CopyTemplateCmd.execute(CopyTemplateCmd.java:124)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
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)
2013-11-08 19:12:04,289 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-71:job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ]) Complete
async job-162 = [ 8dee54f1-71ec-48d1-accc-98ebc2ca7edc ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to copy template
2013-11-08 19:12:05,395 DEBUG [cloud.server.StatsCollector]
(StatsCollector-2:null) VmStatsCollector is running...
> [Automation] [BVT] Failed to copy template and ISO between zones in xen
> ------------------------------------------------------------------------
>
> Key: CLOUDSTACK-5092
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5092
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: ISO, Template
> Affects Versions: 4.2.1
> Environment: KVM 6.2
> Branch master and 4.1
> Reporter: Rayees Namathponnan
> Priority: Blocker
> Fix For: 4.2.1
>
>
> 1) Create advanced zone in xen, make sure you have 2 zone
> 2) Register ISO http://people.apache.org/~tsp/dummy.iso in zone 1
> 3) Copy ISO from one zone to second zone
> 4) Zone copy failed with below error
> 2013-11-07 14:48:40,281 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-5eef7684) Found 0 routers to update status.
> 2013-11-07 14:48:40,282 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-5eef7684) Found 0 networks to update RvR status.
> 2013-11-07 14:48:40,576 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-11:null) Ping from 9
> 2013-11-07 14:48:41,726 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl]
> (RemoteHostEndPoint-1:ctx-60c37f39) Performing image store createTemplate
> async callback
> 2013-11-07 14:48:41,739 DEBUG [o.a.c.s.i.TemplateServiceImpl]
> (RemoteHostEndPoint-1:ctx-60c37f39) Performing copy template cross zone
> callback after completion
> 2013-11-07 14:48:41,756 DEBUG [c.c.t.TemplateManagerImpl]
> (Job-Executor-145:ctx-2468a954 ctx-1b332c98) copy template failed for image
> store nfs://10.223.110.232:/export/home/automation/CS-Nightly-MS1/secondary:
> HTTP Server returned 403 (
> expected 200 OK)
> 2013-11-07 14:48:41,765 ERROR [c.c.a.ApiAsyncJobDispatcher]
> (Job-Executor-145:ctx-2468a954) Unexpected exception while executing
> org.apache.cloudstack.api.command.user.iso.CopyIsoCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to copy template
> at
> com.cloud.template.TemplateManagerImpl.copyTemplate(TemplateManagerImpl.java:745)
> 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:622)
> 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 com.sun.proxy.$Proxy158.copyTemplate(Unknown Source)
> at
> org.apache.cloudstack.api.command.user.template.CopyTemplateCmd.execute(CopyTemplateCmd.java:125)
> 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:520)
> 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:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:701)
> 2013-11-07 14:48:41,766 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-145:ctx-2468a954) Complete async job-487, jobStatus: FAILED,
> resultCode: 530, result:
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed
> to copy template"}
> 2013-11-07 14:48:41,777 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
> (Job-Executor-145:ctx-2468a954) Done executing
> org.apache.cloudstack.api.command.user.iso.CopyIsoCmd for job-487
> 2013-11-07 14:48:41,785 INFO [o.a.c.f.j.i.AsyncJobMonitor]
> (Job-Executor-145:ctx-2468a954) Remove job-487 from job monitoring
> Template use with this test : systemvmtemplate-2013-07-12-master-xen.vhd.bz2
> Work around,
> -----------------
> You need to update apache web server configurations in ssvm to works copy
> /etc/apache2/apache2.conf
> <Directory "var/www/html/copy">
> Options FollowSymLinks
> Allowoveride None
> </Directory>
--
This message was sent by Atlassian JIRA
(v6.1#6144)