Bug 2309740 - [s3-object-restore]: Object download fails after restoration via 'aws s3api restore-object', when read_through option was disabled during upload
Summary: [s3-object-restore]: Object download fails after restoration via 'aws s3api r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0
Assignee: Jiffin
QA Contact: Vidushi Mishra
URL:
Whiteboard:
Depends On:
Blocks: 2317218
TreeView+ depends on / blocked
 
Reported: 2024-09-04 15:28 UTC by Vidushi Mishra
Modified: 2024-11-25 09:08 UTC (History)
6 users (show)

Fixed In Version: ceph-19.1.1-7.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-25 09:08:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9693 0 None None None 2024-09-04 15:29:24 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:08:47 UTC

Description Vidushi Mishra 2024-09-04 15:28:57 UTC
Description of problem:

Object download fails after restoration via "aws s3api restore-object", when read_through option was disabled during upload

Despite the successful completion of the restore operation, attempts to download the restored object fail, resulting in errors. 

This issue impacts the accessibility of archived/cloud-tiered objects that were uploaded without the read_through option enabled or was not available (in Upgraded Environments.)


Version-Release number of selected component (if applicable):
ceph version 19.1.0-67.el9cp

How reproducible:
Always

Steps to Reproduce:

1. With read_through option = false or not available, transition an object to the cloud.
2. Try to restore the object via the was s3api restore-object cli.

aws --endpoint http://ceph-pri-vim-ms-8-0-glw3l4-node4:80 s3api restore-object --bucket testaws1   --key  file-aws-20  --restore-request   Days=10

3. Once the object is restored, try to download the object.

# s3cmd get  s3://testaws1/file-aws-20 get_file-20
Wed Sep  4 11:25:42 EDT 2024
download: 's3://testaws1/file-aws-20' -> 'get_file-20'  [1 of 1]
ERROR: Download of 'get_file-20' failed (Reason: 403 (InvalidObjectState): Read through is not enabled for this config)

Object download fails with error "ERROR: Download of './file-2' failed (Reason: 403 (InvalidObjectState): Read through is not enabled for this config)"

Actual results:

Object download fails with error "ERROR: Download of './file-2' failed (Reason: 403 (InvalidObjectState): Read through is not enabled for this config)"

After enabling the "allow_read_through" in the zonegroup as well the object download fails. 

Expected results:

1. Object download should fail if restored via the was s3api restore-object and should not be dependent on the allow_read_through" parameter

Additional info:

Comment 9 errata-xmlrpc 2024-11-25 09:08:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:10216


Note You need to log in before you can comment on or make changes to this bug.