Hi!

I am trying to access my OpenNebula cloud with libcloud, which gives me
> socket.error: [Errno 111] Connection refused

I have OpenNebula version 3.0 (I have Python 2.7)  running on Ubuntu
11.04, 64 bit server. OpenNebula installed at 192.168.1.201 and
Occi-server is being run at the same host with configuration

# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2

# Host and port where OCCI server will run
:server: localhost
:port: 4567

I am trying to access OpenNebula from 192.168.1.13 with libcloud 0.7.1
I modified libcloud/compute/drivers/opennebula.py as
API_HOST = '192.168.1.201'
API_PORT = (4567, 443)
API_SECURE=False

I am running the script below:

from libcloud.types import Provider
from libcloud.providers import get_driver
one = get_driver(Provider.OPENNEBULA)
driver =  one('one_user', 'one_password')
images = driver.list_images()
print images

as it is described
http://lists.opennebula.org/pipermail/ecosystem-opennebula.org/2010-June/000036.html
But having: [...] socket.error: [Errno 111] Connection refused
Is there anything I am doing wrong?

Kind regards,
Nodir.

Reply via email to