Skip to content

Commit

Permalink
Merge pull request #3942 from beekhof/patch-1
Browse files Browse the repository at this point in the history
Masters-gather: Include the full logs of failed units
  • Loading branch information
openshift-merge-robot committed Jul 22, 2020
2 parents 4b5b20d + 4e60294 commit e43e39a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/data/bootstrap/files/usr/local/bin/installer-gather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ echo "Gathering bootstrap failed systemd unit status ..."
mkdir -p "${ARTIFACTS}/unit-status"
sed -n 's/^\* \([^ ]*\) .*/\1/p' < "${ARTIFACTS}/failed-units.txt" | while read -r UNIT
do
systemctl status "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
systemctl status --full "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
journalctl -u "${UNIT}" > "${ARTIFACTS}/unit-status/${UNIT}.log"
done

echo "Gathering bootstrap journals ..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ echo "Gathering master failed systemd unit status ..."
mkdir -p "${ARTIFACTS}/unit-status"
sed -n 's/^\* \([^ ]*\) .*/\1/p' < "${ARTIFACTS}/failed-units.txt" | while read -r UNIT
do
systemctl status "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
systemctl status --full "${UNIT}" >& "${ARTIFACTS}/unit-status/${UNIT}.txt"
journalctl -u "${UNIT}" > "${ARTIFACTS}/unit-status/${UNIT}.log"
done

echo "Gathering master journals ..."
Expand Down

0 comments on commit e43e39a

Please sign in to comment.