Ask Your Question
1

CRITICAL keystone [-] ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request

asked 2015-10-13 05:14:22 -0600

updated 2015-10-13 07:11:17 -0600

I have tried to reinstall packstack keystone but failed with openstack keystone errors, unable to start openstack-keystone manually.

tried to install juno version.

192.168.1.66_keystone.pp:                       [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.1.66_keystone.pp
Error: Could not start Service[keystone]: Execution of '/usr/bin/systemctl start openstack-keystone' returned 1: Job for openstack-keystone.service failed. See 'systemctl status openstack-keystone.service' and 'journalctl -xn' for details.
You will find full trace in log /var/tmp/packstack/20151013-055930-GwXrn2/manifests/192.168.1.66_keystone.pp.log
Please check log file /var/tmp/packstack/20151013-055930-GwXrn2/openstack-setup.log for more information

=========================================================================

cat /var/log/messages

Oct 13 06:07:53 os-demo systemd: Stopping OpenStack Identity Service (code-named Keystone)...
Oct 13 06:07:53 os-demo systemd: Starting OpenStack Identity Service (code-named Keystone)...
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 CRITICAL keystone [-] ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone Traceback (most recent call last):
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone   File "/usr/bin/keystone-all", line 134, in <module>
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone     paste_config = config.find_paste_config()
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone   File "/usr/lib/python2.7/site-packages/keystone/config.py", line 90, in find_paste_config
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone     raise exception.ConfigFileNotFound(config_file=paste_config_value)
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.366 29956 TRACE keystone
Oct 13 06:07:54 os-demo systemd: openstack-keystone.service: main process exited, code=exited, status=1/FAILURE
Oct 13 06:07:54 os-demo systemd: Failed to start OpenStack Identity Service (code-named Keystone).
Oct 13 06:07:54 os-demo systemd: Unit openstack-keystone.service entered failed state.
Oct 13 06:07:54 os-demo systemd: openstack-keystone.service holdoff time over, scheduling restart.
Oct 13 06:07:54 os-demo systemd: Stopping OpenStack Identity Service (code-named Keystone)...
Oct 13 06:07:54 os-demo systemd: Starting OpenStack Identity Service (code-named Keystone)...
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.911 29966 CRITICAL keystone [-] ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.911 29966 TRACE keystone Traceback (most recent call last):
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.911 29966 TRACE keystone   File "/usr/bin/keystone-all", line 134, in <module>
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.911 29966 TRACE keystone     paste_config = config.find_paste_config()
Oct 13 06:07:54 os-demo keystone-all: 2015-10-13 06:07:54.911 29966 TRACE keystone   File "/usr ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-10-13 07:35:31 -0600

Looks it couldn't find keystone-paste.ini config file. Please check is it available under /etc/keystone directory.

edit flag offensive delete link more

Comments

If using the RDO packages, a sample can be found at /usr/share/keystone/keystone-dist-paste.ini. This can be copied into place with:

sudo cp -p /usr/share/keystone/keystone-dist-paste.ini /etc/keystone/keystone-paste.ini
sudo systemctl restart httpd.service
unixnut gravatar imageunixnut ( 2015-12-30 09:31:11 -0600 )edit
0

answered 2015-12-30 09:41:18 -0600

unixnut gravatar image

I also fixed this by editing /etc/keystone/keystone.conf and altering this section to add a value:

[paste_deploy]

#
# From keystone
#

# Name of the paste configuration file that defines the available pipelines.
# (string value)
#config_file = keystone-paste.ini
config_file=/usr/share/keystone/keystone-dist-paste.ini
edit flag offensive delete link more

Comments

Note that this is only a temporary solution as recommended by the OpenStack Installation Guide for Red Hat Enterprise Linux and CentOS: http://docs.openstack.org/liberty/install-guide-rdo/keystone-verify.html (http://docs.openstack.org/liberty/ins...) because admin_token_auth shouldn't be used in production.

unixnut gravatar imageunixnut ( 2016-01-02 04:28:30 -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: 2015-10-13 05:14:22 -0600

Seen: 1,224 times

Last updated: Oct 13 '15