Bug 2224239

Summary: client: trigger to flush the buffer when making snapshot
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Xiubo Li <xiubli>
Component: CephFSAssignee: Xiubo Li <xiubli>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.3CC: akraj, ceph-eng-bugs, cephqe-warriors, tserlin, vshankar
Target Milestone: ---   
Target Release: 6.1z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-126.el9cp Doc Type: Bug Fix
Doc Text:
.Snapshot data is no longer lost after setting `writing` flags Previously, in clients, if the `writing` flag was set to ‘1’ when the `Fb` caps were used, it would be skipped in case of any dirty caps and reuse the existing capsnap, which is incorrect. Due to this, two consecutive snapshots would be overwritten and lose data. With this fix, the `writing` flags are correctly set and no snapshot data is lost.
Story Points: ---
Clone Of:
: 2224241 (view as bug list) Environment:
Last Closed: 2023-10-12 16:34:33 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: 2235257    

Description Xiubo Li 2023-07-20 08:56:16 UTC
When making snapshots if the Fb is being used because of the buffer is not flushed yet. Then it will defer flushing the snapcap back to MDS.

And then if the file is overwrote and then a new snapshot is made then the first snapcap will be overwrote too.

Fixes: https://tracker.ceph.com/issues/59343

Comment 1 RHEL Program Management 2023-07-20 08:56:34 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 8 errata-xmlrpc 2023-10-12 16:34:33 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 6.1 security, enhancement, 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-2023:5693