CENTOS 6.5 : starting keystone service

Bug #1358908 reported by reachparagm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned

Bug Description

While starting keystone service on CENTOS 6.5 x86_64 system. The service bails outs saying

service openstack-keystone restart
Stopping keystone: [FAILED]
Starting keystone: /usr/bin/python: No module named keystone.openstack.common
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                           [FAILED]

I have all rpms installed

# rpm -qa | grep openstack
openstack-selinux-0.1.3-2.el6ost.noarch
openstack-keystone-2014.1.1-1.el6.noarch
openstack-utils-2014.1-3.el6.noarch

# rpm -qa | grep keystone
python-keystoneclient-0.9.0-1.el6.noarch
python-keystone-2014.1.1-1.el6.noarch
openstack-keystone-2014.1.1-1.el6.noarch

I also performed an upgrade via
# pip install --upgrade python-keystoneclient , which added "python_keystoneclient-0.10.1.dist-info" in site-packages.

Revision history for this message
Lance Bragstad (lbragstad) wrote :

Looks like an import error, are you able to provide a little more information in a stack trace possibly that could help narrow this down?

The logs (/var/log/keystone.log depending on your deployment) will have more information if you enabled debug=True and verbose=True.

Revision history for this message
reachparagm (reachparagm) wrote :

I happened to install new Python 2.7.6 on my centos 6.5 to find that the yum install openstack-keystone, python-keystone and python-keystoneclient still refers to the old argparse

The start of service says -

# service openstack-keystone restart
Stopping keystone: [FAILED]
Starting keystone: Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.6/site-packages/keystone/openstack/common/systemd.py", line 23, in <module>
    from keystone.openstack.common import log as logging
  File "/usr/lib/python2.6/site-packages/keystone/openstack/common/log.py", line 40, in <module>
    from oslo.config import cfg
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 273, in <module>
    import argparse
ImportError: No module named argparse
                                                           [FAILED]

# python -V
Python 2.7.6

#which python
/usr/local/bin/python

# which pip
/usr/local/bin/pip

#pip list
argparse (1.2.1) <----------
Babel (1.3)
config (0.3.9)
ecdsa (0.11)
iso8601 (0.1.10)
lxml (3.3.5)
netaddr (0.7.12)
oslo.config (1.3.0)
paramiko (1.14.0)
pbr (0.10.0)
pip (1.5.6)
prettytable (0.7.2)
pycrypto (2.6.1)
python-keystoneclient (0.10.1)
pytz (2014.4)
requests (2.3.0)
setuptools (5.7)
six (1.7.3)
stevedore (0.15)
wsgiref (0.1.2)

Do not know what is happening behind.

later on tried to pip2.6 install argparse, the keystone fails to start with following in /var/log/keystone/keystone.log
2014-08-19 02:00:45.668 3914 CRITICAL keystone [-] ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.

The config file looks good for admin_token and database section. All other sections are empty.

Revision history for this message
Dolph Mathews (dolph) wrote :

This looks like it was a packaging issue. If it's still a problem, I'd suggest filing it against centos / RDO.

Changed in keystone:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.