Ask Your Question

Keystone Authorization Failed: Malformed endpoint [closed]

asked 2014-02-19 16:03:58 -0500

romainp gravatar image

Hi, I am currently playing with the setup of openstack on an opensuse 13.1 using the official documentation.

I am at the step: Verify the Identity Service installation: 3 - Verify that authorization behaves as expected. And run the command:

keystone --os-username=admin --os-password=ADMIN_PASS \
  --os-tenant-name=admin --os-auth-url=http://<controller name>:35357/v2.0 \

Each time I have the error below: Authorization Failed: Malformed endpoint URL (http://%SERVICE_HOST%:8774/v2/$(tenant_id)s), see ERROR log for details. (HTTP 500)

I do not understand the http://%SERVICE_HOST%:8774 thing since the 8774 is for compute program according to the default_catalog.templates.

Using debug gives me:

#keystone --debug --os-username=admin --os-password=passpass--os-tenant-name=admin --os-auth-url=http://pdroskeystone:35357/v2.0 token-get
REQ: curl -i -X POST http://pdroskeystone:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "passpass"}}}

RESP: [500] CaseInsensitiveDict({'date': 'Wed, 19 Feb 2014 21:33:37 GMT', 'vary': 'X-Auth-Token', 'content-length': '169', 'content-type': 'application/json'})
RESP BODY: {"error": {"message": "Malformed endpoint URL (http://%SERVICE_HOST%:8774/v2/$(tenant_id)s), see ERROR log for details.", "code": 500, "title": "Internal Server Error"}}

Request returned failure status: 500
Authorization Failed: Malformed endpoint URL (http://%SERVICE_HOST%:8774/v2/$(tenant_id)s), see ERROR log for details. (HTTP 500)

At that point I really lost :)

Do you have some hints or advices that could help me to solve this?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-02-21 09:39:24.653400


give me the output of keystone endpont-list.

dheeru gravatar imagedheeru ( 2014-02-19 19:55:22 -0500 )edit

Thanks :) Here it is: #keystone --os-token=TOKEN--os-endpoint=http://HOSTNAME:35357/v2.0 endpoint-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). So not value return at all...

romainp gravatar imageromainp ( 2014-02-19 22:23:39 -0500 )edit

What I don't understand is that I have followed the guide and at the step 2 (keystone endpoint-create), it was successful...

romainp gravatar imageromainp ( 2014-02-19 22:28:07 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-20 14:56:22 -0500

romainp gravatar image

Ok, I have found my mistake. I am using Opensuse 13.1 and the documentation ( (OpenStack packages) say that:

"While openSUSE 13.1 contains OpenStack Havana packages, these instructions apply also to 13.1. The Open Build Service contains updated OpenStack packages with important fixes."

So, before installing any Openstack package that comes with the standard OpenSuse 13.1 setup, add the OBS repo:

zypper addrepo -f obs://Cloud:OpenStack:Havana/openSUSE_13.1 Havana

After that, all should work as describe in the documentation.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-19 16:03:58 -0500

Seen: 1,246 times

Last updated: Feb 20 '14