add another error exclusion to so-verify

This commit is contained in:
Doug Burks
2023-05-11 15:38:57 -04:00
committed by GitHub
parent 634dd9907d
commit e9fd7d8b8b

View File

@@ -32,6 +32,8 @@ log_has_errors() {
# Ignore Failed: 0 since that is the salt state output, and we detect state failures # Ignore Failed: 0 since that is the salt state output, and we detect state failures
# via Result: False already. # via Result: False already.
# Ignore "/tmp/__salt.tmp." and "retcode: 126" as they seem to be related to a transient issue with the elastic agent for linux
grep -E "FAILED|Failed|failed|ERROR|Result: False" "$setup_log" | \ grep -E "FAILED|Failed|failed|ERROR|Result: False" "$setup_log" | \
grep -vE "The Salt Master has cached the public key for this node" | \ grep -vE "The Salt Master has cached the public key for this node" | \
grep -vE "Minion failed to authenticate with the master" | \ grep -vE "Minion failed to authenticate with the master" | \
@@ -44,6 +46,8 @@ log_has_errors() {
grep -vE "Exception in callback None" | \ grep -vE "Exception in callback None" | \
grep -vE "deprecation: ERROR" | \ grep -vE "deprecation: ERROR" | \
grep -vE "code: 100" | \ grep -vE "code: 100" | \
grep -vE "/tmp/__salt.tmp." | \
grep -vE "retcode: 126" | \
grep -vE "Running scope as unit" &> "$error_log" grep -vE "Running scope as unit" &> "$error_log"
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then