Skip to content

Commit

Permalink
NO-JIRA: Update gather_metallb (#379)
Browse files Browse the repository at this point in the history
* Update gather_metallb

Add a timeout in "oc exec -c frr -- vtysh -c ${COMMAND}"
This command can block if vtysh is not responding properly and can put customer into a situation where mustgather can not be grabbed.

* Update gather_metallb
  • Loading branch information
yoyz committed Mar 5, 2024
1 parent c8fec85 commit 4b03e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collection-scripts/gather_metallb
Expand Up @@ -25,7 +25,7 @@ function gather_frr_logs() {

for COMMAND in "${COMMANDS[@]}"; do
echo "###### ${COMMAND}" >> ${LOGS_DIR}/dump_frr
echo "$( oc -n ${operator_ns} exec ${1} -c frr -- vtysh -c "${COMMAND}")" >> ${LOGS_DIR}/dump_frr
echo "$( timeout -v 20s oc -n ${operator_ns} exec ${1} -c frr -- vtysh -c "${COMMAND}")" >> ${LOGS_DIR}/dump_frr
done
}

Expand Down

0 comments on commit 4b03e40

Please sign in to comment.