Problem creating service entity for Identity service

asked 2016-12-05 05:34:08 -0500

Kamlesh Gupta gravatar image

updated 2016-12-06 14:52:12 -0500

rbowen gravatar image

I have been stuck on the following step. I searched it on Internet but none of them could solve the problem. I am getting following error while creating the "identity service".

root@controller:~# openstack service create --name keystone --description "OpenStack_Identity" identity
usage: openstack service create [-h] [-f {shell,table}] [-c COLUMN]
                                [--variable VARIABLE] [--prefix PREFIX]
                                [--name <service-name>] [--enable | --disable]
                                <service-type>
openstack service create: error: unrecognized arguments: --description identity

If i type the command :

root@NodeTwo:~# openstack service list

then it gives the following error :

INFO: urllib3.connectionpool Starting new HTTP connection (1): NodeTwo

ERROR: cliff.app Internal Server Error (HTTP 500)

My error logs are :

2016-12-05 15:56:28.024496 mod_wsgi (pid=13888, process='keystone-admin', application=''): Loading WSGI script '/var/www/cgi-bin/keystone/admin'.
2016-12-05 15:56:28.024563 mod_wsgi (pid=13888, process='keystone-admin', application=''): Failed to parse WSGI script file '/var/www/cgi-bin/keystone/admin'.
2016-12-05 15:56:28.024573 mod_wsgi (pid=13888): Exception occurred processing WSGI script '/var/www/cgi-bin/keystone/admin'.
2016-12-05 15:56:28.024640   File "/var/www/cgi-bin/keystone/admin", line 1
2016-12-05 15:56:28.024645     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2016-12-05 15:56:28.024649     ^
2016-12-05 15:56:28.024651 SyntaxError: invalid syntax

Please help, thanking you.

edit retag flag offensive close merge delete

Comments

Perhaps your openstack client is incompatible with the keystone server or some libraries. openstack --version and keystone-manage --version show you the versions. Then, on releases.openstack.org, click keystone and openstackclient to find out to what OpenStack release they correspond.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-06 17:50:16 -0500 )edit

I also notice that the usage message is different from the latest doc http://docs.openstack.org/developer/p.... Probably your client is old.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-06 17:55:05 -0500 )edit

Hey thanks for the reply. My openstack client version is : 0.3.0 and keystone version is : 2014.1.5. How do i know if they are compatible or not and how to upgrade them if needed. please suggest, Thanks.

Kamlesh Gupta gravatar imageKamlesh Gupta ( 2016-12-07 01:17:39 -0500 )edit