Bug #1399992 “v2.0 authentication does not work with rackspace” : Bugs : python-swiftclient (original) (raw)

using the standard swiftclient packages on Ubuntu 14.04

swift --os-auth-url OSAUTHURL−−os−tenant−nameOS_AUTH_URL --os-tenant-name OSAUTHURLostenantnameOS_TENANT_NAME --os-username OSUSERNAME−−os−passwordOS_USERNAME --os-password OSUSERNAMEospasswordOS_PASSWORD --debug list

DEBUG:keystoneclient.session:REQ: curl -i -X POST https://identity.api.rackspacecloud.com/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"passwordCredentials": {"username": "xxxxxxxx", "password": "xxxxxxxxx"}, "tenantId": "123456"}}'
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): identity.api.rackspacecloud.com
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 401 None
DEBUG:keystoneclient.session:RESP: [401] CaseInsensitiveDict({'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'vary': 'Accept, Accept-Encoding, X-Auth-Token', 'connection': 'keep-alive', 'server': 'nginx', 'x-newrelic-app-data': 'PxQGUF9aDwETVlhSBQgFVUYdFGQHBDcQUQxLA1tMXV1dORYzVBJHNQFUZAQUFVFQVThOFlhaUggXER5jLTU3SxJOCEwIFAQcBVEMWAZQH09VGhVTVVMIUVNSV1dUAwAHXFIPET8=', 'date': 'Sat, 06 Dec 2014 21:26:16 GMT', 'content-type': 'application/json'})
RESP BODY: {"unauthorized":{"code":401,"message":"Unable to authenticate user with credentials provided."}}

DEBUG:keystoneclient.session:Request returned failure status: 401
DEBUG:keystoneclient.v2_0.client:Authorization Failed.
ERROR:swiftclient:Unauthorised. Check username, password and tenant name/id
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1181, in _retry
self.url, self.token = self.get_auth()
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1155, in get_auth
insecure=self.insecure)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 346, in get_auth
insecure=insecure)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 280, in get_keystoneclient_2_0
raise ClientException('Unauthorised. Check username, password'
ClientException: Unauthorised. Check username, password and tenant name/id
Unauthorised. Check username, password and tenant name/id