Ask Your Question
0

keystone service creation error

asked 2015-05-03 08:29:27 -0500

sri krishna gravatar image

i have a centos 7 minimal installation. i am trying to setup keystone service in KILO release. i am following the setp from http://docs.openstack.org when i run service creation for keystone i get the below error:

#openstack service create --type identity --description "Openstack Identity" keystone

Traceback (most recent call last):
  File "/usr/bin/openstack", line 6, in <module>
    from openstackclient.shell import main
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 28, in <module>
    from openstackclient.common import clientmanager
  File "/usr/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 25, in <module>
    from openstackclient.api import auth
  File "/usr/lib/python2.7/site-packages/openstackclient/api/auth.py", line 24, in <module>
    from openstackclient.common import utils
  File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 24, in <module>
    from oslo_utils import importutils
ImportError: No module named oslo_utils

the package/modules for OSLO are installed:

[root@controller ~]# rpm -qa | grep oslo
python-oslo-config-1.4.0-1.el7.centos.noarch
python-oslo-messaging-1.4.1-3.el7.centos.noarch
python-oslo-i18n-1.0.0-1.el7.centos.noarch
python-oslo-utils-1.0.0-1.el7.centos.noarch
python-oslo-db-1.0.2-2.el7.centos.noarch
python-oslo-serialization-0.3.0-1.el7.centos.noarch

if i try installing the modules via PIP, the config files created are different and when i try to request an authentication token from the Identity, it just hangs with out any response.

what am i missing?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-05-11 11:02:18 -0500

huajun_zhou gravatar image

please edit /usr/lib/python2.7/site-packages/openstackclient/common/utils.py

add :

import oslo

If you reported the following error:

ImportError: No module named netifaces

Perform(You must install gcc):

# pip install netifaces
edit flag offensive delete link more
0

answered 2015-05-09 01:46:43 -0500

sunnyarora gravatar image

updated 2015-05-15 05:48:42 -0500

Can you please check running

pip install oslo.concurrency

After this run command for creating the identity service, if you get error of any other missing pakage or mudule for ex: missing netifaces modules. Then run command

pip install netifaces

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-05-03 08:29:27 -0500

Seen: 1,340 times

Last updated: May 15 '15