Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CIMI on OpenStack Nova implementation
Python Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cimi
doc/source
tests/cimi
.gitignore
Authors
LICENSE
README.md
run_tests.sh
setup.py

README.md

CIMI for OpenStack's Nova

A Python egg that adds support for the [CIMI protocol] to OpenStack Nova.

Setup

  1. Install Openstack Nova
  2. Grab the cimi implementation from github: git clone http://github.com/osaddon/cimi
  3. Install this python egg: sudo python setup.py install
  4. Configure cimi to work with Nova:

In /etc/nova/api-paste.ini, add /cimiv1: openstack_compute_api_v2 path to enable the cimi request.

[composite:osapi_compute]
use = call:nova.api.openstack.urlmap:urlmap_factory
/: oscomputeversions
/v1.1: openstack_compute_api_v2
/v2: openstack_compute_api_v2
/cimiv1: openstack_compute_api_v2

In /etc/nova/api-paste.ini, add cimi filter before osapi_compute_app_v2

[composite:openstack_compute_api_v2]
use = call:nova.api.auth:pipeline_factory
noauth = faultwrap sizelimit noauth ratelimit cimi osapi_compute_app_v2
keystone = faultwrap sizelimit authtoken keystonecontext ratelimit cimi osapi_compute_app_v2
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext cimi osapi_compute_app_v2

And add the following section to the file:

[filter:cimi]
use = egg:cimiapi#cimiapp
request_prefix = /cimiv1
os_version = /v2

To enable logging for cimi, add the following three lines in /etc/nova/nova.conf file

use_syslog=False
logfile=/opt/stack/logs/nova.log
default_log_levels=nova=ERROR,cimi=INFO

Running tests

test cases created under tests directory, to run the test cases, first change the test.conf and make sure that the values for each variable are correct. then use the following command to run the test cases.

py.test tests/cimi/test_cimi.py
Something went wrong with that request. Please try again.