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 69BBD10AFF for ; Tue, 10 Dec 2013 21:18:08 +0000 (UTC) Received: (qmail 59339 invoked by uid 500); 10 Dec 2013 21:18:08 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 59315 invoked by uid 500); 10 Dec 2013 21:18: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 59306 invoked by uid 500); 10 Dec 2013 21:18:08 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 59292 invoked by uid 99); 10 Dec 2013 21:18:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 21:18:08 +0000 Date: Tue, 10 Dec 2013 21:18:08 +0000 (UTC) From: "Animesh Chaturvedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 [ https://issues.apache.org/jira/browse/CLOUDSTACK-5414?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Animesh Chaturvedi updated CLOUDSTACK-5414: ------------------------------------------- Assignee: Min Chen > With NFS Image Store migrated to S3 an error is thrown in creation of Vir= tual Router > -------------------------------------------------------------------------= ----------- > > Key: CLOUDSTACK-5414 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-541= 4 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: SystemVM > Affects Versions: 4.3.0 > Environment: Management Server: 4.3 > Host: VmWare or Xenserver > Reporter: Pavan Kumar Bandarupally > Assignee: Min Chen > Priority: Critical > Fix For: 4.3.0 > > Attachments: management-server.log > > > After NFS store is migrated to S3 store, creation of an instance, after a= dding the S3 store, throws an error saying systemVM template that is requir= ed to create virtual router is not available in the S3 store and is being d= ownloaded to S3 The systemVM template is being downloaded from download.clo= ud.com/etc=E2=80=A6 The systemVm template is already on NFS Image Store an= d 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 zon= e. > 2) Wait till the system VMs (except Virtual Router) SSVM and CPVM are cre= ated. > 3) Now migrate the NFS secondary store to S3 (using prepareObjectStoreFor= Migration 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 ot= her) template. > 6) An error will be thrown=20 > Expected: > ---------- > The instance should be deployed successfully, as the Virtual Router can b= e 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= VR 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 = completely downloaded to zone 1 > at com.cloud.template.TemplateManagerImpl.getTemplateSize(Templat= eManagerImpl.java:1715) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.springframework.aop.support.AopUtils.invokeJoinpointUsingR= eflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvocation.i= nvokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:150) > at org.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Jd= kDynamicAopProxy.java:204) > at $Proxy159.getTemplateSize(Unknown Source) > at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.= allocateTemplatedVolume(VolumeOrchestrator.java:638) > at com.cloud.vm.VirtualMachineManagerImpl$1.doInTransactionWithou= tResult(VirtualMachineManagerImpl.java:401) > at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.do= InTransaction(TransactionCallbackWithExceptionNoReturn.java:25) > at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.do= InTransaction(TransactionCallbackWithExceptionNoReturn.java:21) > at com.cloud.utils.db.Transaction.execute(Transaction.java:37) > at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachine= ManagerImpl.java:379) > at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachine= ManagerImpl.java:418) > at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.de= ployRouter(VirtualNetworkApplianceManagerImpl.java:1542) > at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.fi= ndOrDeployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.ja= va:1429) > at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.de= ployVirtualRouterInGuestNetwork(VirtualNetworkApplianceManagerImpl.java:184= 2) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.springframework.aop.support.AopUtils.invokeJoinpointUsingR= eflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvocation.i= nvokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:150) > at org.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Jd= kDynamicAopProxy.java:204) > at $Proxy240.deployVirtualRouterInGuestNetwork(Unknown Source) > at com.cloud.network.element.VirtualRouterElement.implement(Virtu= alRouterElement.java:188) > at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator= .implementNetworkElementsAndResources(NetworkOrchestrator.java:1053) > at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator= .implementNetwork(NetworkOrchestrator.java:960) > at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator= .prepare(NetworkOrchestrator.java:1222) > at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(Virtua= lMachineManagerImpl.java:899) > at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMac= hineManagerImpl.java:706) > at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineMan= agerImpl.java:552) > at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerI= mpl.deployVirtualMachine(VMEntityManagerImpl.java:228) > at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEn= tityImpl.deploy(VirtualMachineEntityImpl.java:209) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManag= erImpl.java:3544) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManag= erImpl.java:3125) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManag= erImpl.java:3111) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.springframework.aop.support.AopUtils.invokeJoinpointUsingR= eflection(AopUtils.java:317) > at org.springframework.aop.framework.ReflectiveMethodInvocation.i= nvokeJoinpoint(ReflectiveMethodInvocation.java:183) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:150) > at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInter= ceptor.java:50) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:161) > at org.springframework.aop.interceptor.ExposeInvocationIntercepto= r.invoke(ExposeInvocationInterceptor.java:91) > at org.springframework.aop.framework.ReflectiveMethodInvocation.p= roceed(ReflectiveMethodInvocation.java:172) > at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(Jd= kDynamicAopProxy.java:204) > at $Proxy170.startVirtualMachine(Unknown Source) > at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(= DeployVMCmd.java:443) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) > at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJo= bDispatcher.java:109) > at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatche= r.java:66) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.runWithContext(DefaultManagedContext.java:53) > at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatch= er.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.DefaultManagedConte= xt$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.runWithContext(DefaultManagedContext.java:53) > at org.apache.cloudstack.managed.context.ManagedContextRunnable.r= un(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(ThreadPoolEx= ecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:603) > at java.lang.Thread.run(Thread.java:679) -- This message was sent by Atlassian JIRA (v6.1.4#6159)