openstack service create command throwing "Internal Server Error (HTTP 500)"

asked 2018-07-24 01:03:02 -0600

vamsee_007 gravatar image

updated 2018-07-26 08:14:08 -0600

I'm trying setup Openstack multi node environment in my CentOS VM. I've successfully installed the openstack Queens v. in both controllernode and compute node. When i try to create a service in controllernode, its throwing the following error: Internal Server Error (HTTP 500)

The command is: openstack service create --name keystone --description "OpenStack Identity" identity

The keystone.log file is as follows:

2018-07-24 11:10:19.210 5770 WARNING oslo_log.versionutils [-] Deprecated: UUID Token Provider "[token] provider=uuid" is deprecated as of Pike in favor of Fernet token Provider "[token] provider=fernet" and may be removed in R. 
2018-07-24 11:10:19.212 5770 WARNING oslo_config.cfg [-] Option "driver" from group "token" is deprecated for removal.  Its value may be silently ignored in the future. 
2018-07-24 11:10:19.213 5770 WARNING stevedore.named [-] Could not load memcache

The Keystone Bootstrap command is as follows:

keystone-manage bootstrap --bootstrap-password openstack --bootstrap-admin-url http://controllernode1:5000/v3/ --bootstrap-internal-url http://controllernode1:5000/v3/ --bootstrap-public-url http://controllernode1:5000/v3/ --bootstrap-region-id RegionOne

The environment variables are as follows:


Error in the Keystone-error.log:

2018-07-26 14:42:21.279222 ImportError: (u'Unable to find %(name)r driver in %(namespace)r.', {'namespace': 'keystone.token.persistence', 'name': 'memcache'})
2018-07-26 14:42:25.097350 mod_wsgi (pid=7468): Target WSGI script '/usr/bin/keystone-wsgi-public' cannot be loaded as Python module.
2018-07-26 14:42:25.097435 mod_wsgi (pid=7468): Exception occurred processing WSGI script '/usr/bin/keystone-wsgi-public'.
2018-07-26 14:42:25.097503 Traceback (most recent call last):
2018-07-26 14:42:25.097549   File "/usr/bin/keystone-wsgi-public", line 54, in <module>
2018-07-26 14:42:25.097773     application = initialize_public_application()
2018-07-26 14:42:25.097812   File "/usr/lib/python2.7/site-packages/keystone/server/", line 134, in initialize_public_application
2018-07-26 14:42:25.098076     config_files=_get_config_files())
2018-07-26 14:42:25.098123   File "/usr/lib/python2.7/site-packages/keystone/server/", line 66, in initialize_application
2018-07-26 14:42:25.098185     startup_application_fn=loadapp)
2018-07-26 14:42:25.098216   File "/usr/lib/python2.7/site-packages/keystone/server/", line 46, in setup_backends
2018-07-26 14:42:25.098381     drivers = backends.load_backends()
2018-07-26 14:42:25.098418   File "/usr/lib/python2.7/site-packages/keystone/server/", line 55, in load_backends
2018-07-26 14:42:25.098589     drivers = {d._provides_api: d() for d in managers}
2018-07-26 14:42:25.098653   File "/usr/lib/python2.7/site-packages/keystone/server/", line 55, in <dictcomp>
2018-07-26 14:42:25.098713     drivers = {d._provides_api: d() for d in managers}
2018-07-26 14:42:25.098743   File "/usr/lib/python2.7/site-packages/keystone/token/persistence/", line 48, in __init__
2018-07-26 14:42:25.099084     super(PersistenceManager, self).__init__(CONF.token.driver)
2018-07-26 14:42:25.099129   File "/usr/lib/python2.7/site-packages/keystone/common/", line 181, in __init__
2018-07-26 14:42:25.099357     self.driver = load_driver(self.driver_namespace, driver_name)
2018-07-26 14:42:25.099392   File "/usr/lib/python2.7/site-packages ...
edit retag flag offensive close merge delete


Check the keystone log for ERROR logs. You probably find it under /var/log/keystone.

Such errors are typically caused by some misconfiguration, such as a typo in the keystone.conf file.

Bernd Bausch gravatar imageBernd Bausch ( 2018-07-24 01:12:34 -0600 )edit

Thanks for the prompt reply. I've updated the question with the log data, can you please help?

vamsee_007 gravatar imagevamsee_007 ( 2018-07-24 01:18:23 -0600 )edit

Did you install and configure memcached as described here?

eblock gravatar imageeblock ( 2018-07-24 02:03:46 -0600 )edit

By the way, you mention installing Queens version. But your command is from older releases. Since Newton release (I'm not sure) the keystone service is deployed with a bootstrap command:

keystone-manage bootstrap --bootstrap-password ADMIN_PASS [...]
eblock gravatar imageeblock ( 2018-07-24 02:09:41 -0600 )edit

Hi @eblock , I've tried with the keystone bootstrap command. can you please guide me the next step?

vamsee_007 gravatar imagevamsee_007 ( 2018-07-24 02:28:42 -0600 )edit