Last active
August 29, 2015 14:17
-
-
Save sandlbn/460a16a691c2077187c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $git clone https://github.com/sandlbn/occi-os | |
| $cd occi-os | |
| $git checkout stable/juno-neutron | |
| $sudo python setup install | |
| $sudo pip install pyssf | |
| // add below lines to the nova api conf file /etc/nova/api-paste.ini | |
| [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:openstackocci-juno#occi_app | |
| // add occiapi to the /etc/nova/nova.conf | |
| // Line should look similar to this: | |
| enabled_apis=ec2,osapi_compute,metadata,occiapi | |
| // restart nova services | |
| $sudo service nova-api restart | |
| $sudo service nova-scheduler restart | |
| // if this is Fedora/Redhat box add openstack- before nova. | |
| $sudo service openstack-nova-api restart | |
| $sudo service openstack-nova-scheduler restart | |
| $keystone service-create --name nova --type occi --description 'Nova OCCI Service' | |
| $SERVICE_ID=#please put your service_id based on output of previous command | |
| $HOSTNAME=#please put your ip or localhost | |
| $REGION=#please put your region name openstack RegionOne you 'll need to check your configuration | |
| $keystone endpoint-create --service_id $SERVICE_ID --region $REGION --publicurl http://$HOSTNAME:8787/ --internalurl http://$HOSTNAME:8787/ --adminurl http://$HOSTNAME:8787/ | |
| // That's all ! Go to the https://wiki.openstack.org/wiki/Occi and try examples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment