RE: starting VM and get error of unable to create a deployment for VM[user|i-2-107-VM]

2013-06-19 Thread William Jiang
Anybody has the same situation before ? Any comments or suggestions will be 
great appreciated.

Thanks,
William


-Original Message-
From: William Jiang [mailto:william.ji...@manwin.com]
Sent: June-18-13 12:45 PM
To: d...@cloudstack.apache.org; users@cloudstack.apache.org
Subject: RE: starting VM and get error of unable to create a deployment for 
VM[user|i-2-107-VM]

Hi,
Ubuntu 12.04 does not fully supported by xenserver 6.0.2, but we have some 
Ubuntu 12.04 work well, and we also saw same issue in one windows server 2008 
R2 VM which is fully supported by hypervisor.

The complete logs as following:

#
2013-06-14 12:28:34,328 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-18:null) submit async job-626, details: AsyncJobVO {id:626, 
userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine, 
instanceId: 107, cmd: com.cloud.api.commands.StartVMCmd, cmdOriginator: null, 
cmdInfo: 
{id:2d7d30a0-83d1-4050-a8dd-1b702fbb08e6,response:json,sessionkey:eihe8Buev1Ale+nhxw+w1nqQ\u003d,ctxUserId:2,_:1371227586576,ctxAccountId:2,ctxStartEventId:2584},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
processStatus: 0, resultCode: 0, result: null, initMsid: 110492071566, 
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-06-14 12:28:34,331 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-16:job-626) Executing com.cloud.api.commands.StartVMCmd for 
job-626
2013-06-14 12:28:34,349 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-16:job-626) Service SecurityGroup is not supported in the network 
id=214
2013-06-14 12:28:34,353 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-16:job-626) Service SecurityGroup is not supported in the network 
id=214
2013-06-14 12:28:34,355 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) VM state transitted from :Stopped to Starting with 
event: StartRequestedvm's original host id: 9 new host id: null host id before 
state transition: null
2013-06-14 12:28:34,356 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Successfully transitioned to start state for 
VM[User|i-2-107-VM] reservation id = 3ee7e4d1-a732-4e6b-96d3-eb02caec4df3
2013-06-14 12:28:34,357 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Trying to deploy VM, vm has dcId: 3 and podId: 3
2013-06-14 12:28:34,357 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Deploy avoids pods: null, clusters: null, hosts: null
2013-06-14 12:28:34,359 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Root volume is ready, need to place VM in volume's 
cluster
2013-06-14 12:28:34,359 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Vol[129|vm=107|ROOT] is READY, changing deployment 
plan to use this pool's dcId: 3 , podId: 3 , and clusterId: 3
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) DeploymentPlanner allocation algorithm: random
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Trying to allocate a host and storage pools from 
dc:3, pod:3,cluster:3, requested cpu: 1000, requested ram: 1073741824
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Is ROOT volume READY (pool already allocated)?: Yes
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) This VM has last host_id specified, trying to choose 
the same host: 9
2013-06-14 12:28:34,361 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Checking if host: 9 has enough capacity for requested 
CPU: 1000 and requested RAM: 1073741824 , cpuOverprovisioningFactor: 1.0
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Hosts's actual total CPU: 18616 and CPU after 
applying overprovisioning: 18616
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) We need to allocate to the last host again, so 
checking if there is enough reserved capacity
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved CPU: 0 , Requested CPU: 1000
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved RAM: 0 , Requested RAM: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) STATS: Failed to alloc resource from host: 9 
reservedCpu: 0, requested cpu: 1000, reservedMem: 0, requested mem: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Host does not have enough reserved CPU available, 
cannot allocate to this host.
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 

starting VM and get error of unable to create a deployment for VM[user|i-2-107-VM]

2013-06-18 Thread William Jiang
Hi,

We have a Ubuntu 12.04 VM with one disk on shared storage, it was working well 
before but now we saw the error of unable to create a deployment for 
VM[user|i-2-107-VM] during starting.
We saw this kind of issue happened on a windows server 2008 VM before.

In /var/log/cloud/management/management-server.log
We got following errors:

2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) We need to allocate to the last host again, so 
checking if there is enough reserved capacity
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved CPU: 0 , Requested CPU: 1000
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved RAM: 0 , Requested RAM: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) STATS: Failed to alloc resource from host: 9 
reservedCpu: 0, requested cpu: 1000, reservedMem: 0, requested mem: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Host does not have enough reserved CPU available, 
cannot allocate to this host.
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) The last host of this VM does not have enough capacity
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Cannot choose the last host to deploy this VM

