Bug 2298653

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: 7.1CC: ceph-eng-bugs, cephqe-warriors, dwalveka, hyelloji, tserlin, vshankar
Target Milestone: ---   
Target Release: 7.1z2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-235.el9cp Doc Type: Bug Fix
Doc Text:
Previously, the calculated time difference led to negative seconds and never reached the threshold interval resulting in the mirror daemon not restarting when blocklisted or failed. With this fix, the time difference calculation is corrected.
Story Points: ---
Clone Of:
: 2303865 (view as bug list) Environment:
Last Closed: 2024-11-07 14:39:44 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: 2303865    

Description Jos Collin 2024-07-18 11:13:27 UTC
Description of problem:
cephfs_mirror daemon doesn't restart when it's blocklisted or failed.

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

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 7 errata-xmlrpc 2024-11-07 14:39:44 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 7.1 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:9010