Project

General

Profile

Bug #41212

Failure in test_encryption_sse_c_post_object_authenticated_request and test_sse_kms_post_object_authenticated_request

Added by Adam Emerson over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

======================================================================
FAIL: s3tests_boto3.functional.test_s3.test_encryption_sse_c_post_object_authenticated_request
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/aemerson/s3-tests/virtualenv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/aemerson/s3-tests/s3tests_boto3/functional/test_s3.py", line 9714, in test_encryption_sse_c_post_object_authenticated_request
eq(r.status_code, 204)
AssertionError: 400 != 204
-------------------- >> begin captured logging << --------------------
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f9629f12e60>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f9629ee9de8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x7f9629d52140>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f9629ee9c08>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.client: DEBUG: Using S3 path style addressing.
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <function validate_bucket_name at 0x7f9629f18488>
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7f962919f190>>
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <function generate_idempotent_uuid at 0x7f9629f18140>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <function add_expect_header at 0x7f9629f18758>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7f962919f190>>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <function inject_api_version_header_if_needed at 0x7f9629f197d0>
botocore.endpoint: DEBUG: Making request for OperationModel(name=CreateBucket) with params: {'body': '', 'url': u'http://localhost:8000/yournamehere-01vmbs8k3zqze77e-389', 'headers': {'User-Agent': 'Boto3/1.9.205 Python/2.7.15 Linux/5.2.7-200.fc30.x86_64 Botocore/1.12.205'}, 'context': {'auth_type': None, 'client_region': u'us-east-1', 'signing': {'bucket': 'yournamehere-01vmbs8k3zqze77e-389'}, 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x7f9628f7a6d0>}, 'query_string': {}, 'url_path': u'/yournamehere-01vmbs8k3zqze77e-389', 'method': u'PUT'}
botocore.hooks: DEBUG: Event request-created.s3.CreateBucket: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f9629398110>>
botocore.hooks: DEBUG: Event choose-signer.s3.CreateBucket: calling handler <function set_operation_specific_signer at 0x7f9629f18050>
botocore.auth: DEBUG: Calculating signature using v4 auth.
botocore.auth: DEBUG: CanonicalRequest:
PUT
/yournamehere-01vmbs8k3zqze77e-389

host:localhost:8000
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20190812T190632Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
botocore.auth: DEBUG: StringToSign:
AWS4-HMAC-SHA256
20190812T190632Z
20190812/us-east-1/s3/aws4_request
e11798395c6be774e0563340978075764aa33f0fb347c085d45ef4dc5ee1cc52
botocore.auth: DEBUG: Signature:
88a827a8d1761d0d6e91b3f1c6d2e0bfec37f50e4c03f2641a631b279fbd1b18
botocore.endpoint: DEBUG: Sending http request: <AWSPreparedRequest stream_output=False, method=PUT, url=http://localhost:8000/yournamehere-01vmbs8k3zqze77e-389, headers={'X-Amz-Content-SHA256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Content-Length': '0', 'Authorization': 'AWS4-HMAC-SHA256 Credential=0555b35654ad1656d804/20190812/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=88a827a8d1761d0d6e91b3f1c6d2e0bfec37f50e4c03f2641a631b279fbd1b18', 'X-Amz-Date': '20190812T190632Z', 'User-Agent': 'Boto3/1.9.205 Python/2.7.15 Linux/5.2.7-200.fc30.x86_64 Botocore/1.12.205'}>
urllib3.util.retry: DEBUG: Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): localhost:8000
urllib3.connectionpool: DEBUG: http://localhost:8000 "PUT /yournamehere-01vmbs8k3zqze77e-389 HTTP/1.1" 200 0
botocore.parsers: DEBUG: Response headers: {'Date': 'Mon, 12 Aug 2019 19:06:32 GMT', 'Content-Length': '0', 'x-amz-request-id': 'tx000000000000000000d94-005d51b8b8-102f-default', 'Connection': 'Keep-Alive'}
botocore.parsers: DEBUG: Response body:

