GitHub user anirudh09041 added a comment to the discussion: VM provisioning 
falied.

Hi @vishesh92 , thanks for replying.

i checked the logs right after provisioning a VM and could find the below error 
and message.

2026-04-07 11:01:03,703 DEBUG [c.c.v.UserVmManagerImpl] 
(API-Job-Executor-4:[ctx-c10eb576, job-156, ctx-ce2ed3a8]) (logid:aaa8047b) 
Destroying vm VM instance 
{"id":24,"instanceName":"i-2-24-VM","state":"Stopped","type":"User","uuid":"c9601b9f-6188-4b9b-b0ea-ba55ea1460fa"}
 as it failed to create on Host: null with id null
2026-04-07 11:01:03,709 DEBUG [c.c.c.CapacityManagerImpl] 
(API-Job-Executor-4:[ctx-c10eb576, job-156, ctx-ce2ed3a8]) (logid:aaa8047b) VM 
instance 
{"id":24,"instanceName":"i-2-24-VM","state":"Error","type":"User","uuid":"c9601b9f-6188-4b9b-b0ea-ba55ea1460fa"}
 state transited from [Stopped] to [Error] with event [OperationFailedToError]. 
VM's original host: null, new host: null, host before state transition: null
2026-04-07 11:01:03,709 DEBUG [c.c.s.d.VolumeDaoImpl] 
(API-Job-Executor-4:[ctx-c10eb576, job-156, ctx-ce2ed3a8]) (logid:aaa8047b) 
Removing volume 29 from DB

2026-04-07 11:01:03,730 DEBUG [o.a.c.a.c.a.v.DeployVMCmdByAdmin] 
(API-Job-Executor-4:[ctx-c10eb576, job-156, ctx-ce2ed3a8]) (logid:aaa8047b) No 
destination found for a deployment for VM instance 
{"id":24,"instanceName":"i-2-24-VM","state":"Stopped","type":"User","uuid":"c9601b9f-6188-4b9b-b0ea-ba55ea1460fa"}
 com.cloud.exception.InsufficientServerCapacityException: No destination found 
for a deployment for VM instance 
{"id":24,"instanceName":"i-2-24-VM","state":"Stopped","type":"User","uuid":"c9601b9f-6188-4b9b-b0ea-ba55ea1460fa"}Scope=interface
 com.cloud.dc.DataCenter; id=3
        at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:227)
        at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:202)
        at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:5640)
        at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:5493)
        at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:5094)
        at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:5083)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        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:109)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
        at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
        at jdk.proxy3/jdk.proxy3.$Proxy210.startVirtualMachine(Unknown Source)
        at 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:781)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
        at 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:661)
        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:609)
        at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
        
        
        
 But as i showd in my ss above there is enough space available on my server. 
Below is how i have set up primary and secondary storage on the same server.
         
         
<img width="1464" height="377" alt="image" 
src="https://github.com/user-attachments/assets/b5a3c3e8-c45d-46a4-a7ea-cb1fd531c3ba";
 />


**Primary Storage**

<img width="1583" height="135" alt="image" 
src="https://github.com/user-attachments/assets/faafff3d-f4d9-43d8-a1a3-c7052b91985d";
 />


**Secondary Storage**

<img width="1592" height="167" alt="image" 
src="https://github.com/user-attachments/assets/aa4a45b0-4a5f-471e-8d13-459db239b55b";
 />



GitHub link: 
https://github.com/apache/cloudstack/discussions/12974#discussioncomment-16479991

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to