Skip to content
Open
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
2 changes: 2 additions & 0 deletions pkg/steps/multi_stage/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ func (s *multiStageTestStep) runPod(ctx context.Context, pod *coreapi.Pod, notif
// step Pod in the cluster, because it may eventually get scheduled and start testing the cluster that
// is already being torn down).
if err != nil && pod.Status.Phase == coreapi.PodPending {
client.MetricsAgent().StorePodLifecycleMetrics(pod.Name, pod.Namespace, coreapi.PodFailed)
client.MetricsAgent().StoreMachinesSnapshot(pod)
logrus.Infof("Deleting pod %s that failed to start", pod.Name)
deleteCtx, cancel := context.WithTimeout(base_steps.CleanupCtx, 30*time.Second)
defer cancel()
Expand Down