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:
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