-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connectivity: Add checks for agent error logs and drops due to missed tail calls #1736
Conversation
fb34a78
to
25199ad
Compare
d2d1f5b
to
de152c5
Compare
de152c5
to
2849689
Compare
2849689
to
aedcb13
Compare
aedcb13
to
03b67f7
Compare
03b67f7
to
582bf40
Compare
582bf40
to
d4e6442
Compare
This commit adds a test case to check for errors in cilium-agent logs. The list of errors and helper utils were adopted from cilium/cilium/test/helper/utils.go. The error list diff from the former: * Removed all exceptions for "level=error" entries. * Added "Error in delegate stream, restarting" exception to "level=error". It's red-herring, and it will be chaned to warn or info by the SM team. Signed-off-by: Martynas Pumputis <[email protected]>
The test case is protected with --include-upgrade-test, as it's only relevant in the context of Cilium upgrades. Signed-off-by: Martynas Pumputis <[email protected]>
d4e6442
to
3f13fb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😇
@@ -217,6 +217,8 @@ func Run(ctx context.Context, ct *check.ConnectivityTest, addExtraTests func(*ch | |||
// include --include-upgrade-tests" | |||
return ct.Run(ctx) | |||
} | |||
|
|||
ct.NewTest("no-missed-tail-calls").WithScenarios(tests.NoMissedTailCalls()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably out of scope, but I wonder if we could generalize that to more than just the upgrade and more than just missed tail calls drops. There are a lot of drops that we never expect to see. In a sense, they are the same as level=error log messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good idea. Maybe let's start an issue to collect all thoughts?
See commit msgs.