Any ideas about this issue?

Thanks,
William
This e-mail may be privileged and/or confidential, and the sender does not 
waive any related rights and obligations. Any distribution, use or copying of 
this e-mail or the information it contains by other than an intended recipient 
is unauthorized. If you received this e-mail in error, please advise me (by 
return e-mail or otherwise) immediately. Ce courrier ?lectronique est 
confidentiel et prot?g?. L'exp?diteur ne renonce pas aux droits et obligations 
qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des 
renseignements qu'il contient par une personne autre que le (les) 
destinataire(s) d?sign?(s) est interdite. Si vous recevez ce courrier 
?lectronique par erreur, veuillez m'en aviser imm?diatement, par retour de 
courrier ?lectronique ou par un autre moyen.


Re: starting VM and get error of unable to create a deployment for VM[user|i-2-107-VM]

2013-06-18 Thread Nitin Mehta
Can you check the hypervisor admin guide to see if this version of guest
os is supported ?
Also can u please paste the complete logs (grep for job-626 would work as
well) 

On 18/06/13 8:15 PM, William Jiang william.ji...@manwin.com wrote:

Hi,

We have a Ubuntu 12.04 VM with one disk on shared storage, it was working
well before but now we saw the error of unable to create a deployment
for VM[user|i-2-107-VM] during starting.
We saw this kind of issue happened on a windows server 2008 VM before.

In /var/log/cloud/management/management-server.log
We got following errors:

2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-16:job-626) We need to allocate to the last host again, so
checking if there is enough reserved capacity
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-16:job-626) Reserved CPU: 0 , Requested CPU: 1000
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-16:job-626) Reserved RAM: 0 , Requested RAM: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-16:job-626) STATS: Failed to alloc resource from host: 9
reservedCpu: 0, requested cpu: 1000, reservedMem: 0, requested mem:
1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-16:job-626) Host does not have enough reserved CPU
available, cannot allocate to this host.
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-16:job-626) The last host of this VM does not have enough
capacity
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner]
(Job-Executor-16:job-626) Cannot choose the last host to deploy this VM

Any ideas about this issue?

Thanks,
William
This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in error,
please advise me (by return e-mail or otherwise) immediately. Ce courrier
?lectronique est confidentiel et prot?g?. L'exp?diteur ne renonce pas aux
droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou
copie de ce message ou des renseignements qu'il contient par une personne
autre que le (les) destinataire(s) d?sign?(s) est interdite. Si vous
recevez ce courrier ?lectronique par erreur, veuillez m'en aviser
imm?diatement, par retour de courrier ?lectronique ou par un autre moyen.



Re: starting VM and get error of unable to create a deployment for VM[user|i-2-107-VM]

2013-06-18 Thread tawfiq zidi
Can you specify the host Type and it's availabilty status  ?


On Tue, Jun 18, 2013 at 5:01 PM, Nitin Mehta nitin.me...@citrix.com wrote:

 Can you check the hypervisor admin guide to see if this version of guest
 os is supported ?
 Also can u please paste the complete logs (grep for job-626 would work as
 well)

 On 18/06/13 8:15 PM, William Jiang william.ji...@manwin.com wrote:

 Hi,
 
 We have a Ubuntu 12.04 VM with one disk on shared storage, it was working
 well before but now we saw the error of unable to create a deployment
 for VM[user|i-2-107-VM] during starting.
 We saw this kind of issue happened on a windows server 2008 VM before.
 
 In /var/log/cloud/management/management-server.log
 We got following errors:
 
 2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-16:job-626) We need to allocate to the last host again, so
 checking if there is enough reserved capacity
 2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-16:job-626) Reserved CPU: 0 , Requested CPU: 1000
 2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-16:job-626) Reserved RAM: 0 , Requested RAM: 1073741824
 2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-16:job-626) STATS: Failed to alloc resource from host: 9
 reservedCpu: 0, requested cpu: 1000, reservedMem: 0, requested mem:
 1073741824
 2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl]
 (Job-Executor-16:job-626) Host does not have enough reserved CPU
 available, cannot allocate to this host.
 2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner]
 (Job-Executor-16:job-626) The last host of this VM does not have enough
 capacity
 2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner]
 (Job-Executor-16:job-626) Cannot choose the last host to deploy this VM
 
 Any ideas about this issue?
 
 Thanks,
 William
 This e-mail may be privileged and/or confidential, and the sender does
 not waive any related rights and obligations. Any distribution, use or
 copying of this e-mail or the information it contains by other than an
 intended recipient is unauthorized. If you received this e-mail in error,
 please advise me (by return e-mail or otherwise) immediately. Ce courrier
 ?lectronique est confidentiel et prot?g?. L'exp?diteur ne renonce pas aux
 droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou
 copie de ce message ou des renseignements qu'il contient par une personne
 autre que le (les) destinataire(s) d?sign?(s) est interdite. Si vous
 recevez ce courrier ?lectronique par erreur, veuillez m'en aviser
 imm?diatement, par retour de courrier ?lectronique ou par un autre moyen.




