-
Notifications
You must be signed in to change notification settings - Fork 717
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
[E2E] TestFleetKubernetesNonRootIntegrationRecipe is failing #8331
Labels
>test
Related to unit/integration/e2e tests
Comments
I think the status is not updated as expected because the Agent containers are "oomkilled": "containerStatuses": [
{
"containerID": "containerd://e9a54513e7f1908e6a8da0a94a02bcd82e8fcbd8fc09befa02c15a2ce7e58f94",
"image": "docker.elastic.co/beats/elastic-agent:8.16.0",
"imageID": "docker.elastic.co/beats/elastic-agent@sha256:0d7ea6e67d7cc30bb5d26f11408df48ab6494b2d6636c92f8e8f4c2113e78f94",
"lastState": {
"terminated": {
"containerID": "containerd://7c8c8693e2c1bdbdc63107ddc0c6f3daaacb2d5d30f850bec11614b17a5c3fa4",
"exitCode": 137,
"finishedAt": "2024-12-15T23:33:28Z",
"reason": "OOMKilled",
"startedAt": "2024-12-15T23:32:46Z"
}
},
"name": "agent",
"ready": false,
"restartCount": 7,
"started": false,
"state": {
"terminated": {
"containerID": "containerd://e9a54513e7f1908e6a8da0a94a02bcd82e8fcbd8fc09befa02c15a2ce7e58f94",
"exitCode": 137,
"finishedAt": "2024-12-15T23:39:56Z",
"reason": "OOMKilled",
"startedAt": "2024-12-15T23:38:28Z"
}
}
}
], |
We already increased the memory a few month ago #8021. |
This was referenced Dec 16, 2024
What if we added a check to better highlight this error? Maybe even generalize it to all other Elastic components. func (b Builder) CheckK8sTestSteps(k *test.K8sClient) test.StepList {
return test.StepList{
{
Name: "Agent pods should not be killed by OOM",
Test: func(t *testing.T) {
pods, err := k.GetPods(test.AgentPodListOptions(b.Agent.Namespace, b.Agent.Name)...)
require.NoError(t, err)
for _, pod := range pods {
for _, cs := range pod.Status.ContainerStatuses {
if cs.State.Terminated.Reason == "OOMKilled" {
assert.Fail(t, "Agent pod OOMKilled", "pod.name", pod.Name)
}
}
}
},
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TestFleetKubernetesNonRootIntegrationRecipe
seems to have been failing for several days with:The text was updated successfully, but these errors were encountered: