From ac852c730ecd1e66bf434ce8b5e4ff3355dd50bc Mon Sep 17 00:00:00 2001 From: Harshal Patil Date: Fri, 8 Sep 2023 12:05:35 -0400 Subject: [PATCH] ignore timeout and connection refused error during upgrade tests Signed-off-by: Harshal Patil --- pkg/synthetictests/duplicated_events.go | 4 ++++ pkg/synthetictests/duplicated_events_test.go | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/pkg/synthetictests/duplicated_events.go b/pkg/synthetictests/duplicated_events.go index f16e1d8a9b85..d01f090e4fbd 100644 --- a/pkg/synthetictests/duplicated_events.go +++ b/pkg/synthetictests/duplicated_events.go @@ -137,6 +137,10 @@ var allowedUpgradeRepeatedEventPatterns = []*regexp.Regexp{ regexp.MustCompile(`ns/openshift-etcd-operator deployment/etcd-operator - reason/RequiredInstallerResourcesMissing configmaps: etcd-endpoints-[0-9]+`), // There is a separate test to catch this specific case regexp.MustCompile(requiredResourcesMissingRegEx), + // Ingore the timeouts because cluster maybe not be ready yet + regexp.MustCompile(`reason/ProbeError.Readiness.probe.error:.Get.+net/http:.request.canceled.while.waiting.for.connection.\(Client.Timeout.exceeded.while.awaiting.headers\)`), + // Ignore the connection refused error because cluster may not be ready yet + regexp.MustCompile(`reason/.*dial tcp.*connection refused`), } var knownEventsBugs = []knownProblem{ diff --git a/pkg/synthetictests/duplicated_events_test.go b/pkg/synthetictests/duplicated_events_test.go index a08e5974d79e..def9f09f00c6 100644 --- a/pkg/synthetictests/duplicated_events_test.go +++ b/pkg/synthetictests/duplicated_events_test.go @@ -153,6 +153,14 @@ func TestUpgradeEventRegexExcluder(t *testing.T) { name: "etcd-member", message: `ns/openshift-etcd-operator deployment/etcd-operator - reason/UnhealthyEtcdMember unhealthy members: ip-10-0-198-128.ec2.internal`, }, + { + name: "readiness-notready", + message: `ns/openshift-machine-api pod/machine-api-controllers-6665d45fd-blbbp node/ip-1-2-3-4.ec2.internal - reason/ProbeError Readiness probe error: Get "http://1.2.3.4:9441/healthz": dial tcp 1.2.3.4:9441: connect: connection refused`, + }, + { + name: "readiness-timeout", + message: `ns/openshift-monitoring pod/thanos-querier-d89745c9-xttvz node/ip-1-2-3-4.us-west-2.compute.internal - reason/ProbeError Readiness probe error: Get "https://1.2.3.4:9091/-/ready": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)`, + }, } for _, test := range tests {