Skip to content

Commit

Permalink
gather/aws-console: Make log gathering non-fatal
Browse files Browse the repository at this point in the history
Something in our console content is either UTF-8 and this is
expecting ASCII, or is invalid UTF-8.  To unblock RHCOS
promotion jobs, make gathering the console non-fatal.
  • Loading branch information
cgwalters committed Apr 14, 2021
1 parent 58874e8 commit d060927
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ REGION="$(jq -r .aws.region "${SHARED_DIR}/metadata.json")"
cat "${TMPDIR}/node-provider-IDs.txt" | sort | uniq | while read -r INSTANCE_ID
do
echo "Gathering console logs for ${INSTANCE_ID}"
aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" &
wait "$!"
aws --region "${REGION}" ec2 get-console-output --instance-id "${INSTANCE_ID}" --output text > "${ARTIFACT_DIR}/${INSTANCE_ID}" || echo "Failed to gather console logs"
done

0 comments on commit d060927

Please sign in to comment.