Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSB] Store TNB framework pod logs #49629

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ aliases:
- smongiar
- mcarlett
- croway
- petrpinkas
- jvrubel
microshift-reviewers:
- copejon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ function restartPodAfterFailure() {
echo "TNB pod restarted."
}

function copy_deploy_pod_logs() {
TNB_POD=$(oc get pods -n csb-interop -l deployment=tnb --no-headers=true | awk '{print $1}')
echo "get logs from pod ${TNB_POD}"
mkdir -p "${ARTIFACT_DIR}"/tnb
oc logs --tail=5000 "$TNB_POD" -n csb-interop > "${ARTIFACT_DIR}"/tnb/deploy-and-compile.log
}

echo "Create project"
create_csb_project_and_policies csb-interop

Expand All @@ -738,3 +745,6 @@ oc import-image tnb-tests:latest --from=quay.io/rh_integration/tnb-tests:latest

echo "Compile TNB project through Pod creation"
create_dc_and_tnb_framework_pod

echo "Copy TNB Pod logs"
copy_deploy_pod_logs