Need help setting up to do cinder development

Asked by Joe Cascio on 2013-03-05

I have a project to create a binding to OpenStack for a de-duplication storage system so it can be administered with OpenStack UIs, etc.

I need help just getting my bearings and setting up a development environment.
From reading, I understand that the subsystem I will be working in is cinder. I'm trying to find out what I need in terms of server configs to get this done.

I think the version of Ubuntu I want is 12.10, which comes with the Folsom release already installed. Can a development config run all on one system?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Cinder Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Karel Striegel (karel-striegel) said :
#1

Can a development config run all on one system?
> I believe it can.

fyi in Folsom the default block storage is nova-volume, not cinder. So you will have to make some configuration changes.

Revision history for this message
Joe Cascio (joe-cascio-jr) said :
#2

Thanks for responding. I got some help on the IRC channel yesterday. Have to re-install Ubuntu as it was dirty from a failed install attempt earlier. Are you familiar with the block storage in Nova? Will cinder be more or less compatible with it?

Revision history for this message
Karel Striegel (karel-striegel) said :
#3

Hi Joe,

If you are referring to nova-volume then yes Cinder is compatible. You will just have to "migrate" the volumes, which is mainly moving the database info from the nova database to the cinder database.

A bit more info :
Compatibility and Migration:
There has been a significant amount of concern raised regarding "compatibility"; unfortunately this seems to mean different things to different people. For those that haven't looked at the Cinder code or tried a demo in devstack, here are some question/answers:

Do the same nova client commands I use for volumes today still work the same? YES
Do the same euca2ools that I use for volumes today still work the same? YES
Does block storage still work the same as it does today in terms of LVM, iSCSI and the drivers that are curently in place? YES
Are the associated database tables the same as they are in the current nova volume code? For the most part YES, all volume related tables and columns are migrated, non-volume related tables however are not present
Does it use the same nova database as we use today? No, it does require a new independent database
Are you going to implement cinder with complete disregard for my current install and completely change everything out from under me? ABSOLUTELY NOT
Are you going to test migrating from nova-vol to Cinder? YES
Are those migration tests going to be done just using fakes/unit tests? NO, we would require running setups, most likely devstack
Are you planning to provide migration scripts/tools to move from nova to cinder? YES

src: https://wiki.openstack.org/wiki/Cinder#Compatibility_and_Migration:

guide to install cinder: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-cinder.html
guide to migrate existing volumes to cinder : https://wiki.openstack.org/wiki/MigrateToCinder or http://docs.openstack.org/trunk/openstack-compute/install/yum/content/n-volume_to_cinder.html

Kr
Karel.

Revision history for this message
Joe Cascio (joe-cascio-jr) said :
#4

I've been able to get the Folsom DevStack release running on a clean Ubuntu 12.4 LTS virtual server. I can bring up the horizon pages and do things like create volumes.
I've followed the code thru over into the cinder api and see that ultimately it does things like run command line scripts to list and create volumes, etc.

Horizon and dashboards are django apps which are fairly understandable, but I'm at a loss to understand what kind of a framework, if any, that the cinder service runs under. Can anyone help?

Revision history for this message
Feilong Wang (flwang) said :
#5

A simple way to setup Cinder ( or other components ) development env is that you can install OpenStack by devstack. And then port the source code to eclipse+pydev. By this way, you can easily debug the source code of OpenStack.

Revision history for this message
Jason (zzs) said :
#6

Hi Joe, please check here http://www.1cloudroad.com/beginners-guide-to-openstack and follow the information at the end of the article.

Can you help with this problem?

Provide an answer of your own, or ask Joe Cascio for more information if necessary.

To post a message you must log in.