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_recreate_not_overriding #18

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

ERROR: s3tests.functional.test_s3.test_bucket_recreate_not_overriding

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 4507, in test_bucket_recreate_not_overriding bucket = _create_keys(keys=key_names) 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 882, in sender if not self.should_retry(response, chunked_transfer): File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/key.py", line 983, in should_retry '%s vs. %s' % (self.etag, self.md5)) S3DataError: BotoClientError: ETag from S3 did not match computed MD5. a00121784b51b0f6b67a9c7987b7ae66 vs. a00121784b51b0f6b67a9c7987b7ae66 -------------------- >> begin captured logging << -------------------- boto: DEBUG: path=/hoge-36kp5mui93t3h41zet8saher-247/ boto: DEBUG: auth_path=/hoge-36kp5mui93t3h41zet8saher-247/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-36kp5mui93t3h41zet8saher-247/ boto: DEBUG: Data: boto: DEBUG: Headers: {} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: Token: None boto: DEBUG: StringToSign: PUT

Sat, 23 Jan 2016 06:08:46 GMT /hoge-36kp5mui93t3h41zet8saher-247/ boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:PPbNJNNLyRZomo99LFCW65m0LR0= boto: DEBUG: Final headers: {'Date': 'Sat, 23 Jan 2016 06:08:46 GMT', 'Content-Length': '0', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:PPbNJNNLyRZomo99LFCW65m0LR0=', '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-247/mykey1 boto: DEBUG: auth_path=/hoge-36kp5mui93t3h41zet8saher-247/mykey1 boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-36kp5mui93t3h41zet8saher-247/mykey1 boto: DEBUG: Data: boto: DEBUG: Headers: {'Content-Length': '6', 'Content-MD5': u'oAEheEtRsPa2epx5h7euZg==', '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 oAEheEtRsPa2epx5h7euZg== application/octet-stream Sat, 23 Jan 2016 06:08:46 GMT /hoge-36kp5mui93t3h41zet8saher-247/mykey1 boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:LzdfGlm3dvg6maYZtXXY6GERaSs= boto: DEBUG: Final headers: {'Content-Length': '6', 'Content-MD5': 'oAEheEtRsPa2epx5h7euZg==', 'Expect': '100-Continue', 'Date': 'Sat, 23 Jan 2016 06:08:46 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:LzdfGlm3dvg6maYZtXXY6GERaSs='} --------------------- >> end captured logging << ---------------------

akiradeveloper commented 8 years ago

ERROR: s3tests.functional.test_s3.test_bucket_recreate_not_overriding

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 4514, in test_bucket_recreate_not_overriding bucket2 = get_new_bucket(targets.main.default, bucket.name) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/s3tests/functional/init.py", line 393, in get_new_bucket bucket = connection.create_bucket(name, location=target.conf.api_name, headers=headers) File "/home/travis/build/akiradeveloper/akashic-storage/s3-tests/s3-tests-clone/virtualenv/local/lib/python2.7/site-packages/boto/s3/connection.py", line 617, in create_bucket response.status, response.reason, body) S3CreateError: S3CreateError: 409 Conflict

BucketAlreadyExists The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again. /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ kW0tDKFVSr7Zv3Zm

-------------------- >> begin captured logging << -------------------- boto: DEBUG: path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: auth_path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Data: boto: DEBUG: Headers: {} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: Token: None boto: DEBUG: StringToSign: PUT

Sun, 24 Jan 2016 16:42:07 GMT /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:34Wlgk+vO4daKsKWCyaXjNQT8Ys= boto: DEBUG: Final headers: {'Date': 'Sun, 24 Jan 2016 16:42:07 GMT', 'Content-Length': '0', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:34Wlgk+vO4daKsKWCyaXjNQT8Ys=', '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', '83cqkfZZcBwCy6da'), ('content-type', 'text/plain;charset=utf-8')] boto: DEBUG: path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey1 boto: DEBUG: auth_path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey1 boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey1 boto: DEBUG: Data: boto: DEBUG: Headers: {'Content-Length': '6', 'Content-MD5': u'oAEheEtRsPa2epx5h7euZg==', '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 oAEheEtRsPa2epx5h7euZg== application/octet-stream Sun, 24 Jan 2016 16:42:07 GMT /hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey1 boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:xjiBKxZEo+vGjL5Njnl7K1DEgmE= boto: DEBUG: Final headers: {'Content-Length': '6', 'Content-MD5': 'oAEheEtRsPa2epx5h7euZg==', 'Expect': '100-Continue', 'Date': 'Sun, 24 Jan 2016 16:42:07 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:xjiBKxZEo+vGjL5Njnl7K1DEgmE='} boto: DEBUG: Response headers: [('x-amz-version-id', 'null'), ('x-amz-request-id', '1Jizdu7ObHR7hVrC'), ('content-type', 'text/plain;charset=utf-8'), ('etag', '"a00121784b51b0f6b67a9c7987b7ae66"'), ('content-length', '0')] boto: DEBUG: path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey2 boto: DEBUG: auth_path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey2 boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey2 boto: DEBUG: Data: boto: DEBUG: Headers: {'Content-Length': '6', 'Content-MD5': u'x1A0hqsfEdl9ieaGMcJIDA==', '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 x1A0hqsfEdl9ieaGMcJIDA== application/octet-stream Sun, 24 Jan 2016 16:42:07 GMT /hoge-31vc4xw9yanbvc4liz7qbtnr-247/mykey2 boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:usE+3dQsHDYhgO6cuCgyCPkvWls= boto: DEBUG: Final headers: {'Content-Length': '6', 'Content-MD5': 'x1A0hqsfEdl9ieaGMcJIDA==', 'Expect': '100-Continue', 'Date': 'Sun, 24 Jan 2016 16:42:07 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:usE+3dQsHDYhgO6cuCgyCPkvWls='} boto: DEBUG: Response headers: [('x-amz-version-id', 'null'), ('x-amz-request-id', 'qApSb1QZivpIqG4U'), ('content-type', 'text/plain;charset=utf-8'), ('etag', '"c7503486ab1f11d97d89e68631c2480c"'), ('content-length', '0')] boto: DEBUG: path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: auth_path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Method: GET boto: DEBUG: Path: /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Data: boto: DEBUG: Headers: {} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: Token: None boto: DEBUG: StringToSign: GET

Sun, 24 Jan 2016 16:42:07 GMT /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:aaYqWMbVgHngMN7NWo3GU/MOKVI= boto: DEBUG: Final headers: {'Date': 'Sun, 24 Jan 2016 16:42:07 GMT', 'Content-Length': '0', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:aaYqWMbVgHngMN7NWo3GU/MOKVI=', 'User-Agent': 'Boto/2.39.0 Python/2.7.3 Linux/3.13.0-63-generic'} boto: DEBUG: Response headers: [('content-length', '1083'), ('x-amz-request-id', 'ulQRq4Mmwn3LJbEY'), ('content-type', 'application/xml;charset=utf-8')] boto: DEBUG:

hoge-31vc4xw9yanbvc4liz7qbtnr-247
      <IsTruncated>false</IsTruncated>
      <Contents>
        <Key>mykey1</Key>
        <LastModified>2016-01-24T16:42:07.000Z</LastModified>
        <ETag>a00121784b51b0f6b67a9c7987b7ae66</ETag>
        <Size>6</Size>
        <StorageClass>STANDARD</StorageClass>
        <Owner>
          <ID>0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef</ID>
          <DisplayName>s3tests-main</DisplayName>
        </Owner>
      </Contents><Contents>
        <Key>mykey2</Key>
        <LastModified>2016-01-24T16:42:07.000Z</LastModified>
        <ETag>c7503486ab1f11d97d89e68631c2480c</ETag>
        <Size>6</Size>
        <StorageClass>STANDARD</StorageClass>
        <Owner>
          <ID>0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef</ID>
          <DisplayName>s3tests-main</DisplayName>
        </Owner>
      </Contents>
    </ListBucketResult>

boto: DEBUG: path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: auth_path=/hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Method: PUT boto: DEBUG: Path: /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Data: boto: DEBUG: Headers: {} boto: DEBUG: Host: 127.0.0.1:10946 boto: DEBUG: Port: 10946 boto: DEBUG: Params: {} boto: DEBUG: Token: None boto: DEBUG: StringToSign: PUT

Sun, 24 Jan 2016 16:42:07 GMT /hoge-31vc4xw9yanbvc4liz7qbtnr-247/ boto: DEBUG: Signature: AWS ABCDEFGHIJKLMNOPQRST:34Wlgk+vO4daKsKWCyaXjNQT8Ys= boto: DEBUG: Final headers: {'Date': 'Sun, 24 Jan 2016 16:42:07 GMT', 'Content-Length': '0', 'Authorization': u'AWS ABCDEFGHIJKLMNOPQRST:34Wlgk+vO4daKsKWCyaXjNQT8Ys=', 'User-Agent': 'Boto/2.39.0 Python/2.7.3 Linux/3.13.0-63-generic'} boto: DEBUG: Response headers: [('a', 'b'), ('content-length', '342'), ('content-type', 'text/plain;charset=utf-8')] --------------------- >> end captured logging << ---------------------