Go to file
2012-06-26 18:19:28 +02:00
2012-06-26 18:19:28 +02:00
2012-06-26 02:32:31 -07:00
2012-06-26 15:09:35 +02:00
2012-06-26 17:32:01 +02:00
2012-06-26 18:17:43 +02:00

occi-os

This is a clone of https://github.com/dizz/nova - it provides a python egg which can be deployed in OpenStack and will thereby add the 3rd party OCCI interface to OpenStack.

Usage

  1. Install this egg: python setup.py install (later maybe pip install occi-os)
  2. Configure OpenStack - Add application to api-paste of nova and enable the API

Configuration

Make sure an application is configured in api-paste.ini (name can be picked yourself):

########
# OCCI #
########

[composite:occiapi]
use = egg:Paste#urlmap
/: occiapppipe

[pipeline:occiapppipe]
pipeline = authtoken keystonecontext occiapp
# with request body size limiting and rate limiting
# pipeline = sizelimit authtoken keystonecontext ratelimit occiapp

[app:occiapp]
use = egg:occi-os#occi_app

Make sure the API (name from above) is enabled in nova.conf:

[...]
enabled_apis=ec2,occiapi,osapi_compute,osapi_volume,metadata
[...]

Hacking the port number

Currently nova compute will start the OCCI API on a random port. If you want to have it on a predefined port you will need to edit the 'flags.py' file in /nova/:

cfg.IntOpt('occiapi_listen_port',
           default=8787,
           help='the port for external test apps'),

Again the name you provide here should be identical to the name of the app you provided above (In this case 'occiapi')!

For development

Make sure the nova compute api is in the path for Python and if you wanna test the app run:

paster serve api-paste.ini --reload
Description
RETIRED, OCCI-OS provides a python egg which can be easily deployed in OpenStack and will thereby add OCCI support and interface to OpenStack.
Readme 253 KiB