Bug 2312198

Summary: [RFE][s3-cloud-restore]: Improve handling of first download of object with read_through=true
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, ceph-eng-bugs, cephqe-warriors, jthottan, skoduri, tserlin
Target Milestone: ---Keywords: FutureFeature
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.1.1-71.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:10:47 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-13 14:06:13 UTC
Description of problem:

When the read_through option is set to true and an attempt is made to access an object, the first download fails with a 403 (InvalidObjectState) error, as shown below:


1st download 
---------------
[root@ceph-pri-vim-80-391b97-node4 ~]# s3cmd get  s3://pri-1/obj1 obj1_get_read_through
download: 's3://pri-1/obj1' -> 'obj1_get_read_through'  [1 of 1]
ERROR: Download of 'obj1_get_read_through' failed (Reason: 403 (InvalidObjectState): restore is not completed yet)
ERROR: S3 error: 403 (InvalidObjectState): restore is not completed yet
[root@ceph-pri-vim-80-391b97-node4 ~]# 

2nd download succeeds
----------------------
[root@ceph-pri-vim-80-391b97-node4 ~]# s3cmd get  s3://pri-1/obj1 obj1_get_read_through
download: 's3://pri-1/obj1' -> 'obj1_get_read_through'  [1 of 1]
 13 of 13   100% in    0s   306.00 B/s  done
[root@ceph-pri-vim-80-391b97-node4 ~]# 


Enhance the behavior so that the system queues or retries the object retrieval until the restore process is completed, avoiding the 403 error for users on their first attempt.



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

ceph version 19.1.1-37.el9cp 

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 9 errata-xmlrpc 2024-11-25 09:10:47 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