Invalid Bucket Name Error with Ceph and Swift API

asked 2015-11-22 19:46:33 -0500

omniopen gravatar image

I installed Mirantis OpenStack 7.0 with

  • 1 Controller/Ceph Node
  • 1 Compute/Ceph Node
  • 1 Ceph Node
  • x3 replication factor

I sourced a file and executed

swift -v -V 2.0 --debug -U <PROJECT NAME>:<USER NAME> -K <PASSWORD> list

with the actual project name, user name, and password.

I get the following output.

DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://192.168.2.8:5000/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.8
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 4681
DEBUG:iso8601.iso8601:Parsed 2015-11-23T02:38:31Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'02', 'daydash': u'23', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'31', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'11', 'day': None, 'minute': u'38'} with default timezone <iso8601.iso8601.Utc object at 0x02DC6FB0>
DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'11' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 11 for 'month' with default 11
DEBUG:iso8601.iso8601:Got u'23' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 23 for 'day' with default 23
DEBUG:iso8601.iso8601:Got u'02' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'38' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'31' for 'second' with default None
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.8
DEBUG:requests.packages.urllib3.connectionpool:"GET /v1/AUTH_f132bff194c5432b9b46e7ff8b4f4e32?format=json HTTP/1.1" 400 83
INFO:swiftclient:REQ: curl -i http://192.168.2.8:8080/v1/AUTH_f132bff194c5432b9b46e7ff8b4f4e32?format=json -X GET -H "X-Auth-Token: c6ea488a51d44434ad4239b1163bf963"
INFO:swiftclient:RESP STATUS: 400 Bad Request
INFO:swiftclient:RESP HEADERS: [('date', 'Mon, 23 Nov 2015 01:38:31 GMT'), ('accept-ranges', 'bytes'), ('content-type', 'application/xml'), ('content-length', '83'), ('server', 'Apache')]
INFO:swiftclient:RESP BODY: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidBucketName</Code></Error>
ERROR:swiftclient:Account GET failed: http://192.168.2.8:8080/v1/AUTH_f132bff194c5432b9b46e7ff8b4f4e32?format=json 400 Bad Request  [first 60 chars of response] <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidBu
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\swiftclient\client.py", line 1302, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "C:\Python27\lib\site-packages\swiftclient\client.py", line 549, in get_account
    http_response_content=body)
ClientException: Account GET failed: http://192.168.2.8:8080/v1/AUTH_f132bff194c5432b9b46e7ff8b4f4e32?format=json 400 Bad Request  [first 60 chars of response] <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidBu
Account GET failed: http://192.168.2.8:8080/v1/AUTH_f132bff194c5432b9b46e7ff8b4f4e32?format=json 400 Bad Request  [first 60 chars of response] <?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidBu

Thus, it seems like I have an issue with an invalid bucket name. Given that I am simply trying to list the objects in the account I don't see how I could have an ... (more)

edit retag flag offensive close merge delete