Ask Your Question
0

error setting up keystone from KILO release

asked 2015-05-03 10:39:26 -0500

sri krishna gravatar image

have a centos 7 minimal installation. i am trying to setup keystone service in KILO release. i am following the setps from the openstack docs site 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 service creation etc work fine but the config files created are different (file keystone-paste.ini missing) 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

6 answers

Sort by » oldest newest most voted
0

answered 2015-12-01 15:51:52 -0500

I had this issue installing Kilo on Centos 7. I did a "pip install --upgrade oslo.utils" (still no luck), then "yum update -y" (which updated a load of python stuff, strange cos I'd just done a yum update before attempting Kilo install, must have been triggered by the oslo.utils update?), then repeated packstack. Bingo!

edit flag offensive delete link more
0

answered 2015-05-05 22:39:51 -0500

same error

edit flag offensive delete link more
0

answered 2015-05-06 04:20:33 -0500

dbaxps gravatar image

On CentOS 7.1 yum updated

# yum install http://rdoproject.org/repos/openstack-kilo/rdo-testing-kilo.rpm 
# yum install openstack-packstack
# packstack --allinone

Keystone would be installed in particular
You might experience problem with openstack-selinux install by prescript.pp
Then view :- https://bugzilla.redhat.com/show_bug....

If you want just keystone active CBS repos via first command above and try again

edit flag offensive delete link more
0

answered 2015-05-09 13:52:56 -0500

sri krishna gravatar image

@Bella Li. thank you for the reply.

i checked as below:

[root@controller utils]# rpm -qa | grep -i 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

i have the oslo-utils installed. when i run "python import oslo.utils" i get the bellow error.

[root@controller utils]# python import oslo.utils 
python: can't open file 'import': [Errno 2] No such file or directory
[root@controller utils]#

but it works at python prompt:

[root@controller utils]# python
Python 2.7.5 (default, Jun 17 2014, 18:11:42) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import oslo.utils
>>>

i edited the file as mentioned in #3. post which i get :

[root@controller utils]# openstack service create --type identity   --description "OpenStack Identity" keystone
ERROR: openstack 'Namespace' object has no attribute 'os_url'
edit flag offensive delete link more
0

answered 2015-05-07 01:55:04 -0500

Bella Li gravatar image

I meet this same error and solved by following steps:

  1. $ rpm -qa | grep oslo check oslo-utils module has installed.
  2. $pyhton import oslo.utils make sure oslo.utils import no error,if error,check python sys path.
  3. edit /usr/lib/python2.7/site-packages/openstackclient/common/utils.py add "import oslo" update "from utils import importutils" to "from oslo.utils import importutils"

hope this work for you.

edit flag offensive delete link more

Comments

1

step 3, after edited the utils.py, the error message is ---ERROR: openstack 'Namespace' object has no attribute 'os_url'

I must missed something, ?

Danfer He gravatar imageDanfer He ( 2015-05-10 22:41:47 -0500 )edit
0

answered 2015-05-11 11:00:55 -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

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

1 follower

Stats

Asked: 2015-05-03 10:39:26 -0500

Seen: 2,297 times

Last updated: Dec 01 '15