Git Product home page Git Product logo

cimi's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.