cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thanh Đức <nguyenthanhduc4...@gmail.com>
Subject Re: Add Templates and ISOs
Date Thu, 10 Dec 2020 16:11:15 GMT
Hi,

Can you help me answer the questions below:

1. I have CentOS 5.5(64-bit) no GUI in template but I could not found it when I adding intances.
2. I use ubuntu and already run commands below :
    # mkdir -p /export/primary
    # mkdir -p /export/secondary
    # vi /etc/exports 
   /export  *(rw,async,no_root_squash,no_subtree_check)
    # exportfs -a
    # mkdir -p /mnt/secondary
    # mount -t nfs 192.168.88.154:/export/secondary /mnt/secondary
192.168.88.154 is my IP address
   # /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary

 -u http://download.cloudstack.org/systemvm/4.14/systemvmtemplate-4.14.0-kvm.qcow2.bz2 -h
kvm -s  -F

But when I add the zone, I have a problem 'Unable to create a deployment for VM[SecondaryStorageVm|s-69-VM]Scope=interface
com.cloud.dc.DataCenter; id=3'

Please help me, I hope to get your reply as soon as possible. Thank you so much.

Best regards,
Duc

(logid:6db5b384) Exception while trying to start secondary storage vm
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for
VM[SecondaryStorageVm|s-69-VM]Scope=interface com.cloud.dc.DataCenter; id=3
	at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:1089)
	at com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:5227)
	at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
	at com.cloud.vm.VirtualMachineManagerImpl.handleVmWorkJob(VirtualMachineManagerImpl.java:5390)
	at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
	at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:603)
	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 org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:551)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
2020-12-10 07:59:57,427 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Complete async job-239, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Fail
to start system vm"}
2020-12-10 07:59:57,428 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Publish async job-239 complete on message bus
2020-12-10 07:59:57,428 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Wake up jobs related to job-239
2020-12-10 07:59:57,428 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Update db status for job-239
2020-12-10 07:59:57,429 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Wake up jobs joined with job-239 and disjoin all subjobs created
from job- 239
2020-12-10 07:59:57,433 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Done executing org.apache.cloudstack.api.command.admin.systemvm.StartSystemVMCmd
for job-239
2020-12-10 07:59:57,434 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-22:ctx-b40c8151
job-239) (logid:6db5b384) Remove job-239 from job monitoring
2020-12-10 07:59:57,829 DEBUG [c.c.c.ClusterManagerImpl] (Cluster-Heartbeat-1:ctx-f3e77fee)
(logid:5ecd3cf2) Detected management node left, id:1, nodeIP:192.168.88.154


On 2020/12/09 07:28:24, Darrin Hüsselmann <Darrin.Husselmann@shapeblue.com> wrote:

> 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 <nguyenthanhduc4444@gmail.com>
> Sent: Tuesday, December 8, 2020 4:18 AM
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> 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 <www.rakeshv.com@gmail.com<http://www.rakeshv.com@gmail.com>>
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
> >
> > 
> Darrin.Husselmann@shapeblue.com 
> 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 <nguyenthanhduc4444@gmail.com> 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
> >
> 

Mime
View raw message