Skip to content

osaddon/cimi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CIMI on OpenStack Nova implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages