How to dev and test python libs on your OpenStack's devstack

In OpenStack Devstack, the python packages/libs such as python-tackerclient, tacker-horizon are not easy to dev because normally they will be installed under python's site-packages. So, to make it easier for us to developing these libs, follow the instructions below:

1. Clone the python packages that you want, for example: tacker-horizon:

cd /opt/stack/
git clone git://git.openstack.org/openstack/tacker-horizon

2. Go inside the cloned directory and install it using pip:

cd tacker-horizon
sudo pip install -U -e .

3. Make the changes and enjoy


Note: if you work with tacker-horizon, you may have to restart apache2 server:

sudo systemctl restart apache2








Comments