Bug 2019909

Summary: [rbd-mirror] mirror image status - syncing_percent locked at 4 for an image of 50G+ during the sync
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.1CC: akraj, ceph-eng-bugs, idryomov, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.8-65.el8cp Doc Type: Bug Fix
Doc Text:
.`last_copied_object_number` value is properly updated for all images Previously, due to an implementation defect, `last_copied_object_number` value was properly updated only for fully allocated images. This caused the `last_copied_object_number` value to be incorrect for any sparse image and the image replication progress to be lost in case of abrupt rbd-mirror daemon restart. With this fix, `last_copied_object_number` value is properly updated for all images and upon rbd-mirror daemon restart, image replication resumes from where it had previously stopped.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-09 17:36:41 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: 2102272    

Description Vasishta 2021-11-03 15:41:54 UTC
Description of problem:
syncing_percent in description line got stuck at 4 in mirror image status thought the sync of 50G+ image in snapshot based mirroring

Version-Release number of selected component (if applicable):
16.2.6-15.el8cp

How reproducible:
Tried once, Will try further

Steps to Reproduce:
1. create an image and fill 50+g data
2. configure rbd mirroring with another cluster
3. enable snapshot based mirroring on the image
4. Observe the mirror image status

Actual results:
syncing_percent gets stuck at 4 throughout the sync (observed from 1 to 4)

Expected results:
syncing_percent should get updated as per the progress

Additional info:

Comment 9 Gopi 2022-07-05 04:36:29 UTC
Working as expected with latest build. Hence moving to verified state.

Comment 15 errata-xmlrpc 2022-08-09 17:36:41 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 Security, Bug Fix, 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-2022:5997