Bug #55181
openCeph-s3tests :Test object/bucket testcases failing with "Access Denied" and "Remote end closed connection" errors
0%
Description
Some of ceph testcases are failing with "Access Denied" and "Remote end closed connection" errors.
Below is the list of failed/error testcase :
s3tests.functional.test_headers:test_object_create_bad_contentlength_mismatch_above
s3tests_boto3.functional.test_headers:test_object_create_date_and_amz_date
s3tests_boto3.functional.test_headers:test_object_create_amz_date_and_no_date
Error snippet :
1) s3tests.functional.test_headers:test_object_create_bad_contentlength_mismatch_above
======================================================================
ERROR: s3tests.functional.test_headers.test_object_create_bad_contentlength_mismatch_above
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/root/ceph/s3-tests/s3tests/functional/test_headers.py", line 213, in test_object_create_bad_contentlength_mismatch_above
e = assert_raises(boto.exception.S3ResponseError, key.set_contents_from_string, content)
File "/root/ceph/s3-tests/s3tests/functional/utils.py", line 13, in assert_raises
callableObj(*args, **kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/key.py", line 1442, in set_contents_from_string
encrypt_key=encrypt_key)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/key.py", line 1309, in set_contents_from_file
chunked_transfer=chunked_transfer, size=size)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/key.py", line 762, in send_file
chunked_transfer=chunked_transfer, size=size)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/key.py", line 963, in _send_file_internal
query_args=query_args
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/connection.py", line 671, in make_request
retry_handler=retry_handler
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/connection.py", line 1071, in make_request
retry_handler=retry_handler)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/connection.py", line 1030, in _mexe
raise ex
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/connection.py", line 940, in _mexe
request.body, request.headers)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/boto/s3/key.py", line 891, in sender
response = http_conn.getresponse()
File "/usr/lib64/python3.6/http/client.py", line 1346, in getresponse
response.begin()
File "/usr/lib64/python3.6/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python3.6/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
2) s3tests_boto3.functional.test_headers:test_object_create_date_and_amz_date
======================================================================
ERROR: s3tests_boto3.functional.test_headers.test_object_create_date_and_amz_date
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_headers.py", line 353, in test_object_create_date_and_amz_date
bucket_name, key_name = _add_header_create_object({'Date': date, 'X-Amz-Date': date})
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_headers.py", line 30, in _add_header_create_object
client.put_object(Bucket=bucket_name, Key=key_name)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 395, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 725, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Unknown
3) s3tests_boto3.functional.test_headers:test_object_create_amz_date_and_no_date
======================================================================
ERROR: s3tests_boto3.functional.test_headers.test_object_create_amz_date_and_no_date
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_headers.py", line 366, in test_object_create_amz_date_and_no_date
bucket_name, key_name = _add_header_create_object({'Date': '', 'X-Amz-Date': date})
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_headers.py", line 30, in _add_header_create_object
client.put_object(Bucket=bucket_name, Key=key_name)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 395, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 725, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Unknown
Updated by Casey Bodley about 2 years ago
these are currently expected to fail. see comments, ie
# TODO: remove 'fails_on_rgw' and once we have learned how to pass both the 'Date' and 'X-Amz-Date' header during signing and not 'X-Amz-Date' before
@attr('fails_on_rgw')