+++ This bug was initially created as a clone of Bug #2248637 +++ Description of problem: ceph_getxattr() call always return -61 (ENODATA) in PeerReplayer::synchronize, which results in 'prev' snapshot always coming in as boost::none in PeerReplayer::do_synchronize function. Even if the ceph_fsetxattr seems successfully setting (returns 0) the 'ceph.mirror.dirty_snap_id' in the first pass, the ceph_getxattr() call always returns ENODATA in the subsequent passes (and in further snapshot creations) for the same dir_root. It never retrieves the xattr value from the dir_root. This prevents incremental snapshot synchronisation, as the `prev` snapshot is always coming in as none. Version-Release number of selected component (if applicable): 7.0 How reproducible: Always Steps to Reproduce: 1. Create a snapshot. 2. Make some changes to the dirs/files. 3. Create a second snapshot. Then it won't sync incrementally, as 'prev' is always none. Actual results: 'prev' snapshot is none, even if it exist. Expected results: 'prev' snapshot should have it's address if it exist. Additional info: As the prev snapshot is always none, this issue would have a performance impact on snapshot synchronisation.
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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix 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-2024:3925