Project

General

Profile

Bug #42344

rgw: get wrong storage class when multipart upload uncomplete for RGWListBucketMultiparts

Added by joke lee 10 months ago. Updated 10 months ago.

Status:
Fix Under Review
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:

Description

```
#!/usr/bin/python
from boto3.session import Session
import boto3
import botocore
botocore.session.Session().set_debug_logger()
access_key = "yly"
secret_key = "yly"
url = "http://127.0.0.1:7480"
session = Session(access_key, secret_key)
config = boto3.session.Config(connect_timeout=30000, read_timeout=30000, retries={'max_attempts': 0})
s3_client = session.client('s3', endpoint_url=url, config=config)
src_bucket = "test1"
src_obj = "100222M22"

mpu = s3_client.create_multipart_upload(Bucket=src_bucket, Key=src_obj, StorageClass='STANDARD_IA')

response = s3_client.list_multipart_uploads(
Bucket=src_bucket,
Delimiter='',
MaxUploads=10,
Prefix=''
)
```

History

#3 Updated by Casey Bodley 10 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 30967

Also available in: Atom PDF