File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2492,11 +2492,11 @@ def check_ceph_health_not_ok():
2492
2492
sampler .wait_for_func_status (True )
2493
2493
2494
2494
2495
- def ceph_health_resolve_daemon_crash ():
2495
+ def ceph_health_resolve_crash ():
2496
2496
"""
2497
2497
Fix ceph health issue with daemon crash
2498
2498
"""
2499
- log .warning ("Trying to fix the issue with daemon crash by archiving crashes" )
2499
+ log .warning ("Trying to fix the issue with crash by archiving crashes" )
2500
2500
from ocs_ci .ocs .resources .pod import get_ceph_tools_pod
2501
2501
2502
2502
ct_pod = get_ceph_tools_pod ()
@@ -2539,7 +2539,15 @@ def ceph_health_recover(health_status, namespace=None):
2539
2539
ceph_health_fixes = [
2540
2540
{
2541
2541
"pattern" : r"daemons have recently crashed" ,
2542
- "func" : ceph_health_resolve_daemon_crash ,
2542
+ "func" : ceph_health_resolve_crash ,
2543
+ "func_args" : [],
2544
+ "func_kwargs" : {},
2545
+ "ceph_health_tries" : 5 ,
2546
+ "ceph_health_delay" : 30 ,
2547
+ },
2548
+ {
2549
+ "pattern" : r"1 mgr modules have recently crashed" ,
2550
+ "func" : ceph_health_resolve_crash ,
2543
2551
"func_args" : [],
2544
2552
"func_kwargs" : {},
2545
2553
"ceph_health_tries" : 5 ,
You can’t perform that action at this time.
0 commit comments