Token Auth does not work (not fetching catalog)

Bug #1613498 reported by Adrian Turjak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystoneauth
Opinion
Undecided
Unassigned
python-openstackclient
Opinion
Undecided
Unassigned

Bug Description

The docs all seem to assume token auth works exactly like password auth, except with an existing token. Even the various clients seem to expect this functionality.

Heatclient attempts to do token auth and falls over because it gets back an empty catalog:
https://github.com/openstack/python-heatclient/blob/master/heatclient/shell.py#L515

OpenStack client has pretty much the same issue.

To confirm I've just spun up a new devstack and wrote a few scripts to test it.

First I tried this:
http://paste.openstack.org/show/553336/
The error I get is: "The service catalog is empty."

I'm not sure if the issue was due to the token not being scoped so to be explicit I fetch a scoped token with curl, set that to an environment variable, and ran another python script to again try and fetch flavors:
curl: http://paste.openstack.org/show/553340/
python: http://paste.openstack.org/show/553398/
Same problem. It seems that it gets past authentication, but can't then do anything.

Back when I first encountered this issue with OS-Client I assumed it was a parameter problem and submitted a bug there, but now it seems the issue is KeystoneAuth not correctly fetching a catalog when authenticating with a token or not scoping the new internal token it creates for you.

This appears to be quite a major bug for what seems to be an expected feature. Either that or there has been a disconnect between what this feature actually is, and what people want from it.

Changed in keystoneauth:
status: New → Invalid
Changed in python-openstackclient:
status: New → Opinion
Changed in keystoneauth:
status: Invalid → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.