Bug 2106421

Summary: [rbd-mirror]: mirror image status : non-primary : description : syncing_percent showing invalid value (3072000)
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RBD-MirrorAssignee: N Balachandran <nibalach>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.2CC: akraj, ceph-eng-bugs, cephqe-warriors, idryomov, kdreyer, nibalach, rmandyam, sangadi
Target Milestone: ---   
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-5.el9cp Doc Type: Bug Fix
Doc Text:
.Set the `syncing_percent` value to `0` Previously, when an image snapshot copy was interrupted and restarted, the `rbd-mirror` would not have details of the last object copied for that image. The `syncing_percent` calculation, which relies on this information, returned an invalid percentage value. With this fix, if the information about the last object is unavailable, you can set the `syncing_percent` to `0` until the last object copied is updated.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:15: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: 2180567    
Bug Blocks: 2192813    

Description Vasishta 2022-07-12 16:32:50 UTC
Description of problem:
1) created two clusters, created 26 images both the sides, ran some IOs
Created 76 more images on one of the sites (site-a)

2) Observed that one of the non-primary image at site-a snapshot schedule stuck - Could be because of BZ 2102061

3) All secondary images in site-a were reported error - BZ 2105308

4) site-b had laggy osds and some undersized pgs by 1 replica. Scaled up and uppgraded twice to latest build of rhcs 5.2 (just 2-3 builds ahead).

5) all error ful reports in site-a were gone.

6) the observed secondary snapshot creation (as mentioned in above point 2) was still stuck.
Tried restarting of mgr as a workaround. Did not work.

**Tried image resync**

Then observed that syncing_percent in description part of rbd mirror image status was stuck at 3072000

Version-Release number of selected component (if applicable):
16.2.8-71.el8cp

How reproducible:
Tried once 

Steps to Reproduce:
MEntioned in description

Actual results:
syncing_percent displaying abnormal values.

Expected results:
Percentage field to reflect valid information.

Additional info:

Comment 19 errata-xmlrpc 2023-06-15 09:15: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 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:3623