Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AF92D99F for ; Mon, 10 Dec 2012 04:47:27 +0000 (UTC) Received: (qmail 22710 invoked by uid 500); 10 Dec 2012 04:47:26 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 22681 invoked by uid 500); 10 Dec 2012 04:47:26 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 22621 invoked by uid 99); 10 Dec 2012 04:47:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 04:47:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anshul.gangwar@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 04:47:15 +0000 X-IronPort-AV: E=Sophos;i="4.84,249,1355097600"; d="scan'208";a="10038" Received: from banpmailmx01.citrite.net ([10.103.128.73]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 10 Dec 2012 04:46:51 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.71]) by BANPMAILMX01.citrite.net ([10.103.128.73]) with mapi; Mon, 10 Dec 2012 10:16:49 +0530 From: Anshul Gangwar To: "cloudstack-dev@incubator.apache.org" Date: Mon, 10 Dec 2012 10:16:48 +0530 Subject: Re: Cloudstack - jclouds Thread-Topic: Cloudstack - jclouds Thread-Index: Ac3WkV0iDV5cGMEpTVejI8TswViAng== Message-ID: <50C56938.7010707@citrix.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Charles, Can you send jclouds-wire and management server logs? Thanks, Anshul On 07/12/12 20:50, Charles Moulliard wrote: > Hi, > > I use jclouds Java api to create a new instance. Using the web interface > with DevCloud2 running in VirtualBox and Apache CloudStack 4.1.0-SNAPSHOT > (management server), that works fine but when I tries to create it using > the following parameters and jclouds, I get an insufficient capacity erro= r. > > jclouds:node-create --provider cloudstack --identity > 4LJ9B23kX5LswWnSHQDgjmQyXLXziyu1uxBc8GSXAzi3PrLXRbGT36D4oixxFAZGxiXPFJgXF= cdC8EbFpSOdAA > --credential > M1p2PrsPSW6i9mdl1XwQyKBGoX6GdDBo6_y5SVl15h02K1xC6pj2eRMGLWGgehqD9fiCeYLfh= 3kWqUJCx1AZ2g > --hardwareId b73f6946-f4a7-4181-b308-29f17a772700 --imageId > 293cf203-88f2-486f-b85b-188ab305b9b7 fabric > > identity =3D apikey of admin > credential =3D secretkey of admin > hardwareid =3D tinyOffering (500MH, 500MB Ram, Local Storage) > imageId =3D CentOS 5.3 proposed by default (=3D tiny Linux Offering) > > Failed to create nodes:error running 1 node group(fabric) > location(ee6fff52-4dc4-42c6-864d-663a9a7de333) > image(293cf203-88f2-486f-b85b-188ab305b9b7) > size(b73f6946-f4a7-4181-b308-29f17a772700) options({}) > Execution failures: > > 1) ExecutionException on fabric-1: > java.util.concurrent.ExecutionException: > org.jclouds.cloudstack.AsyncJobException: job > AsyncJob{accountId=3D88662cb2-7f68-4795-be14-6360c4b224b8, > cmd=3Dcom.cloud.api.commands.DeployVMCmd, created=3DFri Dec 07 16:05:41 C= ET > 2012, id=3D52e74850-214e-4575-b5dd-1a71cc72b771, instanceId=3Dnull, > instanceType=3Dnull, progress=3D0, result=3Dnull, resultCode=3DFAIL, > resultType=3Dobject, status=3DFAILED, > userId=3De5fa31c0-43f2-41a5-b9d5-c11d8a45180b, > error=3DAsyncJobError{errorCode=3DINSUFFICIENT_CAPACITY_ERROR, errorText= =3DUnable > to create a deployment for VM[User|fabric-1]}} failed with exception > AsyncJobError{errorCode=3DINSUFFICIENT_CAPACITY_ERROR, errorText=3DUnable= to > create a deployment for VM[User|fabric-1]} > at > com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFu= ture.java:294) > at > com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.= java:281) > at > com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:= 116) > at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:138) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java= :1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:603) > at java.lang.Thread.run(Thread.java:722) > > Here is the config of an instance created successfully through the web > interface > > Hypervisor : XenServer > Template : tiny Linux > OS Type : CentOS 5.3 (64-bit) > Attached ISO : > Compute offering : tinyOffering2 > HA Enabled : No > Group : > Zone name : DevCloud0 > Host : devcloud > Domain : ROOT > Account : admin > Created : 07 Dec 2012 14:23:37 > ID : b860d1c3-4416-4ab5-8233-bd3d1c92064f > > And the config using the command but reporting incapacity error > > > Hypervisor : XenServer > Template : tiny Linux > OS Type : CentOS 5.3 (64-bit) > Attached ISO : > Compute offering : tinyOffering2 > HA Enabled : No > Group : > Zone name : DevCloud0 > Host : > Domain : ROOT > Account : admin > Created : 07 Dec 2012 15:17:32 > ID : ca75b67e-cb30-4c43-9cc3-4dc05b867470 > > If I compare what is created using command line and through the web > interface, the only difference is that host is not defined using command > > Somebody can tell me why we have a different response from cloudstack if = we > use command line vs web interface ? > > Regards, > > >