ERROR:swiftclient:Endpoint for object-store not found - have you specified a region?

asked 2015-02-19 00:11:01 -0500

eugene.goldberg gravatar image

I have set up a single-node swift environment on Fedora 21 When I attempt to run swift --debug stat I get this error:

DEBUG:keystoneclient.session:REQ: curl -i -X POST http://127.0.0.1:35357/v2.0/tokens -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "mast3r"}}}'
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1703
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Thu, 19 Feb 2015 06:09:43 GMT', 'content-type': 'application/json', 'content-length': '1703', 'vary': 'X-Auth-Token', 'connection': 'keep-alive'}
RESP BODY: {"access": {"token": {"issued_at": "2015-02-19T06:09:43.012464", "expires": "2015-02-19T07:09:43Z", "id": "MIIDmwYJKoZIhvcNAQcCoIIDjDCCA4gCAQExCTAHBgUrDgMCGjCCAfEGCSqGSIb3DQEHAaCCAeIEggHeeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNS0wMi0xOVQwNjowOTo0My4wMTI0NjQiLCAiZXhwaXJlcyI6ICIyMDE1LTAyLTE5VDA3OjA5OjQzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogImMzNmI4YmIyOWVhOTQ3Y2U5MjJmNDIzODkwMDQ2NDhiIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFtdLCAidXNlciI6IHsidXNlcm5hbWUiOiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImEyYjhlMjNlYWE0MDQzNzhiMmZiMzRjZjIxN2VmYmU5IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiZTNjNDgwYzJmZDYxNDJmNTk0Yjg1MzliMDAyYTZiNmQiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQAQBF9j2Gjznh8ZLT70jHqOFAZ73AXkmn7NYshxi7VDJ1oZQSjIRoMLJCLkXzA04WkBbPO3RxsMjzTgC55ERWwL57dr+trx7u-SCwrox1yhft+OlxgV9LVvpdCYSiqM9tGkP8qU60vQnxCGb7ykaClH0R6wBV2z7pjJBocHogfdY9YOacq9pXlmjpla2uJH0C0yX3Qh8S1bP5Afr5ihgdjQaqLdUzY1Duh4mAJhjrUEJJL3HID3yVE-vTbVzWPHyK1pCIDlu5J9cnQ0mMEHsdj0dp-3o4XDiEL+OKyPJCaQFUeaTVeVLDjjYSUx2beOiJKoqd6FxxgCxa8QMlO9YO27", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "c36b8bb29ea947ce922f42389004648b", "name": "admin"}}, "serviceCatalog": [], "user": {"username": "admin", "roles_links": [], "id": "a2b8e23eaa404378b2fb34cf217efbe9", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["e3c480c2fd6142f594b8539b002a6b6d"]}}}

WARNING:keystoneclient.httpclient:Failed to retrieve management_url from token
ERROR:swiftclient:Endpoint for object-store not found - have you specified a region?
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1235, in _retry
    self.url, self.token = self.get_auth()
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1209, in get_auth
    insecure=self.insecure)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 406, in get_auth
    auth_version=auth_version)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 352, in get_auth_keystone
    'have you specified a region?' % service_type)
ClientException: Endpoint for object-store not found - have you specified a region?
Traceback (most recent call last):
  File "/bin/swift", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 1287, in main
    globals()['st_%s' % args[0]](parser, argv[1:], output)
  File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 492, in st_stat
    stat_result = swift.stat()
  File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 443, in stat
    raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'

What can I do to fix this?

edit retag flag offensive close merge delete