Ask Your Question

Revision history [back]

Looks like you are missing user tenant role association. You need to associate the role with tenant and the user.

Try keystone user-role-add.

It is easier to verify this. 1) using curl get the token directly from keystone using username/password/tenant. If that returns roles, then it will work via swift.

Looks like you are missing user tenant role association. You need to associate the role with tenant and the user.

Try keystone user-role-add.

It is easier to verify this. 1) using curl get the token directly from keystone using username/password/tenant. If that returns roles, then it will work via swift.swift. You need to use keystone-user-role-add to add tenant role association. After that curl and swift comamnd work. In general if you want to know the curl syntax run keystone command with --debug option.

There are 2 types of token in keystone , one is unscoped and other is scoped token. You are trying to get a scoped token and it will fail unless you have user tenant association with a role.

Try this link for example

curl  -H "Content-Type: application/json" -X POST --data "@request.json" http://<keystone_host>:35357/v2/tokens

where request.json file has the payload with current username and password