Return-Path: X-Original-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90E0BEC7C for ; Fri, 7 Dec 2012 15:21:02 +0000 (UTC) Received: (qmail 81259 invoked by uid 500); 7 Dec 2012 15:21:01 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 81127 invoked by uid 500); 7 Dec 2012 15:21:01 -0000 Mailing-List: contact cloudstack-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-users@incubator.apache.org Delivered-To: mailing list cloudstack-users@incubator.apache.org Received: (qmail 81113 invoked by uid 99); 7 Dec 2012 15:21:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 15:21:01 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,MANY_SPAN_IN_TEXT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ch007m@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 15:20:55 +0000 Received: by mail-vc0-f175.google.com with SMTP id fy7so477485vcb.6 for ; Fri, 07 Dec 2012 07:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2Go53i2ZHgQPoj2s0vHLKp9EY0cTQxz3GN4dktwJB/I=; b=v7n1XVcvWXVblWUR76tuIK1K+Ugx2HuABwmIoXCDsrIL4CWaQMdtbZI/XgLg3bcBf5 n1f/OGxCFttfORjizOirenJnpDVgSQdy+kU5tFYpA7B+g6tEEdNdR2dP3reISNFQzTwB BFnqjuz0g7aRzjzD92siymYotVGLzlr19NfvOxqOVBXulSMDdIEcNbLfH4g7zjUlr5lu ESNPnwmUkIbZoouS+HWfAmbXbD/1VSZ96Uu6N5Tkh86SUoE3R1s+xkCzpD4z2n1MWmXf J8v18oVAZEvol6ElSfGIv3vqErVcVwTtLLVEEIZPyeSE4NtCoFxPPHUHPh0klXNQcddG GpEQ== MIME-Version: 1.0 Received: by 10.52.88.14 with SMTP id bc14mr3447289vdb.110.1354893634472; Fri, 07 Dec 2012 07:20:34 -0800 (PST) Received: by 10.58.49.70 with HTTP; Fri, 7 Dec 2012 07:20:34 -0800 (PST) Date: Fri, 7 Dec 2012 16:20:34 +0100 Message-ID: Subject: Cloudstack - jclouds From: Charles Moulliard To: cloudstack-dev , cloudstack-users@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec5016613ca8a0304d044c13f X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5016613ca8a0304d044c13f Content-Type: text/plain; charset=ISO-8859-1 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 error. jclouds:node-create --provider cloudstack --identity 4LJ9B23kX5LswWnSHQDgjmQyXLXziyu1uxBc8GSXAzi3PrLXRbGT36D4oixxFAZGxiXPFJgXFcdC8EbFpSOdAA --credential M1p2PrsPSW6i9mdl1XwQyKBGoX6GdDBo6_y5SVl15h02K1xC6pj2eRMGLWGgehqD9fiCeYLfh3kWqUJCx1AZ2g --hardwareId b73f6946-f4a7-4181-b308-29f17a772700 --imageId 293cf203-88f2-486f-b85b-188ab305b9b7 fabric identity = apikey of admin credential = secretkey of admin hardwareid = tinyOffering (500MH, 500MB Ram, Local Storage) imageId = CentOS 5.3 proposed by default (= 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=88662cb2-7f68-4795-be14-6360c4b224b8, cmd=com.cloud.api.commands.DeployVMCmd, created=Fri Dec 07 16:05:41 CET 2012, id=52e74850-214e-4575-b5dd-1a71cc72b771, instanceId=null, instanceType=null, progress=0, result=null, resultCode=FAIL, resultType=object, status=FAILED, userId=e5fa31c0-43f2-41a5-b9d5-c11d8a45180b, error=AsyncJobError{errorCode=INSUFFICIENT_CAPACITY_ERROR, errorText=Unable to create a deployment for VM[User|fabric-1]}} failed with exception AsyncJobError{errorCode=INSUFFICIENT_CAPACITY_ERROR, errorText=Unable to create a deployment for VM[User|fabric-1]} at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.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.java: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, -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com --bcaec5016613ca8a0304d044c13f--