Bug 2303865

Summary: cephfs_mirror: fix mirror daemon doesn't restart when blocklisted or failed
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jos Collin <jcollin>
Component: CephFSAssignee: Jos Collin <jcollin>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, ceph-eng-bugs, cephqe-warriors, gfarnum, hyelloji, ngangadh, rpollack, tserlin
Target Milestone: ---   
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-19.1.1-3.el9cp Doc Type: Bug Fix
Doc Text:
.Mirror daemon can now restart when blocklisted or fails Previously, the time difference taken would lead to negative seconds and never reach the threshold interval. As a result, the mirror daemon would not restart when blocklisted or failed. With this fix, the time difference calculation is corrected.
Story Points: ---
Clone Of: 2298653 Environment:
Last Closed: 2024-11-25 09:05:31 UTC Type: ---
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: 2298653    
Bug Blocks: 2317218    

Description Jos Collin 2024-08-09 15:00:07 UTC
+++ This bug was initially created as a clone of Bug #2298653 +++

Description of problem:
cephfs_mirror daemon doesn't restart when it's blocklisted or failed.

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

How reproducible:
Always

Steps to Reproduce:
1. Make cephfs_mirror daemon blocklisted or failed (Better use a QA test that blocklists or fails mirror daemon).
2. Check the logs.
3. The mirror daemon doesn't restart as mentioned here: https://github.com/ceph/ceph/blob/main/src/tools/cephfs_mirror/Mirror.cc#L569-L572

Actual results:
Mirror daemon doesn't restart.

Expected results:
Mirror daemon should restart when blocklisted or failed.

Additional info:

Comment 5 errata-xmlrpc 2024-11-25 09:05:31 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 (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), 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/RHBA-2024:10216