Ask Your Question
0

I Getting error while configuring identity service

asked 2014-01-04 01:42:56 -0600

Ranjan Dey gravatar image

updated 2014-01-04 06:24:20 -0600

dheeru gravatar image
I Getting error while configuring identity service as under :

[root@rhel ~]# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 51, in <module>
    cli.main(argv=sys.argv, config_files=config_files)
  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 216, in main
    default_config_files=config_files)
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1636, in __call__
    else sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 2137, in _parse_cli_opts
    return self._parse_config_files()
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 2151, in _parse_config_files
    ConfigParser._parse_file(config_file, namespace)
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1256, in _parse_file
    raise ConfigFileParseError(pe.filename, str(pe))
oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/keystone/keystone.conf: at /etc/keystone/keystone.conf:3, Unexpected continuation line: ' admin_token = 0cef4f568cb8a558e4fb'

[root@rhel ~]# chkconfig openstack-keystone on
[root@rhel ~]# service openstack-keystone restart
Stopping keystone:                                         [FAILED]
Starting keystone:                                         [  OK  ]


[root@rhel ~]# openstack-config --set /etc/keystone/keystone.conf DEFAULT \ admin_token $ADMIN_TOKEN
File contains parsing errors: /etc/keystone/keystone.conf
        [line  3]:  admin_token = 0cef4f568cb8a558e4fb

[root@rhel ~]# ADMIN_TOKEN=$(openssl rand -hex 10)
[root@rhel ~]# echo $ADMIN_TOKEN
c19c0b4bc26417bbbbec
[root@rhel ~]# openstack-config --set /etc/keystone/keystone.conf DEFAULT \ admin_token $ADMIN_TOKEN
File contains parsing errors: /etc/keystone/keystone.conf
        [line  3]:  admin_token = 0cef4f568cb8a558e4fb

Pl. help me.
edit retag flag offensive close merge delete

Comments

keystone.conf has some parse error. Please check the file. Alternatively you can send us the keystone.conf through pastebin. We can check and see what is the error.

dheeru gravatar imagedheeru ( 2014-01-04 06:26:50 -0600 )edit

How can I send the "keystone.conf" file, pl. let me know any ftp site where I can put the same or any alternative way pl. guide me.

Ranjan Dey gravatar imageRanjan Dey ( 2014-01-06 23:08:40 -0600 )edit

I thought your problem is resolved. If it is resolved, any reason you would like to send keystone.conf ?

dheeru gravatar imagedheeru ( 2014-01-06 23:51:35 -0600 )edit

Yes I would like you send the keystone.conf, pl. let me know ftp site and credential so that I will do the same.

Ranjan Dey gravatar imageRanjan Dey ( 2014-01-07 04:17:13 -0600 )edit

[root@rhel keystone]# keystone tenant-create --name 'admin' --description 'admin tenant' Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL] [root@rhel keystone]#

Ranjan Dey gravatar imageRanjan Dey ( 2014-01-07 04:19:09 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-01-04 10:25:58 -0600

jtopjian gravatar image

Hello,

It looks like there is a space at the beginning of the following line:

' admin_token = 0cef4f568cb8a558e4fb'

The configuration files are unable to contain spaces at the beginning of lines.

Hope that helps,

Joe

edit flag offensive delete link more
0

answered 2014-01-05 22:57:08 -0600

Ranjan Dey gravatar image

thanks Joe

Ranjan

edit flag offensive delete link more

Comments

Getting error while creation of user in keystone tenant as under : [root@rhel ~]# service openstack-keystone restart Stopping keystone: [ OK ] Starting keystone: [ OK ] [root@rhel ~]# chkconfig openstack-keystone on [root@rhel ~]# export OS_SERVICE_TOKEN=FCAF3F... [root@rhel ~]# export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0 [root@rhel ~]# keystone tenant-create --name=admin --description="Admin Tenant" (LocationParseError(...), 'Failed to parse: Failed to parse: temp:magma') [root@rhel ~]# keystone tenant-create --name=admin --description="Admin Tenant" (LocationParseError(...), 'Failed to parse: Failed to parse: temp:magma') [root@rhel ~]# keystone tenant-create --name=service --description="Service Tenant" (LocationParseError(...), 'Failed to parse: Failed to parse: temp:magma')

Ranjan Dey gravatar imageRanjan Dey ( 2014-01-05 23:18:17 -0600 )edit

Hope your earlier issue is resolved. Also can you accept the answer from Joe if your earlier issue is resolved. For this new issue please open another request.

dheeru gravatar imagedheeru ( 2014-01-05 23:45:27 -0600 )edit

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: 2014-01-04 01:42:56 -0600

Seen: 1,365 times

Last updated: Jan 05 '14