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 9549C106D3 for ; Mon, 9 Dec 2013 11:28:08 +0000 (UTC) Received: (qmail 13241 invoked by uid 500); 9 Dec 2013 11:28:08 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 13111 invoked by uid 500); 9 Dec 2013 11:28:08 -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 12856 invoked by uid 500); 9 Dec 2013 11:28:08 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 12846 invoked by uid 99); 9 Dec 2013 11:28:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 11:28:08 +0000 Date: Mon, 9 Dec 2013 11:28:08 +0000 (UTC) From: "Pavan Kumar Bandarupally (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-5414) With NFS Image Store migrated to S3 an error is thrown in creation of Virtual Router MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Pavan Kumar Bandarupally created CLOUDSTACK-5414: ---------------------------------------------------- Summary: With NFS Image Store migrated to S3 an error is throw= n in creation of Virtual Router Key: CLOUDSTACK-5414 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5414 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the defa= ult.) Components: SystemVM Affects Versions: 4.3.0 Environment: Management Server: 4.3 Host: VmWare or Xenserver Reporter: Pavan Kumar Bandarupally Priority: Critical Fix For: 4.3.0 Attachments: management-server.log After NFS store is migrated to S3 store, creation of an instance, after add= ing the S3 store, throws an error saying systemVM template that is required= to create virtual router is not available in the S3 store and is being dow= nloaded to S3 The systemVM template is being downloaded from download.cloud= .com/etc=E2=80=A6 The systemVm template is already on NFS Image Store and = NFS Primary Store using which SSVM and CPVM were already created. Repro Steps: ------------ 1) Create an advanced zone with an NFS secondary store and enable the zone. 2) Wait till the system VMs (except Virtual Router) SSVM and CPVM are creat= ed. 3) Now migrate the NFS secondary store to S3 (using prepareObjectStoreForMi= gration option). The store will be converted to Staging Store. 4) Add an S3 secondary store=20 5) Now try to deploy an instance using a downloaded (default CentOS or othe= r) template. 6) An error will be thrown=20 Expected: ---------- The instance should be deployed successfully, as the Virtual Router can be = created using the SystemVm template already on the NFS Staging store. Actual: --------- An error will be thrown saying that the template required for creation of V= R is not yet downloaded. Attached Management Server logs. Exception: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D com.cloud.utils.exception.CloudRuntimeException: Template 8 has not been co= mpletely downloaded to zone 1 at com.cloud.template.TemplateManagerImpl.getTemplateSize(TemplateM= anagerImpl.java:1715) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingRef= lection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.inv= okeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.= invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkD= ynamicAopProxy.java:204) at $Proxy159.getTemplateSize(Unknown Source) at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.al= locateTemplatedVolume(VolumeOrchestrator.java:638) at com.cloud.vm.VirtualMachineManagerImpl$1.doInTransactionWithoutR= esult(VirtualMachineManagerImpl.java:401) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doIn= Transaction(TransactionCallbackWithExceptionNoReturn.java:25) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doIn= Transaction(TransactionCallbackWithExceptionNoReturn.java:21) at com.cloud.utils.db.Transaction.execute(Transaction.java:37) at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachineMa= nagerImpl.java:379) at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachineMa= nagerImpl.java:418) at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.depl= oyRouter(VirtualNetworkApplianceManagerImpl.java:1542) at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.find= OrDeployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java= :1429) at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.depl= oyVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java:1842) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingRef= lection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.inv= okeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.= invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkD= ynamicAopProxy.java:204) at $Proxy240.deployVirtualRouterInGuestNetwork(Unknown Source) at com.cloud.network.element.VirtualRouterElement.implement(Virtual= RouterElement.java:188) at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.i= mplementNetworkElementsAndResources(NetworkOrchestrator.java:1053) at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.i= mplementNetwork(NetworkOrchestrator.java:960) at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.p= repare(NetworkOrchestrator.java:1222) at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualM= achineManagerImpl.java:899) at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachi= neManagerImpl.java:706) at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManag= erImpl.java:552) at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImp= l.deployVirtualMachine(VMEntityManagerImpl.java:228) at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEnti= tyImpl.deploy(VirtualMachineEntityImpl.java:209) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManager= Impl.java:3544) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManager= Impl.java:3125) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManager= Impl.java:3111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingRef= lection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.inv= okeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:150) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterce= ptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.= invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.pro= ceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkD= ynamicAopProxy.java:204) at $Proxy170.startVirtualMachine(Unknown Source) at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(De= ployVMCmd.java:443) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobD= ispatcher.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.r= un(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.ja= va:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:33= 4) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec= utor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:603) at java.lang.Thread.run(Thread.java:679) -- This message was sent by Atlassian JIRA (v6.1.4#6159)