Project

General

Profile

Actions

Bug #72665

open
JG

s3api output is non descriptive when encountering a usage error

Bug #72665: s3api output is non descriptive when encountering a usage error

Added by James Godfrey over 1 year ago. Updated 27 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 Actions #1

  • 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 Actions #2

PR:https://github.com/ceph/ceph/pull/73571

Actions

Also available in: PDF Atom