Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2014 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/eedb1771c18ad9013cca to your computer and use it in GitHub Desktop.
Save anonymous/eedb1771c18ad9013cca to your computer and use it in GitHub Desktop.
The list denied:
rob@rubyworkbench:~/swift_clusters/it1$ env | grep ST_
ST_AUTH=http://10.9.186.238:8080/auth/v1.0
ST_USER=robtestaccount:robtestaccountuser
ST_KEY=password
rob@rubyworkbench:~/swift_clusters/it1$ swift list
Account GET failed: http://10.9.186.238:8080/v1/AUTH_f1ca177c-7024-4704-8e79-1edcf58c2db5?format=json 403 Forbidden 403 Forbidden
Access was denied to this resource.
rob@rubyworkbench:~/swift_clusters/it1$
The acls:
rob@rubyworkbench:~/swift_clusters/it1$ env | grep ST_
ST_AUTH=http://10.9.186.238:8080/auth/v1.0
ST_USER=robtestaccount:robtestaccountuseradmin
ST_KEY=password
rob@rubyworkbench:~/swift_clusters/it1$ swift stat
Account: AUTH_f1ca177c-7024-4704-8e79-1edcf58c2db5
Containers: 1
Objects: 0
Bytes: 0
Meta X-Account-Acl: {"read-only": ["robtestaccount:robtestaccountuser"]}
Meta X-Account-Read: robtestaccount:robtestaccountuser
Accept-Ranges: bytes
X-Timestamp: 1403886738.27154
Content-Type: text/plain; charset=utf-8
rob@rubyworkbench:~/swift_clusters/it1$
The swauth info:
swauth-list -A http://10.9.186.238:8080/auth -K superdooper robtestaccount | python -m json.tool
{
"account_id": "AUTH_f1ca177c-7024-4704-8e79-1edcf58c2db5",
"services": {
"storage": {
"default": "local",
"local": "http://10.9.186.238:8080/v1/AUTH_f1ca177c-7024-4704-8e79-1edcf58c2db5"
}
},
"users": [
{
"name": "robtestaccountuser"
},
{
"name": "robtestaccountuseradmin"
}
]
}
root@gmadp1:/etc/swift# swauth-list -A http://10.9.186.238:8080/auth -K superdooper robtestaccount robtestaccountuseradmin | python -m json.tool
{
"auth": "plaintext:password",
"groups": [
{
"name": "robtestaccount:robtestaccountuseradmin"
},
{
"name": "robtestaccount"
},
{
"name": ".admin"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment