-
Notifications
You must be signed in to change notification settings - Fork 135
NO-JIRA: e2e: fix: restart tuned pod after irqbalance test to prevent cpuset pollution #1575
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -223,6 +223,7 @@ var _ = Describe("[performance] IRQBalance", Ordered, func() { | |
| err = testclient.DataPlaneClient.Create(context.TODO(), testpod) | ||
| Expect(err).ToNot(HaveOccurred()) | ||
| defer func() { | ||
| GinkgoHelper() | ||
| if testpod != nil { | ||
| testlog.Infof("deleting pod %q", testpod.Name) | ||
| Expect(pods.DeleteAndSync(context.TODO(), testclient.DataPlaneClient, testpod)).To(Succeed()) | ||
|
|
@@ -236,6 +237,16 @@ var _ = Describe("[performance] IRQBalance", Ordered, func() { | |
| Expect(err).ToNot(HaveOccurred(), "failed to extract the default IRQ affinity from node %q", targetNode.Name) | ||
|
|
||
| testlog.Infof("IRQ Default affinity on %q when test ends: {%s}", targetNode.Name, irqAffBegin) | ||
|
|
||
| // Restart the tuned pod to restore clean CPU affinity. | ||
| // The tuned pod was restarted earlier while the guaranteed pod | ||
| // held exclusive CPUs, so its process affinity mask is permanently | ||
| // narrowed. A fresh start picks up the current (full) default cpuset. | ||
| By(fmt.Sprintf("restarting tuned pod on %s to restore clean CPU affinity", targetNode.Name)) | ||
| tunedPod := nodes.TunedForNode(targetNode, RunningOnSingleNode) | ||
| Expect(pods.DeleteAndSync(context.TODO(), testclient.DataPlaneClient, tunedPod)).To(Succeed(), "failed to delete tuned pod on node %q", targetNode.Name) | ||
| nodes.TunedForNode(targetNode, RunningOnSingleNode) | ||
| testlog.Infof("tuned pod restarted on node %q with clean CPU affinity", targetNode.Name) | ||
|
coderabbitai[bot] marked this conversation as resolved.
Comment on lines
+248
to
+249
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Require a real readiness check before logging the restart. At Line 247, Update Suggested helper guard if len(tunedList.Items) == 0 {
return false
}
+ if len(tunedList.Items[0].Status.ContainerStatuses) == 0 {
+ return false
+ }
for _, s := range tunedList.Items[0].Status.ContainerStatuses {🤖 Prompt for AI Agents
Comment on lines
+246
to
+249
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Cleanup can block too long The added tuned restart cleanup does two nodes.TunedForNode(...) waits (up to 480s each) plus a pod deletion wait (up to 120s), so a single spec’s cleanup can be delayed by many minutes when tuned is slow/unhealthy. This can significantly slow feedback in failure scenarios and make unrelated failures take much longer to complete. Agent Prompt
|
||
| }() | ||
|
|
||
| testpod, err = pods.WaitForCondition(context.TODO(), client.ObjectKeyFromObject(testpod), corev1.PodReady, corev1.ConditionTrue, 10*time.Minute) | ||
|
|
||
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.
1. Cleanup assertions obscure failures
🐞 Bug☼ ReliabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools