Hi Thanh When the management server starts, it tries to deploy a virtual machine called the Secondary Storage VM. The Secondary Storage VM is created using a template called the System VM template which needs to be available in your secondary storage location. http://docs.cloudstack.apache.org/en/latest/installguide/management-server/index.html#prepare-the-system-vm-template.
Cheers Darrin ________________________________ From: Thanh Đức <[email protected]> Sent: Tuesday, December 8, 2020 4:18 AM To: [email protected] <[email protected]> Subject: Re: Add Templates and ISOs My error I got is "There is no secondary storage VM for downloading template to image store nfs://192.168.88.152/export/secondary". When I check my secondary storage in dashboard I see secondary storage 0KB/0KB but Primary storage 100GB. Did I skip the step of installing secondary ? 020-12-07 18:12:16,477 DEBUG [c.c.u.d.T.Transaction] (qtp1434234664-21:ctx-5787d908 ctx-a7ce2d8e) (logid:8ba86634) Rolling back the transaction: Time = 58 Name = qtp1434234664-21; called by -TransactionLegacy.rollback:890-TransactionLegacy.removeUpTo:833-TransactionLegacy.close:657-Transaction.execute:38-Transaction.execute:47-HypervisorTemplateAdapter.createTemplateForPostUpload:292-TemplateManagerImpl.registerPostUploadInternal:360-TemplateManagerImpl.registerIsoForPostUpload:414-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:62-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:566 2020-12-07 18:12:16,504 ERROR [c.c.a.ApiServer] (qtp1434234664-21:ctx-5787d908 ctx-a7ce2d8e) (logid:8ba86634) unhandled exception executing api command: [Ljava.lang.String;@549f59f7 com.cloud.utils.exception.CloudRuntimeException: There is no secondary storage VM for downloading template to image store nfs://192.168.88.152/export/secondary at com.cloud.template.HypervisorTemplateAdapter$1.doInTransaction(HypervisorTemplateAdapter.java:357) at com.cloud.template.HypervisorTemplateAdapter$1.doInTransaction(HypervisorTemplateAdapter.java:292) at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:50) at com.cloud.utils.db.Transaction.execute(Transaction.java:40) at com.cloud.utils.db.Transaction.execute(Transaction.java:47) at com.cloud.template.HypervisorTemplateAdapter.createTemplateForPostUpload(HypervisorTemplateAdapter.java:292) at com.cloud.template.TemplateManagerImpl.registerPostUploadInternal(TemplateManagerImpl.java:360) at com.cloud.template.TemplateManagerImpl.registerIsoForPostUpload(TemplateManagerImpl.java:414) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at com.sun.proxy.$Proxy185.registerIsoForPostUpload(Unknown Source) at org.apache.cloudstack.api.command.user.iso.GetUploadParamsForIsoCmd.execute(GetUploadParamsForIsoCmd.java:133) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:759) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:583) at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:310) at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130) 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.ApiServlet.processRequest(ApiServlet.java:127) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:645) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1386) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:767) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:500) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.base/java.lang.Thread.run(Thread.java:834) 2020-12-07 18:12:16,519 DEBUG [c.c.a.ApiServlet] (qtp1434234664-21:ctx-5787d908 ctx-a7ce2d8e) (logid:8ba86634) ===END=== 192.168.88.1 -- GET name=ubuntu&displaytext=ubuntu+1604&zoneid=e5543299-8903-4bf8-a280-0a7650412516&bootable=false&isextractable=false&ispublic=false&isfeatured=false&format=ISO&command=getUploadParamsForIso&response=json 2020-12-07 18:12:17,247 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-ebcc0e2f) (logid:d339d6e7) Found 0 routers to update status. 2020-12-07 18:12:17,248 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-ebcc0e2f) (logid:d339d6e7) Found 0 VPC's to update Redundant State. 2020-12-07 18:12:17,250 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-ebcc0e2f) (logid:d339d6e7) Found 0 networks to update RvR status. 2020-12-07 18:12:17,649 INFO [c.c.a.m.AgentManagerImpl] (AgentMonitor-1:ctx-4ac35733) (logid:01950b7c) Found the following agents behind on ping: [1] 2020-12-07 18:12:17,652 DEBUG [c.c.a.m.AgentManagerImpl] (AgentMonitor-1:ctx-4ac35733) (logid:01950b7c) Ping timeout for agent 1, do invstigation 2020-12-07 18:12:17,664 INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Investigating why host 1 has disconnected with event PingTimeout 2020-12-07 18:12:17,666 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) checking if agent (1) is alive 2020-12-07 18:12:17,673 DEBUG [c.c.a.t.Request] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Seq 1-6317142902317252678: Sending { Cmd , MgmtId: 3232258200, via: 1(cloudstack-mgmt), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.CheckHealthCommand":{"wait":50}}] } 2020-12-07 18:12:17,683 DEBUG [c.c.a.t.Request] (AgentManager-Handler-9:null) (logid:) Seq 1-6317142902317252678: Processing: { Ans: , MgmtId: 3232258200, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.CheckHealthAnswer":{"result":true,"details":"resource is alive","wait":0}}] } 2020-12-07 18:12:17,683 DEBUG [c.c.a.t.Request] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Seq 1-6317142902317252678: Received: { Ans: , MgmtId: 3232258200, via: 1(cloudstack-mgmt), Ver: v1, Flags: 10, { CheckHealthAnswer } } 2020-12-07 18:12:17,683 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Details from executing class com.cloud.agent.api.CheckHealthCommand: resource is alive 2020-12-07 18:12:17,683 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) agent (1) responded to checkHeathCommand, reporting that agent is Up 2020-12-07 18:12:17,684 INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) The agent from host 1 state determined is Up 2020-12-07 18:12:17,684 INFO [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Agent is determined to be up and running 2020-12-07 18:12:17,684 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-9:ctx-00c4f65b) (logid:30f4ebe7) Transition:[Resource state = Enabled, Agent event = Ping, Host id = 1, name = cloudstack-mgmt] 2020-12-07 18:12:30,910 DEBUG [o.a.c.s.SecondaryStorageManagerImpl] (secstorage-1:ctx-52f2c10a) (logid:7210a110) Zone 1 is not ready to launch secondary storage VM yet 2020-12-07 18:12:31,062 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-8bf630ba) (logid:81f4c520) Zone 1 is not ready to launch console proxy yet 2020-12-07 18:12:32,771 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-ead549af) (logid:5fededf3) AutoScaling Monitor is running... On 2020/12/07 18:19:27, Rakesh v <[email protected]<http://[email protected]>> wrote: > The error message says "secondary storage VM" isn't running. > So check in logs to see why it didn't start. > > If it's in running but not in connected state, destroy it and see if you get > any errors in logs > > Sent from my iPhone > > [email protected] www.shapeblue.com 3 London Bridge Street, 3rd floor, News Building, London SE1 9SGUK @shapeblue > On 07-Dec-2020, at 6:21 PM, Thanh Đức <[email protected]> wrote: > > > > Hi all, > > > > I tried add templates and ISOs file but I got a problem : Request Failed > > (530) > > "There is no secondary storage VM for downloading template to image store > > NewSecond" > > > > how can fix it ? > > > > Best regards, > > Duc >
