Hello,

I have CloudStack 4.2.0 on ubuntu 12.04 with KVM hypervisor. The router VMs 
failed to start.  Two system VMs work fine. When the router VM failed to start, 
there are entries like the following in management-server.log:


2013-12-18 22:49:48,076 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Checking if 
host: 1 has enough capacity for requested CPU: 500 and requested RAM: 134217728 
, cpuOverprovisioningFactor: 1.0
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Hosts's 
actual total CPU: 28008 and CPU after applying overprovisioning: 28008
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) We need to 
allocate to the last host again, so checking if there is enough reserved 
capacity
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Reserved 
CPU: 0 , Requested CPU: 500
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Reserved 
RAM: 0 , Requested RAM: 134217728
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) STATS: 
Failed to alloc resource from host: 1 reservedCpu: 0, requested cpu: 500, 
reservedMem: 0, requested mem: 134217728
2013-12-18 22:49:48,077 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Host does 
not have enough reserved CPU available, cannot allocate to this host.
2013-12-18 22:49:48,077 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) The last 
host of this VM does not have enough capacity
2013-12-18 22:49:48,077 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl] 
(Job-Executor-14:job-47 = [ fb35f9d6-10bb-4a69-9dcd-ad0d405ab1f1 ]) Cannot 
choose the last host to deploy this VM

My host has eight core CPU, enough free memory, and only two VMs are running at 
that time.

~$ free
             total       used       free     shared    buffers     cached
Mem:      16404204     825780   15578424          0      24144     106496
-/+ buffers/cache:     695140   15709064
Swap:     48932860          0   48932860

Why CloudStack still don't have enough resource?

Thanks in advance,
James

Reply via email to