Project

General

Profile

Actions

Bug #55193

open

Ceph-s3tests failing in parameter validations

Added by Dharmendra Jyani about 2 years ago. Updated about 2 years ago.

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

0%

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

Description

Some of ceph testcases are failing in parameter validations .

Below is the list of failed/error testcase :

s3tests_boto3.functional.test_s3:test_bucket_create_naming_bad_short_empty
s3tests_boto3.functional.test_s3:test_bucket_create_naming_bad_long
s3tests_boto3.functional.test_s3:test_bucket_create_naming_bad_punctuation
s3tests_boto3.functional.test_headers:test_object_create_bad_contentlength_mismatch_above

Error snippet :

1) s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_short_empty:

s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_short_empty ... ERROR======================================================================
ERROR: s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_short_empty
----------------------------------------------------------------------
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_s3.py", line 4156, in test_bucket_create_naming_bad_short_empty
status, error_code = check_invalid_bucketname(invalid_bucketname)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_s3.py", line 4144, in check_invalid_bucketname
e = assert_raises(ClientError, client.create_bucket, Bucket=invalid_name)
File "/root/ceph/s3-tests/s3tests_boto3/functional/utils.py", line 13, in assert_raises
callableObj(*args, **kwargs)
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 696, in _make_api_call
api_params, operation_model, context=request_context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 744, in _convert_to_request_dict
api_params, operation_model, context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 776, in _emit_api_params
params=api_params, model=operation_model, context=context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 357, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(
*kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/handlers.py", line 243, in validate_bucket_name
raise ParamValidationError(report=error_msg)
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid bucket name "": Bucket name must match the regex "^[a-zA-Z0-9.\-
]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:(s3|s3-object-lambda):[a-z\-0-9]*:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-.]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

2) s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_long

======================================================================
ERROR: s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_long
----------------------------------------------------------------------
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_s3.py", line 4184, in test_bucket_create_naming_bad_long
status, error_code = check_invalid_bucketname(invalid_bucketname)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_s3.py", line 4144, in check_invalid_bucketname
e = assert_raises(ClientError, client.create_bucket, Bucket=invalid_name)
File "/root/ceph/s3-tests/s3tests_boto3/functional/utils.py", line 13, in assert_raises
callableObj(*args, **kwargs)
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 696, in _make_api_call
api_params, operation_model, context=request_context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 744, in _convert_to_request_dict
api_params, operation_model, context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 776, in _emit_api_params
params=api_params, model=operation_model, context=context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 357, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(
*kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/handlers.py", line 243, in validate_bucket_name
raise ParamValidationError(report=error_msg)
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid bucket name "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": Bucket name must match the regex "^[a-zA-Z0-9.\-
]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:(s3|s3-object-lambda):[a-z\-0-9]*:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-.]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

3) s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_punctuation

======================================================================
ERROR: s3tests_boto3.functional.test_s3.test_bucket_create_naming_bad_punctuation
----------------------------------------------------------------------
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_s3.py", line 4328, in test_bucket_create_naming_bad_punctuation
status, error_code = check_invalid_bucketname(invalid_bucketname)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_s3.py", line 4144, in check_invalid_bucketname
e = assert_raises(ClientError, client.create_bucket, Bucket=invalid_name)
File "/root/ceph/s3-tests/s3tests_boto3/functional/utils.py", line 13, in assert_raises
callableObj(*args, **kwargs)
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 696, in _make_api_call
api_params, operation_model, context=request_context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 744, in _convert_to_request_dict
api_params, operation_model, context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 776, in _emit_api_params
params=api_params, model=operation_model, context=context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 357, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(
*kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/handlers.py", line 243, in validate_bucket_name
raise ParamValidationError(report=error_msg)
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid bucket name "alpha!soup": Bucket name must match the regex "^[a-zA-Z0-9.\-
]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:(s3|s3-object-lambda):[a-z\-0-9]*:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-.]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

4) s3tests_boto3.functional.test_headers.test_object_create_bad_contentlength_mismatch_above

======================================================================
ERROR: s3tests_boto3.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_boto3/functional/test_headers.py", line 294, in test_object_create_bad_contentlength_mismatch_above
e = assert_raises(ClientError, client.put_object, Bucket=bucket_name, Key=key_name, Body=content)
File "/root/ceph/s3-tests/s3tests_boto3/functional/utils.py", line 13, in assert_raises
callableObj(*args, **kwargs)
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 712, in _make_api_call
operation_model, request_dict, request_context)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/client.py", line 731, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/endpoint.py", line 107, in make_request
return self._send_request(request_dict, operation_model)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/endpoint.py", line 180, in _send_request
request = self.create_request(request_dict, operation_model)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/endpoint.py", line 121, in create_request
operation_name=operation_model.name)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 357, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(
*kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/signers.py", line 93, in handler
return self.sign(operation_name, request)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/signers.py", line 140, in sign
operation_name=operation_name
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 357, in emit
return self._emitter.emit(aliased_event_name, *kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/root/ceph/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(
*kwargs)
File "/root/ceph/s3-tests/s3tests_boto3/functional/test_headers.py", line 291, in <lambda>
add_headers = (lambda **kwargs: kwargs['params']['headers'].update(headers))
KeyError: 'params'

Actions #1

Updated by Casey Bodley about 2 years ago

  • Status changed from New to Triaged

yeah, these tests were ported from boto2, which didn't do this validation stuff. they're disabled for rgw testing (via fails_on_rgw)

we might want to move these test cases to a java or golang suite

Actions

Also available in: Atom PDF