Project

General

Profile

Actions

Bug #53181

closed

rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist

Added by joke lee over 2 years ago. Updated 5 months ago.

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

100%

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

Description

  1. coding: utf-8
    from boto3.session import Session
    import boto3
    import logging
    boto3.set_stream_logger('', logging.DEBUG)
    access_key = ''
    secret_key = ''
    host = "s3.amazonaws.com"
    url = "http://s3.amazonaws.com"
    session = Session(access_key, secret_key)
    config = boto3.session.Config(connect_timeout=30000, read_timeout=30000, retries={'max_attempts': 0}, signature_version="s3")
    s3_client = session.client('s3', endpoint_url=url, config=config)
    dst_bucket = "destbucket"
    dst_obj = 'destobject'
    src_bucket = "srcbucketnotexist"
    src_obj = 'srcobjectnotexist'
    mpu = s3_client.create_multipart_upload(Bucket=dst_bucket, Key=dst_obj)
    res = s3_client.upload_part_copy(Bucket=dst_bucket, CopySource=src_bucket+"/"+src_obj,
    Key=dst_obj,
    PartNumber=1, UploadId=mpu["UploadId"])

when src bucket not exist, it should return -ERR_NO_SUCH_BUCKET rather than -ENOENT
when src object not exist, it should return -ENOENT rather than -ACCESS


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #53657: octopus: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist RejectedActions
Copied to Ceph - Backport #53658: pacific: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist ResolvedKonstantin ShalyginActions
Actions #2

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Fix Under Review
  • Tags set to multipart copy
  • Backport set to octopus pacific
  • Pull request ID set to 43817
Actions #3

Updated by Casey Bodley over 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53657: octopus: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist added
Actions #5

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53658: pacific: rgw: wrong UploadPartCopy error code when src object not exist and src bucket not exist added
Actions #6

Updated by Cory Snyder over 2 years ago

I'm not sure that this backport is relevant since RGWPutObj::init_processing was never backported from https://tracker.ceph.com/issues/42825. Can you confirm how we should handle backports for this one, Casey?

Actions #7

Updated by Backport Bot over 1 year ago

  • Tags changed from multipart copy to multipart copy backport_processed
Actions #8

Updated by Konstantin Shalygin 5 months ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF