From ffc6f0a3bd1877f1d53a9058671215ac50d38538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Juli=C3=A1n?= Date: Mon, 16 Sep 2024 17:41:39 -0400 Subject: [PATCH] [EBPF] Add more recognized error types to KMT (#29365) --- test/new-e2e/system-probe/errors.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/new-e2e/system-probe/errors.go b/test/new-e2e/system-probe/errors.go index 0ac077d8a12765..297f80bb0184a5 100644 --- a/test/new-e2e/system-probe/errors.go +++ b/test/new-e2e/system-probe/errors.go @@ -47,6 +47,8 @@ const ( ec2StateChangeTimeoutError ioTimeout tcp22ConnectionRefused + ec2InstanceCreateTimeout + ddAgentRepoFailure ) type handledError struct { @@ -104,6 +106,18 @@ var handledErrorsLs = []handledError{ metric: "ssh-connection-refused", action: retryStack | emitMetric, }, + { + errorType: ec2InstanceCreateTimeout, + errorString: "creating EC2 Instance: operation error", + metric: "ec2-instance-create-timeout", + action: retryStack | emitMetric, + }, + { + errorType: ddAgentRepoFailure, + errorString: "Failed to update the sources after adding the Datadog repository.", + metric: "apt-dd-agent-repo-failure", + action: emitMetric, + }, } type retryHandler struct {