How to Interact with OpenNebula Using Deltacloud

Overview

Deltacloud defines a web service API for interacting with cloud service providers and resources in those clouds in a unified manner.

Requirements

You can also test it using the OpenNebula Public Cloud. Request an account and set the OCCI endpoint

  • Deltacloud installed. Currently, the OpenNebula 3.x support is included in the Deltacloud development branch, so if you want to test it you will have to use the latest code from the repo:

$ git clone git://git.apache.org/deltacloud.git

Add default network configuration

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 ]

Starting Deltacloud

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

Using Deltacloud

  • Open a new browser and go to the url where your Deltacloud server is deployed

  • You can also use the client included in Deltacloud

$ 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

deltacloud · Last modified: 2012/02/16 10:56 by Daniel Molina
Admin · Login