Bug #72665
opens3api output is non descriptive when encountering a usage error
0%
Description
It seems reef and higher uses the “argument of type ‘NoneType’ is not iterable” whenever there is an s3 api call error rather than be descriptive about what the error is. While these inconsistencies with the AWS S3 specs don’t cause harm, it does make it difficult to identify what the root cause of an issue is when developing services that use these calls.
Here's some side by side examples:
--This is a test of trying to delete a bucket with objects still inside it:
AWS:
aws s3api delete-bucket --bucket sf-source-e1-test --profile aws
An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty
ceph reef+:
aws s3api delete-bucket --bucket steve --profile croit --endpoint-url http://172.19.110.81:80
argument of type 'NoneType' is not iterable
--This is a test of trying to delete a bucket that doesn’t exist:
AWS:
aws s3api delete-bucket --bucket sf-veeam-test-mickey-mouse --profile aws
An error occurred (NoSuchBucket) when calling the DeleteBucket operation: The specified bucket does not exist
ceph reef+:
aws s3api delete-bucket --bucket mickey-mouse --profile croit --endpoint-url http://172.19.110.81:80
argument of type 'NoneType' is not iterable
CB Updated by Casey Bodley 7 months ago
- Tracker changed from Enhancement to Bug
- Project changed from Ceph to rgw
- Regression set to No
- Severity set to 3 - minor
ZL Updated by zhipeng li 27 days ago
PR:https://github.com/ceph/ceph/pull/73571