, , ,

Issue: Openstack keystone service crashes with

“WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from”

If you try to start the keystone service after the keystone-manage db_sync, during openstack setup, the keystone service starts up and then disappers. A tailf on /var/log/keystone/keystone.log shows the above mentioned error.
Happens because keystone-all tries to use the auth_token in the keystone.conf and a mere parsing error due to extra white space causes the service to crash. your auth_token and the hex value you created as token should not have any white spaces on the line.
e.g. ‘<whitespace>admin_token = 6fb86a63ac5930b4873b’ does not work but ‘admin_token=6fb86a63ac5930b4873b’ does.
When you remove the ‘#’ before the line, don’t forget to delete the whitespace there.