akiradeveloper / akashic-storage

Filey system backed S3-compatible storage in Scala/Akka-Http
Apache License 2.0
22 stars 2 forks source link

ERROR: s3tests.functional.test_s3.test_bucket_list_delimiter_basic #16

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

Traceback (most recent call last): File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/s3tests/functional/test_s3.py", line 166, in test_bucket_list_delimiter_basic bucket = _create_keys(keys=['foo/bar', 'foo/baz/xyzzy', 'quux/thud', 'asdf']) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/s3tests/functional/test_s3.py", line 122, in _create_keys key.set_contents_from_string(s) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 1426, in set_contents_from_string encrypt_key=encrypt_key) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 1293, in set_contents_from_file chunked_transfer=chunked_transfer, size=size) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 750, in send_file chunked_transfer=chunked_transfer, size=size) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 951, in _send_file_internal query_args=query_args File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/connection.py", line 665, in make_request retry_handler=retry_handler File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/connection.py", line 1071, in make_request retry_handler=retry_handler) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/connection.py", line 940, in _mexe request.body, request.headers) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 884, in sender response.status, response.reason, body) S3ResponseError: S3ResponseError: 404 Not Found

-------------------- >> begin captured logging << -------------------- boto: DEBUG: path=/hoge-36kp5mui93t3h41zet8saher-65/ boto: DEBUG: auth_path=/hoge-36kp5mui93t3h41zet8saher-65/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-36kp5mui93t3h41zet8saher-65/ boto: DEBUG: Data: boto: DEBUG: Headers: {} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: establishing HTTP connection: kwargs={'port': 10946, 'timeout': 70} boto: DEBUG: Token: None boto: DEBUG: StringToSign: PUT

Sat, 23 Jan 2016 06:07:34 GMT /hoge-36kp5mui93t3h41zet8saher-65/ boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:uSljubiw2anf71CqN0MydpcdSTk= boto: DEBUG: Final headers: {'Date': 'Sat, 23 Jan 2016 06:07:34 GMT', 'Content-Length': '0', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:uSljubiw2anf71CqN0MydpcdSTk=', 'User-Agent': 'Boto/2.39.0 Python/2.7.3 Linux/3.13.0-63-generic'} boto: DEBUG: Response headers: [('content-length', '0'), ('x-amz-request-id', '6G5FJqcKoAunOuEd'), ('content-type', 'text/plain;charset=utf-8')] boto: DEBUG: path=/hoge-36kp5mui93t3h41zet8saher-65/foo/bar boto: DEBUG: auth_path=/hoge-36kp5mui93t3h41zet8saher-65/foo/bar boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-36kp5mui93t3h41zet8saher-65/foo/bar boto: DEBUG: Data: boto: DEBUG: Headers: {'Content-Length': '7', 'Content-MD5': u'gtDw+oVR3ot+tey2Xq4CYQ==', 'Content-Type': 'application/octet-stream', 'Expect': '100-Continue', 'User-Agent': 'Boto/2.39.0 Python/2.7.3 Linux/3.13.0-63-generic'} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: Token: None boto: DEBUG: StringToSign: PUT gtDw+oVR3ot+tey2Xq4CYQ== application/octet-stream Sat, 23 Jan 2016 06:07:34 GMT /hoge-36kp5mui93t3h41zet8saher-65/foo/bar boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:9t6VII0nLrM4AT3u1JaTSkUygcM= boto: DEBUG: Final headers: {'Content-Length': '7', 'Content-MD5': 'gtDw+oVR3ot+tey2Xq4CYQ==', 'Expect': '100-Continue', 'Date': 'Sat, 23 Jan 2016 06:07:34 GMT', 'User-Agent': 'Boto/2.39.0 Python/2.7.3 Linux/3.13.0-63-generic', 'Content-Type': 'application/octet-stream', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:9t6VII0nLrM4AT3u1JaTSkUygcM='} --------------------- >> end captured logging << ---------------------

akiradeveloper commented 8 years ago

Maybe, the cause is wrong path consuming

PUT gtDw+oVR3ot+tey2Xq4CYQ== application/octet-stream Sat, 23 Jan 2016 06:07:34 GMT /hoge-36kp5mui93t3h41zet8saher-65/foo/bar

I guess this is finding a bucket "/hoge.../foo" and the object name is "bar" so the bucket name isn't found

akiradeveloper commented 8 years ago
bucket = _create_keys(keys=['foo/bar', 'foo/baz/xyzzy', 'quux/thud', 'asdf'])

using strings?

akiradeveloper commented 8 years ago

add a delimited-key test