Ask Your Question

how to use latest kolla code [closed]

asked 2016-12-13 11:12:50 -0500

csj gravatar image

updated 2016-12-13 11:16:55 -0500

I followed the (quick start guide) to install kolla 3.0.1 and everything works find.

Now, I am going to try the latest version of kolla(from git). In the quick start guild it mentions:

Warning Kolla uses PBR in its implementation. PBR provides version information to Kolla about the package in use. This information is later used when building images to specify the Docker tag used in the image built. When installing the Kolla package via pip, PBR will always use the PBR version information. When obtaining a copy of the software via git, PBR will use the git version information, but ONLY if Kolla has not been pip installed via the pip package manager. This is why there is an operator workflow and a developer workflow.

I am not understand about this. If I don't use pip to install kolla, then how I can have kolla-build and kolla-ansible commands?

Because when I check the code in git, the Dockerfile.j2 for horizon is more convenient than which installed by pip install kolla,

I also tried pip install kolla==4.0.0b1 but still not new enough to use the latest Dockerfile.j2 for horizon.

Anyway, in the quick start guide it says

there is an operator workflow and a developer workflow.

How to do the developer workflow?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by csj
close date 2016-12-20 09:16:43.172513

3 answers

Sort by ยป oldest newest most voted

answered 2016-12-14 04:58:30 -0500

updated 2016-12-14 05:03:57 -0500

Hi Csj.

Following the quickstart guide, you have a part for development process [0]. To use latest Kolla code (development from master branch) first you clone or pull the repository.

git clone

The next step is not install kolla, for development purposes you only need requirements/dependencies in order to use it.

pip install -r kolla/requirements.txt -r kolla/test-requirements.txt

This part is what differs from yours. For development you don't need and don't have to use Kolla commands as kolla-build. If you want to use kolla-build, the proper way is executing the latest code present in your cloned repository.

As example in tools/ directory execute the following command that is the equivalent kolla-build.


As resume, development environment (latest code) does not install kolla, just install dependencies and execute the code directly from the cloned repo.

Have to add that for kolla-ansible, kolla repository has recently split into 3 (kolla, kolla-ansible and kolla-kubernetes). The workflow is the same, the change is that if you want to use kolla-ansible, clone kolla-ansible repository, install dependencies as described before and execute ./kolla-ansible from tools/ directory.


Regards, Eduardo

edit flag offensive delete link more


great, I got it now. Thanks a lot :D

csj gravatar imagecsj ( 2016-12-14 05:23:31 -0500 )edit

answered 2016-12-13 11:27:27 -0500

csj gravatar image

updated 2016-12-13 11:37:37 -0500

Oh, I got it now

git clone
pip install -r kolla/requirements.txt -r kolla/test-requirements.txt
cd kolla
python sdist
python bdist_egg
cd dist
tar xf kolla*.tar.gz
cd kolla*
python install

check version

# pip show kolla
Name: kolla
edit flag offensive delete link more


No, that is wrong due to PBR used. Let me answer you

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-12-14 04:49:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-13 11:12:50 -0500

Seen: 773 times

Last updated: Dec 14 '16