Details
Description
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/
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>