Skip to content

Commit

Permalink
connectivity: Add "Link not found" in the exception list
Browse files Browse the repository at this point in the history
This error shows up frequently, causing the connectivity test to fail.
Add the message to the error log exceptions until #1894 is resolved.
More specifically, ignore these two messages:

    level=error msg="Link not found" device=... subsys=datapath-loader
    level=warning msg="JoinEP: Failed to attach program(s)" error="getting interface by name: Link not found"

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
  • Loading branch information
michi-covalent committed Feb 28, 2024
1 parent 590e755 commit 29d5ad0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions connectivity/tests/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ 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)
}
Expand All @@ -36,7 +41,7 @@ func NoErrorsInLogs(ciliumVersion semver.Version) check.Scenario {
deadLockHeader: nil,
segmentationFault: nil,
NACKreceived: nil,
RunInitFailed: nil,
RunInitFailed: {linkNotFound},
sizeMismatch: {"globals/cilium_policy"},
emptyBPFInitArg: nil,
RemovingMapMsg: {"globals/cilium_policy"},
Expand Down Expand Up @@ -245,4 +250,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
)

0 comments on commit 29d5ad0

Please sign in to comment.