diff --git a/connectivity/tests/errors.go b/connectivity/tests/errors.go index 7374da336c..6fd8862af1 100644 --- a/connectivity/tests/errors.go +++ b/connectivity/tests/errors.go @@ -26,10 +26,18 @@ import ( func NoErrorsInLogs(ciliumVersion semver.Version) check.Scenario { // Exceptions for level=error should only be added as a last resort, if the // error cannot be fixed in Cilium or in the test. - errorLogExceptions := []string{"Error in delegate stream, restarting", failedToListCRDs, removeInexistentID} + errorLogExceptions := []string{ + "Error in delegate stream, restarting", + failedToListCRDs, + removeInexistentID, + linkNotFound, + } if ciliumVersion.LT(semver.MustParse("1.14.0")) { errorLogExceptions = append(errorLogExceptions, previouslyUsedCIDR) } + warningLogExceptions := []string{ + linkNotFound, + } // The list is adopted from cilium/cilium/test/helper/utils.go var errorMsgsWithExceptions = map[string][]string{ panicMessage: nil, @@ -53,6 +61,7 @@ func NoErrorsInLogs(ciliumVersion semver.Version) check.Scenario { emptyIPNodeIDAlloc: nil, "DATA RACE": nil, "level=error": errorLogExceptions, + "level=warnings": warningLogExceptions, } return &noErrorsInLogs{errorMsgsWithExceptions} } @@ -245,4 +254,5 @@ const ( emptyIPNodeIDAlloc = "Attempt to allocate a node ID for an empty node IP address" failedToListCRDs = "the server could not find the requested resource" // cf. https://github.com/cilium/cilium/issues/16425 previouslyUsedCIDR = "Unable to find identity of previously used CIDR" // from https://github.com/cilium/cilium/issues/26881 + linkNotFound = "Link not found" // https://github.com/cilium/cilium-cli/issues/1894 )