botocore.hooks: DEBUG: Event needs-retry.s3.CreateBucket: calling handler <botocore.retryhandler.RetryHandler object at 0x7f962919f1d0>
botocore.retryhandler: DEBUG: No retry needed.
botocore.hooks: DEBUG: Event needs-retry.s3.CreateBucket: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7f962919f190>>
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f9629f12e60>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f9629ee9de8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x7f9629d52140>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f9629ee9c08>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.client: DEBUG: Using S3 path style addressing.
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): localhost:8000
urllib3.connectionpool: DEBUG: http://localhost:8000 "POST /yournamehere-01vmbs8k3zqze77e-389 HTTP/1.1" 400 245
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: s3tests_boto3.functional.test_s3.test_sse_kms_post_object_authenticated_request
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/aemerson/s3-tests/virtualenv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/aemerson/s3-tests/s3tests_boto3/functional/test_s3.py", line 10025, in test_sse_kms_post_object_authenticated_request
eq(r.status_code, 204)
AssertionError: 400 != 204
-------------------- >> begin captured logging << --------------------
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f9629f12e60>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f9629ee9de8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x7f9629d52140>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f9629ee9c08>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.client: DEBUG: Using S3 path style addressing.
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <function validate_bucket_name at 0x7f9629f18488>
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x7f96290282d0>>
botocore.hooks: DEBUG: Event before-parameter-build.s3.CreateBucket: calling handler <function generate_idempotent_uuid at 0x7f9629f18140>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <function add_expect_header at 0x7f9629f18758>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x7f96290282d0>>
botocore.hooks: DEBUG: Event before-call.s3.CreateBucket: calling handler <function inject_api_version_header_if_needed at 0x7f9629f197d0>
botocore.endpoint: DEBUG: Making request for OperationModel(name=CreateBucket) with params: {'body': '', 'url': u'http://localhost:8000/yournamehere-01vmbs8k3zqze77e-401', 'headers': {'User-Agent': 'Boto3/1.9.205 Python/2.7.15 Linux/5.2.7-200.fc30.x86_64 Botocore/1.12.205'}, 'context': {'auth_type': None, 'client_region': u'us-east-1', 'signing': {'bucket': 'yournamehere-01vmbs8k3zqze77e-401'}, 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x7f962915ab10>}, 'query_string': {}, 'url_path': u'/yournamehere-01vmbs8k3zqze77e-401', 'method': u'PUT'}
botocore.hooks: DEBUG: Event request-created.s3.CreateBucket: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f9629008210>>
botocore.hooks: DEBUG: Event choose-signer.s3.CreateBucket: calling handler <function set_operation_specific_signer at 0x7f9629f18050>
botocore.auth: DEBUG: Calculating signature using v4 auth.
botocore.auth: DEBUG: CanonicalRequest:
PUT
/yournamehere-01vmbs8k3zqze77e-401

host:localhost:8000
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20190812T190633Z

host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
botocore.auth: DEBUG: StringToSign:
AWS4-HMAC-SHA256
20190812T190633Z
20190812/us-east-1/s3/aws4_request
067218017b8633dc2fefe2dff9c209c1160044b8cf74cf797598796ba31a7290
botocore.auth: DEBUG: Signature:
440fea2720090f5f15cc4f590663d51de6e83986895b2523a04a650abe5e4777
botocore.endpoint: DEBUG: Sending http request: <AWSPreparedRequest stream_output=False, method=PUT, url=http://localhost:8000/yournamehere-01vmbs8k3zqze77e-401, headers={'X-Amz-Content-SHA256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Content-Length': '0', 'Authorization': 'AWS4-HMAC-SHA256 Credential=0555b35654ad1656d804/20190812/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=440fea2720090f5f15cc4f590663d51de6e83986895b2523a04a650abe5e4777', 'X-Amz-Date': '20190812T190633Z', 'User-Agent': 'Boto3/1.9.205 Python/2.7.15 Linux/5.2.7-200.fc30.x86_64 Botocore/1.12.205'}>
urllib3.util.retry: DEBUG: Converted retries value: False -> Retry(total=False, connect=None, read=None, redirect=0, status=None)
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): localhost:8000
urllib3.connectionpool: DEBUG: http://localhost:8000 "PUT /yournamehere-01vmbs8k3zqze77e-401 HTTP/1.1" 200 0
botocore.parsers: DEBUG: Response headers: {'Date': 'Mon, 12 Aug 2019 19:06:33 GMT', 'Content-Length': '0', 'x-amz-request-id': 'tx000000000000000000dac-005d51b8b9-102f-default', 'Connection': 'Keep-Alive'}
botocore.parsers: DEBUG: Response body:

botocore.hooks: DEBUG: Event needs-retry.s3.CreateBucket: calling handler <botocore.retryhandler.RetryHandler object at 0x7f9629028c10>
botocore.retryhandler: DEBUG: No retry needed.
botocore.hooks: DEBUG: Event needs-retry.s3.CreateBucket: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x7f96290282d0>>
botocore.hooks: DEBUG: Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f9629f12e60>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x7f9629ee9de8>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function _handler at 0x7f9629d52140>
botocore.hooks: DEBUG: Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x7f9629ee9c08>
botocore.args: DEBUG: The s3 config key is not a dictionary type, ignoring its value of: None
botocore.endpoint: DEBUG: Setting s3 timeout as (60, 60)
botocore.client: DEBUG: Registering retry handlers for service: s3
botocore.client: DEBUG: Using S3 path style addressing.
urllib3.connectionpool: DEBUG: Starting new HTTP connection (1): localhost:8000
urllib3.connectionpool: DEBUG: http://localhost:8000 "POST /yournamehere-01vmbs8k3zqze77e-401 HTTP/1.1" 400 245
--------------------- >> end captured logging << ---------------------


Related issues

Related to rgw - Bug #43661: failure in test_sse_kms_post_object_authenticated_request Resolved

History

#1 Updated by Casey Bodley over 3 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Casey Bodley
  • Pull request ID set to 29778

#2 Updated by Casey Bodley over 3 years ago

  • Status changed from Fix Under Review to Resolved

#3 Updated by Kefu Chai about 3 years ago

  • Related to Bug #43661: failure in test_sse_kms_post_object_authenticated_request added

Also available in: Atom PDF