deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: unable to get hardware profile from vcenter/vsphere provider
Date Fri, 02 Nov 2012 09:06:07 GMT
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 <IP address>
>
> Thanks.
> -Mani


-- 

Michal Fojtik <mfojtik@redhat.com>
Deltacloud API, CloudForms

Mime
View raw message