RE: starting VM and get error of unable to create a deployment for VM[user|i-2-107-VM]

2013-06-18 Thread William Jiang
Hi Nitin,
Ubuntu 12.04 does not fully supported by xenserver 6.0.2, but we have some 
Ubuntu 12.04 work well, and we also saw same issue in one windows server 2008 
R2 VM which is fully supported by hypervisor.

The complete logs as following:

#
2013-06-14 12:28:34,328 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-18:null) submit async job-626, details: AsyncJobVO {id:626, 
userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine, 
instanceId: 107, cmd: com.cloud.api.commands.StartVMCmd, cmdOriginator: null, 
cmdInfo: 
{id:2d7d30a0-83d1-4050-a8dd-1b702fbb08e6,response:json,sessionkey:eihe8Buev1Ale+nhxw+w1nqQ\u003d,ctxUserId:2,_:1371227586576,ctxAccountId:2,ctxStartEventId:2584},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
processStatus: 0, resultCode: 0, result: null, initMsid: 110492071566, 
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-06-14 12:28:34,331 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-16:job-626) Executing com.cloud.api.commands.StartVMCmd for 
job-626
2013-06-14 12:28:34,349 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-16:job-626) Service SecurityGroup is not supported in the network 
id=214
2013-06-14 12:28:34,353 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-16:job-626) Service SecurityGroup is not supported in the network 
id=214
2013-06-14 12:28:34,355 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) VM state transitted from :Stopped to Starting with 
event: StartRequestedvm's original host id: 9 new host id: null host id before 
state transition: null
2013-06-14 12:28:34,356 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Successfully transitioned to start state for 
VM[User|i-2-107-VM] reservation id = 3ee7e4d1-a732-4e6b-96d3-eb02caec4df3
2013-06-14 12:28:34,357 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Trying to deploy VM, vm has dcId: 3 and podId: 3
2013-06-14 12:28:34,357 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Deploy avoids pods: null, clusters: null, hosts: null
2013-06-14 12:28:34,359 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Root volume is ready, need to place VM in volume's 
cluster
2013-06-14 12:28:34,359 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
(Job-Executor-16:job-626) Vol[129|vm=107|ROOT] is READY, changing deployment 
plan to use this pool's dcId: 3 , podId: 3 , and clusterId: 3
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) DeploymentPlanner allocation algorithm: random
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Trying to allocate a host and storage pools from 
dc:3, pod:3,cluster:3, requested cpu: 1000, requested ram: 1073741824
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Is ROOT volume READY (pool already allocated)?: Yes
2013-06-14 12:28:34,360 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) This VM has last host_id specified, trying to choose 
the same host: 9
2013-06-14 12:28:34,361 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Checking if host: 9 has enough capacity for requested 
CPU: 1000 and requested RAM: 1073741824 , cpuOverprovisioningFactor: 1.0
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Hosts's actual total CPU: 18616 and CPU after 
applying overprovisioning: 18616
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) We need to allocate to the last host again, so 
checking if there is enough reserved capacity
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved CPU: 0 , Requested CPU: 1000
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Reserved RAM: 0 , Requested RAM: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) STATS: Failed to alloc resource from host: 9 
reservedCpu: 0, requested cpu: 1000, reservedMem: 0, requested mem: 1073741824
2013-06-14 12:28:34,362 DEBUG [cloud.capacity.CapacityManagerImpl] 
(Job-Executor-16:job-626) Host does not have enough reserved CPU available, 
cannot allocate to this host.
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) The last host of this VM does not have enough capacity
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Cannot choose the last host to deploy this VM
2013-06-14 12:28:34,362 DEBUG [cloud.deploy.FirstFitPlanner] 
(Job-Executor-16:job-626) Searching resources only under specified Cluster: 3
2013-06-14 12:28:34,366 DEBUG