Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D1F7DC63 for ; Mon, 5 Nov 2012 22:30:29 +0000 (UTC) Received: (qmail 71280 invoked by uid 500); 5 Nov 2012 22:30:29 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 71260 invoked by uid 500); 5 Nov 2012 22:30:29 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 71252 invoked by uid 99); 5 Nov 2012 22:30:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 22:30:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wirelessapps@gmail.com designates 209.85.220.45 as permitted sender) Received: from [209.85.220.45] (HELO mail-pa0-f45.google.com) (209.85.220.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 22:30:21 +0000 Received: by mail-pa0-f45.google.com with SMTP id fb10so4362405pad.32 for ; Mon, 05 Nov 2012 14:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3Yd8Nd4ce7jNJBN11JrtwPy2bE+YIuElC0/qhc5b+ps=; b=GPwEFvY7TLp2dr6NqHZaBRfZ5ukELSU/uRv0F5BsTGHyMB6Z/5Zn+QSxSlJ8F7bkb3 QJ+uCHvGtl6hhrggGNaG+p/KG1unJSMORh9qPlDnjGblCnV0pw0BqGHxmTQZYGd9N5Ya v2xwdXWC1I9VEK2QOPdEmQimp+58yqs6XY1e97dPmsPObUpsAi/404CKV105+TSLOVAQ bd+C3mkJFcXmokknih/0DWt0Rj83d4mfzRF8iqJZzZfQCECpvxQ/bxebJdMGqpek3HMz 0CEcOwk1btO2U2xW+EJX1tshGACrbTm//L3+H2K8jSa36evW/ro6//Jd1qnf36sQ9PFK bLXg== Received: by 10.68.231.3 with SMTP id tc3mr34387788pbc.89.1352154600752; Mon, 05 Nov 2012 14:30:00 -0800 (PST) Received: from manselva-mac.local (128-107-239-234.cisco.com. [128.107.239.234]) by mx.google.com with ESMTPS id x8sm11266795paw.16.2012.11.05.14.29.59 (version=SSLv3 cipher=OTHER); Mon, 05 Nov 2012 14:29:59 -0800 (PST) Message-ID: <50983E27.2080806@gmail.com> Date: Mon, 05 Nov 2012 14:31:03 -0800 From: Mani Organization: Cisco User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: dev@deltacloud.apache.org, mfojtik@redhat.com Subject: Re: unable to get hardware profile from vcenter/vsphere provider References: <5090639A.7030306@gmail.com> <50938CFF.20807@redhat.com> <50944043.3090205@gmail.com> In-Reply-To: <50944043.3090205@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org (update) The /api/hardware_profiles api works fine if I set the API_PROVIDER to vcenter server 4.1 (Windows based server). The api /api/hardware_profiles fails with the exception mentioned in the thread if I connect to "VMWare vCenter Server Appliance 5.0.0.3324". Does deltacloud support vCenter Server appliance? Thanks. -Mani On 11/2/12 2:50 PM, Mani wrote: > Hi Michal, > Yes. I do have hosts defined in vsphere. How can I debug this? > Somewhere on the web I saw your post for debugging: > I set API_VERBOSE=1 and launched deltacloudd with -V. I do not see any > additional log messages. Does deltacloud spit out logs anywhere else? > > Thanks for responding. > -Mani > > > > On 11/2/12 2:06 AM, Michal Fojtik wrote: >> On 10/31/2012 12:32 AM, Mani wrote: >> >> Hi Mani, >> >> I tried to guess what could be the problem. From the exception you >> send it appears that DC failed to get first Host entity (?). >> >> 52: max_cpu_cores << dc.hostFolder.childEntity.first.summary.numCpuCores >> >> Do you have Host defined in VSphere and is it available? >> >> -- Michal >> >>> Hi All, >>> I have set up a vcenter/vsphere server as the provider behind >>> deltacloud >>> (v1.0.3). >>> >>> When I hit this api: http://10.194.188.24:3001/api/hardware_profiles I >>> always get a "Error loading page" UI warning and this exception >>> (pasting >>> part of it): >>> >>> E, [2012-10-30T19:26:29.197658 #20808] ERROR -- : [500] >>> Deltacloud::ExceptionHandler::BackendError:Unhandled exception or >>> status >>> code (undefined method `summary' for nil:NilClass) >>> >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/vsphere/vsphere_driver.rb:52:in >>> >>> `hardware_profiles' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/vsphere/vsphere_driver.rb:50:in >>> >>> `each' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/vsphere/vsphere_driver.rb:50:in >>> >>> `hardware_profiles' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/exceptions.rb:199:in >>> >>> `call' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/exceptions.rb:199:in >>> >>> `safely' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/drivers/vsphere/vsphere_driver.rb:43:in >>> >>> `hardware_profiles' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/helpers/deltacloud_helper.rb:37:in >>> >>> `send' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/helpers/deltacloud_helper.rb:37:in >>> >>> `filter_all' >>> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/helpers/deltacloud_helper.rb:37:in >>> >>> `filter_all' >>> /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.4/lib/deltacloud/helpers/rabbit_helper.rb:22:in >>> >>> `standard_index_operation' >>> >>> >>> Any ideas as to what is going on here? Is there some default "hardware >>> profile" that I need to create on the vcenter server? >>> >>> I am launching deltacloud as: >>> deltacloudd -i vsphere -r >>> >>> Thanks. >>> -Mani >> >> >