Home > openstack, Unix > weapons for fighting with devstack

weapons for fighting with devstack

Finding things in Devstack (an openstack single host installation) is  very tough job. You know it is there but still you may not reach it. It happens very often when mining knowledge from devstack project. Although the project is very organized, you still need to be very apt to solve the puzzle from given clues. It is even very tough to find clues in a very large project like openstack / devstack. Here are some tips/tools i found handy when finding clues from the devstack project.

1. First of all, you need to be very familiar with VIM editor – after all, you have to spend a whole lot of time with it. So, you may want to configure VIM editor so that you may start loving VIM. I did following changes in my VIM configuration which you may get through these commands


cat  >> ~/.vimrc  << EOF

set number

set showmatch

set ruler

set ignorecase

set hlsearch

syntax enable

set ai “Auto indent

set si “Smart indent

set wrap

set modeline
set ls=2



2. You may want to find files that contain certain strings. For example, if you want to find files having method name  *list* (ex: _list, do_list, do_listall) you may issue this command.


grep -irl “def *list*”  ./python-novaclient/novaclient/


Worth to mention, python-novaclient/novaclient/ is the location where python novaclient’s code base is. and “def” keyword is used for defining method in python (i know you know it).

you may find complicated use of grep (ex. -L option, -E option) helpful  to have a good grip on the devstack project.

3. Another command I find helpful comes into play when you looking for filename having certain string in it.

For example, If I want to find files having “http” string in it, I issue this command :


find python-novaclient/novaclient/ | grep http


Off course more complicated use of “find” command gives you more handle on the project.

To sum it up, to effectively fight with openstack’s devstack project , you have to be familiar with the advance use of these command:  grep, find, vi and screen (though I have seen the usage here).

Categories: openstack, Unix Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: