You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CPUSet already implement the Stringer interface so everytime
we print CPUSet the `String()` function is called anyway.
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask.String())
340
-
Expect(ctnCpuset.Equals(cpumask)).To(BeTrue()), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ctnCpuset.String(), pid, cpumask.String())
339
+
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask)
340
+
Expect(ctnCpuset.Equals(cpumask)).To(BeTrue(), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ctnCpuset, pid, cpumask)
341
341
}
342
342
deleteTestPod(ctx, testpod)
343
343
@@ -401,7 +401,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask.String())
415
-
Expect(ovnContainerCpuset1.Equals(cpumask)).To(BeTrue(), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset1.String(), pid, cpumask.String())
414
+
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask)
415
+
Expect(ovnContainerCpuset1.Equals(cpumask)).To(BeTrue(), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset1, pid, cpumask)
416
416
}
417
417
// Delete testpod1
418
418
testlog.Infof("Deleting pod %v", testpod1.Name)
@@ -421,16 +421,16 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask.String())
433
-
Expect(ovnContainerCpuset2.Equals(cpumask)).To(BeTrue(), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset2.String(), pid, cpumask.String())
432
+
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask)
433
+
Expect(ovnContainerCpuset2.Equals(cpumask)).To(BeTrue(), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset2, pid, cpumask)
434
434
}
435
435
// Delete testpod2
436
436
deleteTestPod(context.TODO(), testpod2)
@@ -464,7 +464,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
464
464
// of ovs services should contain all cpus , which is generally 0-N (where
465
465
// N is total number of cpus, this should be easy to compare.
466
466
if!cpumask.Equals(onlineCPUSet) {
467
-
testlog.Warningf("ovs servics pid %s cpu mask is %s instead of %s", pid, cpumask.String(), onlineCPUSet.String())
467
+
testlog.Warningf("ovs servics pid %s cpu mask is %s instead of %s", pid, cpumask, onlineCPUSet)
468
468
returnfalse
469
469
}
470
470
}
@@ -481,7 +481,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask.String())
495
-
Expect(ovnContainerCpuset).To(Equal(cpumask), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset.String(), pid, cpumask.String())
494
+
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask)
495
+
Expect(ovnContainerCpuset).To(Equal(cpumask), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpuset, pid, cpumask)
496
496
}
497
497
498
498
testlog.Info("Rebooting the node")
@@ -540,7 +540,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask.String())
553
-
Expect(ovnContainerCpusetAfterReboot).To(Equal(cpumask), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpusetAfterReboot.String(), pid, cpumask.String())
552
+
testlog.Infof("OVS service pid %s is using cpus %s", pid, cpumask)
553
+
Expect(ovnContainerCpusetAfterReboot).To(Equal(cpumask), "affinity of ovn kube node pods(%s) do not match with ovservices pid %s (%s)", ovnContainerCpusetAfterReboot, pid, cpumask)
554
554
}
555
555
})
556
556
@@ -595,7 +595,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
595
595
Expect(err).ToNot(HaveOccurred())
596
596
forpid, cpumask:=rangepidToCPUs {
597
597
if!cpumask.Equals(onlineCPUSet) {
598
-
testlog.Warningf("ovs servics pid %s cpu mask is %s instead of %s", pid, cpumask.String(), onlineCPUSet.String())
598
+
testlog.Warningf("ovs servics pid %s cpu mask is %s instead of %s", pid, cpumask, onlineCPUSet)
599
599
returnfalse
600
600
}
601
601
}
@@ -646,7 +646,7 @@ var _ = Describe("[performance] Cgroups and affinity", Ordered, Label(string(lab
0 commit comments