Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2413062

Summary: [RGW][Dedup]: Don't increment Corrupted_ETAG counters for DeleteMarkers
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vidushi Mishra <vimishra>
Component: RGWAssignee: Gabriel BenHanokh <gbenhano>
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact: Rivka Pollack <rpollack>
Priority: medium    
Version: 9.0CC: ceph-eng-bugs, cephqe-warriors, gbenhano, rpollack
Target Milestone: ---   
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-20.1.0-82 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-29 07:03:26 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:

Description Vidushi Mishra 2025-11-06 09:16:35 UTC
Description of problem:



As part of the dedup feature testing on versioned buckets, we found that if we delete the latest version of the object of the bucket,  and do a dedup estimate, 
The dedup stats show corrupted ETAG, which may be due to the versioned buckets having 0-sized objects. 


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

latest 9.0 

How reproducible:

always

Steps to Reproduce:
1. create a rgw user 

radosgw-admin user create --uid user1 --access-key 123 --secret 123 --display-name user1

2. set aws profile 

# pip install awscli
# aws --profile user1  configure set endpoint_url http://ceph-pri-vim-ms-90-t9my2o-node5:80
#  aws --profile user1  configure

3. create a bucket via awscli

# aws --profile user1  s3 mb s3://version1
# aws  --profile user1  s3api put-bucket-versioning --bucket version1 --versioning-configuration Status=Enabled

4. write 1M object 

#truncate -s 1M object-1M
# aws  --profile user1  s3 cp object-1M s3://version1/object-version-1m
# aws  --profile user1  s3 cp object-1M s3://version1/object-version-1m

5. list the object version via awscli
# aws  --profile user1  s3api list-object-versions --bucket version1 --key object-version-1m
# rados ls -p primary.rgw.buckets.data

6. Delete the object (latest version) using lifecycle 

- set the ceph config rgw_lc_debug_interval 30 in the ceph.conf file or through the ceph config set as below 
 # ceph config set client.rgw_service_name rgw_lc_debug_interval 30
# restart the rgws ( via systemctl restart)

# aws --profile user1 s3api put-bucket-lifecycle-configuration  --bucket version1 --lifecycle-configuration file://lifecycle.json
# cat lifecycle.json
{
  "Rules": [
    {
      "ID": "DeleteObjectsAfter1Day",
      "Status": "Enabled",
      "Filter": {
        "Prefix": ""
      },
      "Expiration": {
        "Days": 1
      }
    }
  ]
}


7. Do the dedup estimate and dedup stats


Actual results:

the dedup stats shows corrupted ETAG which can be misleading

Expected results:

the dedup stats should not show corrupted ETAG

Additional info:

Comment 9 errata-xmlrpc 2026-01-29 07:03:26 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 (Moderate: Red Hat Ceph Storage 9.0 Security and Enhancement update), 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/RHSA-2026:1536