Bug 2312198 - [RFE][s3-cloud-restore]: Improve handling of first download of object with read_through=true
Summary: [RFE][s3-cloud-restore]: Improve handling of first download of object with re...
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
medium
Target Milestone: ---
: 8.0
Assignee: Jiffin
QA Contact: Vidushi Mishra
URL:
Whiteboard:
Depends On:
Blocks: 2317218
TreeView+ depends on / blocked
 
Reported: 2024-09-13 14:06 UTC by Vidushi Mishra
Modified: 2024-11-25 09:10 UTC (History)
6 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-9812 0 None None None 2024-09-13 14:07:21 UTC
Red Hat Product Errata RHBA-2024:10216 0 None None None 2024-11-25 09:10:52 UTC

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


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