cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Likitha Shetty <likitha.she...@citrix.com>
Subject RE: Dynamic Scaling of VM
Date Tue, 22 Apr 2014 04:07:17 GMT
Tejas, you must be running into this error because Clone_VM vCenter task is taking more than
20 minutes to complete.

To avoid this error use global configuration 'vmware.vcenter.session.timeout' to increase
the default timeout value. In vCenter under Tasks and Events, check how long the CloneVM task
takes to complete and increase the timeout value accordingly (refer - https://issues.apache.org/jira/browse/CLOUDSTACK-5069).

Thanks,
Likitha

-----Original Message-----
From: Tejas Gadaria [mailto:refond.gmrt@gmail.com] 
Sent: Tuesday, April 22, 2014 8:45 AM
To: dev@cloudstack.apache.org
Cc: users@cloudstack.apache.org
Subject: Re: Dynamic Scaling of VM

Hi Nitin,

you are right,
I changed to *enable.dynamic.scale.vm = false*

Created another centos template without dynamic scaling, still facing same issue.
On management server it displaying same logs as above.

I am using vCenter 5.5 and Esxi host 5.1

Regards,
Tejas



On Tue, Apr 22, 2014 at 12:25 AM, Nitin Mehta <Nitin.Mehta@citrix.com>wrote:

> Error doesn't seem to be coming from dynamic scaling. Change the 
> config below to false and see if you still hit the issue.
> *enable.dynamic.scale.vm* = false
>
>
> On 19/04/14 8:48 PM, "Tejas Gadaria" <refond.gmrt@gmail.com> wrote:
>
> >Hi,
> >
> >I am trying to test dynamic scaling of vm on vmware with CS 4.3.
> >I have CentOS 6.3 template with vmware tools installed.
> >
> >In global setting *enable.dynamic.scale.vm* = *true, *
> >
> >
> >*mem.overprovisioning.factor =2 *
> >while trying to deploy template, it's giving below error..
> >
> >2014-04-20 09:06:31,808 DEBUG [c.c.h.v.u.VmwareClient] 
> >(DirectAgent-27:ctx-80068c4c 10.129.151.67) Cancelling vCenter task 
> >because task failed with java.net.SocketTimeoutException: Read timed 
> >out
> >2014-04-20 09:06:32,354 ERROR [c.c.s.r.VmwareStorageProcessor] 
> >(DirectAgent-27:ctx-80068c4c 10.129.151.67) clone volume from base 
> >image failed due to Exception: java.lang.RuntimeException
> >Message: vCenter task failed due to java.net.SocketTimeoutException: 
> >Read timed out
> >
> >java.lang.RuntimeException: vCenter task failed due to
> >java.net.SocketTimeoutException: Read timed out
> >    at
> >com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClien
> >t.jav
> >a:341)
> >    at
> >com.cloud.hypervisor.vmware.mo.VirtualMachineMO.createFullClone(Virtu
> >alMac
> >hineMO.java:619)
> >    at
> >com.cloud.storage.resource.VmwareStorageProcessor.createVMFullClone(V
> >mware
> >StorageProcessor.java:266)
> >    at
> >com.cloud.storage.resource.VmwareStorageProcessor.cloneVolumeFromBase
> >Templ
> >ate(VmwareStorageProcessor.java:338)
> >    at
> >com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute
> >(Stor
> >ageSubsystemCommandHandlerBase.java:78)
> >    at
> >com.cloud.storage.resource.VmwareStorageSubsystemCommandHandler.execu
> >te(Vm
> >wareStorageSubsystemCommandHandler.java:171)
> >    at
> >com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleS
> >torag
> >eCommands(StorageSubsystemCommandHandlerBase.java:50)
> >    at
> >com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(Vm
> >wareR
> >esource.java:571)
> >    at
> >com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAg
> >entAt
> >tache.java:216)
> >    at
> >org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Ma
> >naged
> >ContextRunnable.java:49)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.ca
> >ll(De
> >faultManagedContext.java:56)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.call
> >WithC
> >ontext(DefaultManagedContext.java:103)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runW
> >ithCo
> >ntext(DefaultManagedContext.java:53)
> >    at
> >org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Mana
> >gedCo
> >ntextRunnable.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.ScheduledThreadPoolExecutor$ScheduledFutureTask.
> >acces
> >s$101(ScheduledThreadPoolExecutor.java:165)
> >    at
> >java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
> >run(S
> >cheduledThreadPoolExecutor.java:266)
> >    at
> >java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> >1110)
> >    at
> >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> >.java
> >:603)
> >    at java.lang.Thread.run(Thread.java:679)
> >2014-04-20 09:06:32,355 DEBUG [c.c.a.m.DirectAgentAttache]
> >(DirectAgent-27:ctx-80068c4c) Seq 1-585564250: Response Received:
> >2014-04-20 09:06:32,355 DEBUG [c.c.a.m.DirectAgentAttache]
> >(DirectAgent-27:ctx-80068c4c) Seq 1-585564250: Response Received:
> >2014-04-20 09:06:32,355 DEBUG [c.c.a.t.Request]
> >(DirectAgent-27:ctx-80068c4c) Seq 1-585564250: Processing:  { Ans: ,
> >MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10, 
> >[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":fal
> >se,"d
> >etails":"java.lang.RuntimeException:
> >vCenter task failed due to java.net.SocketTimeoutException: Read 
> >timed out","wait":0}}] }
> >2014-04-20 09:06:32,355 DEBUG [c.c.a.t.Request]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Seq 1-585564250: Received:  
> >{
> >Ans: , MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10, { 
> >CopyCmdAnswer } }
> >2014-04-20 09:06:32,363 WARN  
> >[o.a.c.s.d.ObjectInDataStoreManagerImpl]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Unsupported data object 
> >(VOLUME, 
> >org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@70f99830
> >),
> no
> >need to delete from object in store ref table
> >2014-04-20 09:06:32,363 INFO  [o.a.c.s.v.VolumeServiceImpl]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) releasing lock for 
> >VMTemplateStoragePool 2
> >2014-04-20 09:06:32,365 WARN  [c.c.u.d.Merovingian2]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Was unable to find lock 
> >for the key template_spool_ref2 and thread id 1680763282
> >2014-04-20 09:06:32,365 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Unable to create
> >Vol[9|vm=9|ROOT]:java.lang.RuntimeException: vCenter task failed due 
> >to
> >java.net.SocketTimeoutException: Read timed out
> >2014-04-20 09:06:32,367 INFO  [c.c.v.VirtualMachineManagerImpl]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Unable to contact resource.
> >com.cloud.exception.StorageUnavailableException: Resource 
> >[StoragePool:1] is unreachable: Unable to create
> >Vol[9|vm=9|ROOT]:java.lang.RuntimeException: vCenter task failed due 
> >to
> >java.net.SocketTimeoutException: Read timed out
> >    at
> >org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreat
> >eVolu
> >me(VolumeOrchestrator.java:1202)
> >    at
> >org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare
> >(Volu
> >meOrchestrator.java:1254)
> >    at
> >com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachin
> >eMana
> >gerImpl.java:962)
> >    at
> >com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineMan
> >agerI
> >mpl.java:761)
> >    at
> >com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImp
> >l.jav
> >a:601)
> >    at
> >org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.dep
> >loyVi
> >rtualMachine(VMEntityManagerImpl.java:228)
> >    at
> >org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImp
> >l.dep
> >loy(VirtualMachineEntityImpl.java:207)
> >    at
> >com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:
> >3581)
> >    at
> >com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:
> >3161)
> >    at
> >com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:
> >3147)
> >    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >    at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> >57)
> >    at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >sorIm
> >pl.java:43)
> >    at java.lang.reflect.Method.invoke(Method.java:616)
> >    at
> >org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
> >on(Ao
> >pUtils.java:317)
> >    at
> >org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
> >inpoi
> >nt(ReflectiveMethodInvocation.java:183)
> >    at
> >org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> >Refle
> >ctiveMethodInvocation.java:150)
> >    at
> >com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:
> >50)
> >    at
> >org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> >Refle
> >ctiveMethodInvocation.java:161)
> >    at
> >org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok
> >e(Exp
> >oseInvocationInterceptor.java:91)
> >    at
> >org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> >Refle
> >ctiveMethodInvocation.java:172)
> >    at
> >org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
> >cAopP
> >roxy.java:204)
> >    at $Proxy169.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(ApiAsyncJobDispatcher.
> >java:109)
> >    at
> >com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.ca
> >ll(De
> >faultManagedContext.java:56)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.call
> >WithC
> >ontext(DefaultManagedContext.java:103)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runW
> >ithCo
> >ntext(DefaultManagedContext.java:53)
> >    at
> >com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63)
> >    at
> >org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runIn
> >Conte
> >xt(AsyncJobManagerImpl.java:509)
> >    at
> >org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Ma
> >naged
> >ContextRunnable.java:49)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.ca
> >ll(De
> >faultManagedContext.java:56)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.call
> >WithC
> >ontext(DefaultManagedContext.java:103)
> >    at
> >org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runW
> >ithCo
> >ntext(DefaultManagedContext.java:53)
> >    at
> >org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Mana
> >gedCo
> >ntextRunnable.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:
> >1110)
> >    at
> >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> >.java
> >:603)
> >    at java.lang.Thread.run(Thread.java:679)
> >2014-04-20 09:06:32,373 DEBUG [c.c.v.VirtualMachineManagerImpl]
> >(Job-Executor-1:ctx-0798d9f3 ctx-b6fd95f2) Cleaning up resources for 
> >the vm VM[User|CentOS63-Dynamic-Test1] in Starting state
> >
> >
> >Regards,
> >Tejas
>
>
Mime
View raw message