Skip to content

Commit

Permalink
Merge pull request #1066 from kgaillot/1.1
Browse files Browse the repository at this point in the history
Testing fixes
  • Loading branch information
kgaillot committed Jun 15, 2016
2 parents 7130937 + 0fa6262 commit e928f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cts/patterns.py
Expand Up @@ -60,8 +60,8 @@ def __init__(self, name):
"Pat:Fencing_ok" : r"stonith.*:\s*Operation .* of %s by .* for .*@.*: OK",
"Pat:Fencing_recover" : r"pengine.*: Recover %s",

"Pat:RscOpOK" : r"crmd.*:\s+Result of %s operation for %s.*: ok",
"Pat:RscRemoteOpOK" : r"crmd.*:\s+Result of %s operation for %s on %s: ok",
"Pat:RscOpOK" : r"crmd.*:\s+Result of %s operation for %s.*: (0 \()?ok",
"Pat:RscRemoteOpOK" : r"crmd.*:\s+Result of %s operation for %s on %s: (0 \()?ok",
"Pat:NodeFenced" : r"crmd.*:\s*Peer\s+%s\s+was\s+terminated\s+\(.*\)\s+by\s+.*\s+for\s+.*:\s+OK",
"Pat:FenceOpOK" : "Operation .* for host '%s' with device .* returned: 0",
}
Expand Down Expand Up @@ -387,7 +387,7 @@ def __init__(self, name):
r"crit:.*Fencing daemon connection failed",
r"error:.*Sign-in failed: triggered a retry",
"STONITH connection failed, finalizing .* pending operations.",
r"crmd.*:\s+Result of .* operation for Fencing.* Error",
r"crmd.*:\s+Result of .* operation for Fencing.*Error",
]
self.components["stonith-ignore"].extend(self.components["common-ignore"])

Expand Down
4 changes: 2 additions & 2 deletions extra/resources/Dummy
Expand Up @@ -157,15 +157,15 @@ dummy_start() {

RETVAL=$?
if [ $RETVAL -eq $OCF_SUCCESS ]; then
if [ "$(hostname)" = "${OCF_RESKEY_fail_start_on}" ]; then
if [ "$(uname -n)" = "${OCF_RESKEY_fail_start_on}" ]; then
RETVAL=$OCF_ERR_GENERIC
fi
return $RETVAL
fi

touch "${OCF_RESKEY_state}"
RETVAL=$?
if [ "$(hostname)" = "${OCF_RESKEY_fail_start_on}" ]; then
if [ "$(uname -n)" = "${OCF_RESKEY_fail_start_on}" ]; then
RETVAL=$OCF_ERR_GENERIC
fi
return $RETVAL
Expand Down

0 comments on commit e928f0b

Please sign in to comment.