[one-users] occi-server problem

Daniel Molina dmolina at opennebula.org
Thu Mar 8 02:24:02 PST 2012


Hi Bruno,

On 7 March 2012 18:56, Bruno Parreira <bsendas at gmail.com> wrote:
> hello,
>
> I have a problem with occi-server, when I use the command occi-compute list:
>
> oneadmin at Leo:~$ occi-compute list
> /usr/lib/ruby/gems/1.8/gems/curb-0.7.16/lib/curb_core.so: warning: already initialized constant CURL_SSLVERSION_DEFAULT
> Error connecting to server (Connection refused - connect(2)).
> Server: localhost:4567
>
> occi-server.log :
>
> --------------------------------------
>         Server configuration
> --------------------------------------
> {:instance_types=>
>  {:small=>{:memory=>1024, :cpu=>1, :template=>"small.erb"},
>   :medium=>{:memory=>4096, :cpu=>4, :template=>"medium.erb"},
>   :large=>{:memory=>8192, :cpu=>8, :template=>"large.erb"},
>   :custom=>{:memory=>128, :cpu=>1, :template=>"custom.erb"}},
>  :lang=>"en_US",
>  :server=>"10.0.2.2",
>  :port=>3001,

The occi-compute command is trying to connect to "localhost:4567"
which is the default OCCI server endpoint, but your server is running
on "10.0.2.2:3001",  as your configuration shows. You can specify it
using the --url option:

--url <url>, -R <url>
    Set url as the web service url to use

You can also use the OCCI_URL env variable to define it.

Cheers

>  :template_location=>"/home/oneadmin/opennebula3//etc/occi_templates",
>  :token_expiration_delta=>1800,
>  :auth=>"occi",
>  :one_xmlrpc=>"http://localhost:2633/RPC2",
>  :core_auth=>"cipher"}
> :public is no longer used to avoid overloading Module#public, use :public_folder instead
>        from /home/oneadmin/opennebula3//lib/ruby/cloud/occi/occi-server.rb:79
> == Sinatra/1.3.1 has taken the stage on 3001 for development with backup from Thin
>
> oned.log:
>
> Wed Mar  7 19:56:49 2012 [ReM][D]: HostPoolInfo method invoked
> Wed Mar  7 19:56:49 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Wed Mar  7 19:56:50 2012 [ReM][D]: AclInfo method invoked
> Wed Mar  7 19:57:19 2012 [ReM][D]: HostPoolInfo method invoked
> Wed Mar  7 19:57:19 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Wed Mar  7 19:57:20 2012 [ReM][D]: AclInfo method invoked
> Wed Mar  7 19:57:49 2012 [ReM][D]: HostPoolInfo method invoked
> Wed Mar  7 19:57:49 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Wed Mar  7 19:57:50 2012 [ReM][D]: AclInfo method invoked
>
> cheers,
> Bruno
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula



More information about the Users mailing list