Skip to content
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

Dpdk tests: add a test that runs a pod using netdevice together with dpdk. #368

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

fedepaol
Copy link
Member

This uses the sriov device partitioning, assigning some vfs to the dpdk payload and some
others to pods using net devices.

Also, changes the num of hugepages to 5 as 4 are needed to the two dpdk pods, one to the regular pod.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 20, 2020
@fedepaol fedepaol force-pushed the dpdkmixeduse branch 4 times, most recently from 1e92af0 to d5841f9 Compare November 22, 2020 09:57
Copy link
Member

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment I think we should have some clean between the different parts

execute.BeforeAll(func() {
createSriovPolicyAndNetworkShared()
var err error
dpdkWorkloadPod, err = createDPDKWorkload(nodeSelector,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should you clean the old pods before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was done inside createSriovPolicyAndNetworkShared / createSriovPolicyAndNetworkDPDKOnly (as it was before).
Will move the clean function outside, I agree it will improve readability.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 14, 2020
Copy link
Member

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a small nit and we can merge this PR thanks for the great job!

})

It("Run a regular pod using a vf shared with the dpdk's pf", func() {
podDefinition := pods.DefineWithNetworks(namespaces.DpdkTest, []string{"test-regular-network"})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can use add the network name as const and reuse it in the createSriovPolicyAndNetworkShared function?

@fedepaol
Copy link
Member Author

/hold
blocking this until 4.8 branch is available

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 22, 2020
@fedepaol
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 15, 2021
@fedepaol
Copy link
Member Author

/retest

…dpdk.

This uses the sriov device partitioning, assigning some vfs to the dpdk payload and some
others to pods using net devices.

Also, changes the num of hugepages to 5 as 4 are needed to the two dpdk pods, one to the regular pod.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
Copy link
Member

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 19, 2021
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fedepaol, SchSeba

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 76ea949 into openshift-kni:master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants