File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -490,12 +490,15 @@ jobs:
490490 if : always()
491491 run : |
492492 for pod in $(kubectl get pods -n "$FMA_NAMESPACE" -o 'jsonpath={.items[*].metadata.name} ') ; do
493- echo ""
494- echo "=== Previous log of $pod ==="
495- kubectl logs -n "$FMA_NAMESPACE" $pod --previous || true
496- echo ""
497- echo "=== Log of $pod ==="
498- kubectl logs -n "$FMA_NAMESPACE" $pod || true
493+ containers=$(kubectl get pod -n "$FMA_NAMESPACE" "$pod" -o 'jsonpath={.spec.containers[*].name}')
494+ for container in $containers ; do
495+ echo ""
496+ echo "=== Previous log of $pod (container: $container) ==="
497+ kubectl logs -n "$FMA_NAMESPACE" "$pod" -c "$container" --previous || true
498+ echo ""
499+ echo "=== Log of $pod (container: $container) ==="
500+ kubectl logs -n "$FMA_NAMESPACE" "$pod" -c "$container" || true
501+ done
499502 done
500503
501504 - name : Dump vLLM instance logs from launchers
You can’t perform that action at this time.
0 commit comments