New install issues keystone wont start

Asked by Im Root

I installed keystone per instructions but it won't start.
- downloaded it
- unzipped
- python setup.py install (no errors)
- cd to the keystone bin directory.

# ./keystone
ERROR: Unable to load keystone-legacy-auth from configuration file /software/keystone/openstack-keystone-61148fb/etc/keystone.conf.
Got: ImportError('No module named passlib.hash',)

The keystone.conf file has not been changed from default.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Im Root
Solved:
Last query:
Last reply:
Revision history for this message
Im Root (imroot-rocketmail) said :
#1

more info ...

# ./keystone -d
keystone-legacy-auth: INFO **************************************************
keystone-legacy-auth: INFO Configuration options gathered from config file:
keystone-legacy-auth: INFO /software/keystone/openstack-keystone-61148fb/etc/keystone.conf
keystone-legacy-auth: INFO ================================================
keystone-legacy-auth: INFO admin_host 0.0.0.0
keystone-legacy-auth: INFO admin_port 35357
keystone-legacy-auth: INFO backends keystone.backends.sqlalchemy
keystone-legacy-auth: INFO debug True
keystone-legacy-auth: INFO default_store sqlite
keystone-legacy-auth: INFO hash-password True
keystone-legacy-auth: INFO keystone-admin-role Admin
keystone-legacy-auth: INFO keystone-service-admin-role KeystoneServiceAdmin
keystone-legacy-auth: INFO log_file keystone.log
keystone-legacy-auth: INFO service-header-mappings {
'nova' : 'X-Server-Management-Url',
'swift' : 'X-Storage-Url',
'cdn' : 'X-CDN-Management-Url'}
keystone-legacy-auth: INFO service_host 0.0.0.0
keystone-legacy-auth: INFO service_port 5000
keystone-legacy-auth: INFO verbose False
keystone-legacy-auth: INFO **************************************************
ERROR: Unable to load keystone-legacy-auth from configuration file /software/keystone/openstack-keystone-61148fb/etc/keystone.conf.
Got: ImportError('No module named passlib.hash',)

Revision history for this message
Tomasz 'Zen' Napierala (tzn) said :
#2

Install pip e.g.
apt-get install python-pip

And then
pip install passlib

Revision history for this message
Im Root (imroot-rocketmail) said :
#3

apt-get doesn't work on RHEL6.

Revision history for this message
Im Root (imroot-rocketmail) said :
#4

the pip install passlib worked but it still behaves the same.

Revision history for this message
sunhee Park (sunny790821) said :
#5

I had the same symptoms. After I install passlib, error was diappeared. Thanks.

Revision history for this message
Im Root (imroot-rocketmail) said :
#6

I solved this by reinitializing the who;le machine and installed XCP instead of Openstack.
Apparently pip is garbage that tries to attach to Twitter of all things.
No Openstack, no Keystone, no pip, no Ubuntu, no problems......

Revision history for this message
Rob Neff (robpneff) said :
#7

This worked for me to get the services started, but then I got a database error when running keystone-manage.

apt-get install python-pip
pip install passlib
/bin/keystone

Revision history for this message
Im Root (imroot-rocketmail) said :
#8

I was running RHEL 6 not Ubuntu. The apt-get command doesn't really work well on RHEL. This is prime example how the whole Openstack system and it's peripheral modules are too Ubuntu-centric and not RHEL friendly.
As a followup, I have dozens of VMs now up and running very well on the XCP platform. It was amazingly easy and fast to set up. I did give Openstack a try but unfortunately it's still half-baked and was a complete waste of my time.