Bug 2310183

Summary: [s3-object-restore]: Storage Class mismatch for a temporarily restored object obtained via bucket list and head-object API
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Shreyansh Sancheti <ssanchet>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, ceph-eng-bugs, cephqe-warriors, jthottan, mkasturi, skoduri, ssanchet, tserlin
Target Milestone: ---Flags: mkasturi: needinfo+
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:08:52 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-05 11:03:01 UTC
Description of problem:

When restoring an object using the "restore days" option from a cloud tier, the temporary restored object appears with storage class STANDARD in the bucket list and 'aws s3api list-objects output'. 

However, the head-object API reports the storage class as CLOUDTIER as expected. 

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

How reproducible:
Always

Steps to Reproduce:

1. Restore an object from a cloud tier using the "restore days" option.
2. Check the object's storage class via radosgw-admin bucket list and 'aws s3api list-objects.  --> It shows 'STANDARD' for the time the object is restored.
3. Check the storage class using the head-object API. --> It shows CLOUDTIER as is expected behavior.

Actual results:

storage class of the temporary restored object shows 'STANDARD' via the radosgw-admin bucket list and 'aws list-object s3pi'

Expected results:

storage class of the temporary restored object should be 'CLOUDTIER' with 
- head-object
- radosgw-admin bucket list --bucket <bucket_name> and
- aws s3api list-objects --bucket <bucket_name>

Additional info:

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