How to Interact with OpenNebula Using Deltacloud
Deltacloud defines a web service API for interacting with cloud service providers and resources in those clouds in a unified manner.
You can also test it using the OpenNebula Public Cloud. Request an account and set the OCCI endpoint
$ git clone git://git.apache.org/deltacloud.git
Create a new network for the Deltacloud users:
$ onenvet create deltacloud_net.template ID: 1 $ onevnet list ID USER GROUP NAME TYPE BRIDGE LEASES 0 oneadmin oneadmin Blue LAN F vbr1 0 1 oneadmin oneadmin Deltacloud LAN R vbr0 0
Currently network cannot be specified through Deltacloud, so it has to be included in the different instance types. Edit the OCCI ERB template files in order to include this network by default.
$ cat /etc/one/occi_templates/small.erb CPU = 1 MEMORY = 1024 NIC = [ NETWORK_ID = 1 ]
The OCCI endpoint must be defined using the OCCI_URL env variable
$ export OCCI_URL=http://your.cloud.endpoint:port/ $ deltacloudd -i opennebula -r 0.0.0.0 Starting Deltacloud API :: opennebula :: http://0.0.0.0:3001/api
$ deltacloudc images index -u http://oneuser:onepass@dc.cloud.opennebula:3001/api 0 | Ubuntu 11.04 | x86_64 | OS | oneadmin 1 | CentOS-5.5-64-pristi | x86_64 | OS | oneadmin 2 | Test image | | DATABLOCK | oneadmin