Skip to content

Commit c4be389

Browse files
committed
Test: CTS: update corosync fail patterns
We were looking only for attrd's connection to corosync dropping, but if the CIB exits first, attrd could report losing its connection to the CIB instead, and exit before it notices corosync gone. Also consolidate some other patterns, and ignore cib_rw errors.
1 parent 9321a66 commit c4be389

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

cts/patterns.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -286,25 +286,21 @@ def __init__(self, name):
286286
r"error:.*Child process cib .* exited: Invalid argument",
287287
r"error:.*Child process attrd .* exited: Transport endpoint is not connected",
288288
r"error:.*Child process crmd .* exited: Link has been severed",
289-
r"lrmd.*error:.*Connection to stonith-ng failed",
290-
r"lrmd.*error:.*Connection to stonith-ng.* closed",
289+
r"lrmd.*error:.*Connection to stonith-ng.* (failed|closed)",
291290
r"lrmd.*error:.*LRMD lost STONITH connection",
292291
r"crmd.*State transition .* S_RECOVERY",
293-
r"crmd.*error:.*Input I_ERROR .*received in state",
294-
r"crmd.*error:.*Input I_TERMINATE .*received in state",
292+
r"crmd.*error:.*Input (I_ERROR|I_TERMINATE ) .*received in state",
295293
r"crmd.*error:.*Connection to cman failed",
296294
r"crmd.*error:.*Could not recover from internal error",
297-
r"error:.*Connection to cib_shm failed",
298-
r"error:.*Connection to cib_shm.* closed",
295+
r"error:.*Connection to cib_(shm|rw).* (failed|closed)",
299296
r"error:.*STONITH connection failed",
300-
r"error: Connection to stonith-ng failed",
297+
r"error: Connection to stonith-ng.* (failed|closed)",
301298
r"crit: Fencing daemon connection failed",
302-
r"error: Connection to stonith-ng.* closed",
303299
]
304300

305301
self.components["corosync"] = [
306302
r"pacemakerd.*error:.*Connection destroyed",
307-
r"attrd.*:\s*crit:.*Lost connection to Corosync service",
303+
r"attrd.*:\s*(crit|error):.*Lost connection to (Corosync|CIB) service",
308304
r"stonith.*:\s*(Corosync connection terminated|Shutting down)",
309305
r"cib.*:\s*Corosync connection lost!\s+Exiting.",
310306
r"crmd.*:\s*(connection terminated|Disconnected from Corosync)",

0 commit comments

Comments
 (0)