Posted by: John Bresnahan | August 14, 2013

Preparing Fedora 19 for OpenStack Glance Development

For development of Glance I have recently been using the publicly available Fedora 19 VM which RDO made available here.  From time to time I have found that I need to boot the VM clean (eg: verifying that my environment is not influencing recent changes etc).  In this brief post I will describe how to prepare that clean VM instance with all the dependencies needed for Glance development.

Installing the Dependencies

Run the following to install all the base deps:

sudo yum update -y
sudo yum install git vim gcc postgresql-devel mariadb-devel python-virtualenv libffi-devel libxslt-devel

Install Glance Into A Virtualenv

Now run the following to create a python virtual environment and install glance and its deps into it.

git clone git://
virtualenv --no-site-packages VE
source VE/bin/activate
cd glance/
pip install -r requirements.txt
pip install -r test-requirements.txt
python develop
./ -N

At this point you have a configured python virutalenv with Glance installed into it and you are ready to start developing Glance!

Leave a Reply

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

You are commenting using your 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: