Skip to content
dizz edited this page Jan 25, 2013 · 5 revisions

This guide assumes that you have a running installation of OpenStack, installed by devstack. In order to develop on the OCCI API outside of the VM follow these steps (also there's a good guide here ).

Checkout openstack nova

git clone https://github.com/openstack/nova.git

Install nova's dependencies

cd nova/tools
pip install -r pip-requires

Copy or link nova/etc/nova to /etc/nova

Configure /etc/nova/nova.conf so that

[DEFAULT]
rabbit_host=$YOUR_VM_IP_ADDRESS
rabbit_port=5672
rabbit_virtual_host=/
rabbit_userid=$RABBIT_USER
rabbit_password=$RABBIT_USER_PASSWORD

Checkout openstack keystone

git clone https://github.com/openstack/keystone.git

Install pyssf

pip install pyssf

Checkout occi-os

git clone https://github.com/tmetsch/occi-os.git

Install pycharm

Add nova and keystone as project dependencies

Run runme.py with the following parameters:

--verbose --glance_api_servers=$YOUR_VM_IP_ADDRESS:9292 --sql_connection=mysql://$NOVA_DB_USER:$NOVA_DB_USER_PASS@$YOUR_VM_IP_ADDRESS/nova

In pycharm's console, you should now see:

2012-07-03 17:40:11 DEBUG nova.wsgi [-] Loading app occiapi from /etc/nova/api-paste.ini from (pid=2566) load_app /Users/andy/Source/OpenStack/nova/nova/wsgi.py:377
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#chg_pwd<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#revert_resize<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#confirm_resize<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#create_image<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#alloc_float_ip<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/action#dealloc_float_ip<api.compute.openstack.OsComputeActionBackend object at 0x101e26e50>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/credentials#public_key<occi.backend.MixinBackend object at 0x101e26e90>
2012-07-03 17:40:12 WARNING nova.api.wsgi.occi [-] adding:http://schemas.openstack.org/instance/credentials#admin_pwd<occi.backend.MixinBackend object at 0x101e26e90>

[…	]

2012-07-03 17:40:12 DEBUG nova.service [-] image_service : nova.image.glance.GlanceImageService from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 DEBUG nova.service [-] control_exchange : nova from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 DEBUG nova.service [-] quota_injected_files : 5 from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 DEBUG nova.service [-] log_file : None from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 DEBUG nova.service [-] compute_manager : nova.compute.manager.ComputeManager from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 DEBUG nova.service [-] network_topic : network from (pid=2566) wait /Users/andy/Source/OpenStack/nova/nova/service.py:448
2012-07-03 17:40:12 INFO nova.wsgi [-] Started occiapi on 0.0.0.0:8787

Now experiment with commands on the OpenStack wiki

Clone this wiki locally