Bug 2309662

Summary: [RFE][s3-cloud-restore]: Allow restoration of cloud transitioned objects via Read-Through even if setting was not enabled during transition
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Soumya Koduri <skoduri>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, ceph-eng-bugs, cephqe-warriors, mbenjamin, rpollack, skoduri, tserlin
Target Milestone: ---Keywords: FutureFeature
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.1.1-5.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:08:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2317218    

Description Vidushi Mishra 2024-09-04 08:43:08 UTC
Description of problem:

When attempting to restore or download objects that have been cloud transitioned, the system throws a "403 (InvalidObjectState): Read through is not enabled for this config" error. 

This occurs because the "read-through" option was not enabled during the object's transition. 

This enhancement request aims to allow the restoration of such objects via the read-through mechanism after the "read-through" option has been enabled, even if it was not originally configured during the object transition.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

1. Transition an object to a cloud storage without enabling the "read-through" option.

2. Attempt to download or access the object via a read request.
Observe the error: ERROR: S3 error: 403 (InvalidObjectState): Read through is not enabled for this config.

(venv) [root@ceph-pri-tfa-vim-toraoc-node4 rgw]# date; s3cmd get s3://testcloud-1/file-3 file-3-aws-testcloud-1
Wed Sep  4 04:24:04 EDT 2024
download: 's3://testcloud-1/file-3' -> 'file-3-aws-testcloud-1'  [1 of 1]
ERROR: Download of 'file-3-aws-testcloud-1' failed (Reason: 403 (InvalidObjectState): Read through is not enabled for this config)
ERROR: S3 error: 403 (InvalidObjectState): Read through is not enabled for this config
 
3. Enable the "read-through" option in the zonegroup configuration.

4. Attempt to download or access the previously cloud-transitioned again.

Actual results:

The error persists, preventing the restoration of the object via read-through.
Expected results:


Impact: 

- This enhancement will provide backward compatibility for cloud-transitioned objects in older versions or before the available read-through option.

- The change aligns with the expectation that enabling read-through should apply to all objects, not just those transitioned after the setting was enabled.

Comment 8 errata-xmlrpc 2024-11-25 09:08:35 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