-
Notifications
You must be signed in to change notification settings - Fork 137
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
add tc numa sriov exclude true #1582
add tc numa sriov exclude true #1582
Conversation
Hi @gkopels. Thanks for your PR. I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
I left a few comments
g.Expect(err).ToNot(HaveOccurred()) | ||
g.Expect(actualPod.Status.Phase).To(Equal(corev1.PodRunning)) | ||
g.Expect(actualPod.Status.QOSClass).To(Equal(corev1.PodQOSGuaranteed)) | ||
}, 30*time.Second, 1*time.Second).Should(Succeed()) |
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.
Good job on setting Duration and Timeout. Can you please fix it on line 122 as well? The default is 1s/100ms and it can lead to test flakes.
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.
Added
@@ -161,3 +184,18 @@ func createSriovNetworkAndPolicyForNumaAffinityTest(numVFs int, intf *sriovv1.In | |||
ExpectWithOffset(1, err).ToNot(HaveOccurred()) | |||
|
|||
} | |||
|
|||
func validateE2EICMPTraffic(pod *corev1.Pod, annotation string) error { | |||
By("Create SRIOV Network") |
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.
nit: we can remove this, we are not creating network here.
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.
removed
Create(context.Background(), serverPod, metav1.CreateOptions{}) | ||
Expect(err).ToNot(HaveOccurred()) | ||
|
||
_, err = pods.ExecCommand(client.Client, *pod, command) |
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.
I'd wrap this around an Eventually
block, as pod creation can take time. By doing so, we can also get rid of the return value.
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.
Added
9f605c1
to
bee53cc
Compare
ExpectWithOffset(1, err).ToNot(HaveOccurred()) | ||
|
||
} | ||
|
||
func validateE2EICMPTraffic(pod *corev1.Pod, annotation string) { |
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.
Sorry, I meant only the ExecCommand. putting the pod creation inside the Eventually loops bring to creating multiple pods.
I had in my mind something like
func validateE2EICMPTraffic(pod *corev1.Pod, annotation string) { | |
serverPod := pods.DefinePod(sriovnamespaces.Test) | |
serverPod = pods.RedefinePodWithNetwork(serverPod, annotation) | |
command := []string{"bash", "-c", "ping -I net1 192.0.2.250 -c 5"} | |
serverPod, err := client.Client.Pods(sriovnamespaces.Test). | |
Create(context.Background(), serverPod, metav1.CreateOptions{}) | |
Expect(err).ToNot(HaveOccurred()) | |
Eventually(func(g Gomega) error { | |
_, err = pods.ExecCommand(client.Client, *pod, command) | |
return err | |
}, 30*time.Second, 1*time.Second).Should(Succeed(), "ICMP traffic failed over SRIOV interface pod interface") |
WDYT?
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.
Better! :)
Changed
fd3f012
to
10f7c34
Compare
@@ -3,7 +3,9 @@ package dpdk | |||
import ( | |||
"context" | |||
"fmt" | |||
"github.com/openshift-kni/cnf-features-deploy/cnf-tests/testsuites/pkg/performanceprofile" |
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.
nit: please just fix the import here
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.
Fixed
10f7c34
to
de4733a
Compare
/ok-to-test |
de4733a
to
bbfacc7
Compare
bbfacc7
to
552ac71
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.
LGTM
I will let @zeeke to approve
e2e-gcp-ovn failures are not related to this PR:
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gkopels, zeeke The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@zeeke: Overrode contexts on behalf of zeeke: ci/prow/e2e-gcp-ovn In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
No description provided.