Cristian,

First off, I would recommend masking information such as apikey, signature, 
public IPs, etc. when posting on the list for security reasons.

The reason for failure as per logs is "InsufficientServerCapacityException" 
however, from the logs snippets it is not possible to find the root cause. 
Also, I suspect the "InsufficientServerCapacityException" is a consequential 
error, that is, result of all the compute/storage resources ending up in the 
avoid set. What caused the compute/storage resource to end up in that list is 
the root cause. You should trace "job-754" and look for the initial failure.

Alternately, you could compare API call you're using vs the one generated via 
CS GUI to see for any differences. It will also help to know version of CS 
(looks like pre 4.5) and hypervisor. 

Regards,
Somesh

-----Original Message-----
From: Cristian Ciobanu [mailto:[email protected]] 
Sent: Thursday, September 10, 2015 1:18 PM
To: [email protected]
Subject: Unable to create a deployment for VM (Additional DATADISK - API-job)


Hello,

    I have a problem when i try to deploy a VM with DATADISK via API, i don't 
have any issue when i deploy from the CS interface.

I found some logs on CS MGMT:

==> management-server.log <==
2015-09-10 19:07:19,584 DEBUG [c.c.a.ApiServlet] (catalina-exec-21:ctx-60c7d3d4 
ctx-a0298b0c ctx-9750e753) ===END===  5.135.217.237 -- GET  
account=client_3_1&apikey=nZ72olHQnj4Ap25Wyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ&command=deployVirtualMachine&diskofferingid=0bc04371-2d2d-4a52-8094-7f25abb1e32b&displayname=cadaver&domainid=6aef553f-aa33-4db2-815a-1b0f0b575645&name=cadaver&response=json&serviceofferingid=59bdf4c6-9cca-4f35-a050-ac6b64c74cda&templateid=e873ac1f-b95b-48be-863e-0d81c5307995&zoneid=a85f1632-0718-4e67-b7c6-00d566121bf4&signature=qJHb2yDblfKlbAYWXXVTB9oc%2BHY%3D
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
displayvm as the caller is not authorized to pass it in
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
deploymentplanner as the caller is not authorized to pass it in
=======================================================================

2015-09-10 19:07:19,846 WARN  [o.a.c.alerts] (API-Job-Executor-91:ctx-71d92d17 
job-754 ctx-38551c18)  alertType:: 8 // dataCenterId:: 1 // podId:: null // 
clusterId:: null // message:: Failed to deploy Vm with Id: 72, on Host with Id: 
null
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[User|i-6-72-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Unable to create a 
deployment for VM[User|i-6-72-VM]
======================================================================

Can i get some help ? Thanks !


Regards,
Cristian

 

Reply via email to