From dbac2a369a38fe5a4659d06b42f898b4fdfe9071 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Fri, 3 Apr 2020 14:07:56 +0200 Subject: [PATCH] podlogs: adapt to modified error message Commit 8a495cb5e44e changed the spelling of the error message that we want to ignore. In case of version skew we suppress both the old and new spelling. --- test/e2e/storage/podlogs/podlogs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/storage/podlogs/podlogs.go b/test/e2e/storage/podlogs/podlogs.go index b8e992d8fe6..f4609757d9c 100644 --- a/test/e2e/storage/podlogs/podlogs.go +++ b/test/e2e/storage/podlogs/podlogs.go @@ -170,6 +170,7 @@ func CopyAllLogs(ctx context.Context, cs clientset.Interface, ns string, to LogO // Same for attempts to read logs from a container that // isn't ready (yet?!). if !strings.HasPrefix(line, "rpc error: code = Unknown desc = Error: No such container:") && + !strings.HasPrefix(line, "unable to retrieve container logs for ") && !strings.HasPrefix(line, "Unable to retrieve container logs for ") { if first { if to.LogWriter == nil {