yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #25124
[Bug 1322771] Re: keystone install from source docs missing required steps
** Changed in: pbr
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1322771
Title:
keystone install from source docs missing required steps
Status in OpenStack Identity (Keystone):
Triaged
Status in Python Build Reasonableness:
Invalid
Bug description:
The following is completely reproducible using Vagrant and the
hashicorp/precise64 image.
Following the install instructions here:
http://docs.openstack.org/developer/keystone/installing.html
#installing-from-source is impossible, even after the patch in
https://bugs.launchpad.net/keystone/+bug/1322735
There are several issues:
"python setup.py install" fails with these missing dependencies:
* missing Python.h
* missing libxml/xmlversion.h
Once those dependencies are taken care of by installing python-dev,
libxml2-devm and libxslt1-dev, you can complete "setup.py install"
Running "keystone" at that point gets an error because pbr.version is
not present.
pbr.version is listed in requirements.txt, but is not installed by
"setup.py install" for some reason. Installing it resolves this issue.
Running keystone-manage and keystone-all gives an error because
repoze.lru is not installed. Repoze.lru is a dependency of Routes,
which is installed by setup.py. For some reason, when setup.py
installs Routes, it does not install the dependency. if, AFTER running
setup.py, you attempt to "pip install -r requirements.txt" it will not
install repoze.lru because Routes is already installed, and pip
doesn't detect that the dependency is not installed.
The following steps work reproducibly to install keystone from source
on a completely clean hashicorp/precise64:
# Vagrant setup in an empty directory
vagrant init hashicorp/precise64
vagrant up
vagrant ssh
# Generic Ubuntu Precise instructions begin here.
sudo su
apt-get update
apt-get install -y git python-setuptools python-dev libxml2-dev libxslt1-dev
easy_install pip
cd /root
git clone https://github.com/openstack/keystone.git
cd keystone
pip install -r requirements.txt
python setup.py install
At that point all three executables (keystone, keystone-manage, and
keystone-all) will execute and display their non-configured / help
message without dependency errors.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1322771/+subscriptions
References