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

Merge nvidia-gpu-device-plugin and nvidia-device-plugin. #19545

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

RamBITS-AI
Copy link

@RamBITS-AI RamBITS-AI commented Aug 30, 2024

Fixes #19114.

EDIT:
Merged both the addons, nvidia-gpu-device-plugin and nvidia-device-plugin, into nvidia-device-plugin addon.

BEFORE:

minikube start --driver docker --container-runtime docker --gpus all

PRE-1-minikube-nvidia-gpu-all_docker-driver_container-runtime-docker

minikube status
minikube kubectl -- get pods -A

PRE-1-minikube-nvidia-gpu-all_docker-driver_container-runtime-docker_minikube-status_get-pods

minikube addons enable nvidia-device-plugin --alsologtostderr

PRE-1-minikube-nvidia-device-plugin_addons-enable

minikube addons enable nvidia-gpu-device-plugin --alsologtostderr

PRE-1 1-minikube-nvidia-gpu-device-plugin_addons-enable
PRE-1 2-minikube-nvidia-gpu-device-plugin_addons-enable

AFTER:

minikube start --driver docker --container-runtime docker --gpus all

POST-2 1

minikube status
minikube kubectl -- get pods -A

POST-2 2

minikube addons enable nvidia-device-plugin --alsologtostderr

POST-2 3

minikube addons enable nvidia-gpu-device-plugin --alsologtostderr

POST-2 4

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 30, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @RamBITS-AI. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 30, 2024
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

…plugin.

Removing isKVMDriverForNVIDIA from validations for nvidia-gpu-device-plugin. This is being done to allow merger of functionalities of nvidia-gpu-device-plugin and nvidia-device-plugin into nvidia-gpu-device-plugin. This basically means nvidia-gpu-device-plugin will work for both KVM & non-KVM (including docker) drivers.
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: RamBITS-AI
Once this PR has been reviewed and has the lgtm label, please assign medyagh for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Messages, Warnings and In-line Code Comments w.r.t the merger.
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 31, 2024
Merged nvidia-device-plugin addon into nvidia-gpu-device-plugin addon.
@RamBITS-AI RamBITS-AI marked this pull request as ready for review September 6, 2024 00:41
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 6, 2024
Copy link
Member

@spowelljr spowelljr left a comment

Choose a reason for hiding this comment

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

Hi @RamBITS-AI, thanks for the PR! There might have been a miscommunication but nvidia-device-plugin is the addon we want users to be using as it's being kept up to date, nvidia-gpu-device-plugin on the other hand hasn't been updated in 2.5 years, to that's the one we want to deprecate and move users off of.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2024
@RamBITS-AI
Copy link
Author

Yes, will do @spowelljr.

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 4, 2024
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 4, 2024
Reverting nvidia-gpu-device-plugin to nvidia-device-plugin.
…loy\addons\nvidia-device-plugin\nvidia-device-plugin.yaml.tmpl.

Merging deploy\addons\gpu\nvidia-gpu-device-plugin.yaml.tmpl into deploy\addons\nvidia-device-plugin\nvidia-device-plugin.yaml.tmpl.
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 4, 2024
@spowelljr
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 4, 2024
@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot

This comment has been minimized.

@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19545) |
+----------------+----------+---------------------+
| minikube start | 50.1s    | 51.8s               |
| enable ingress | 15.2s    | 15.9s               |
+----------------+----------+---------------------+

Times for minikube start: 47.5s 50.0s 48.3s 54.2s 50.4s
Times for minikube (PR 19545) start: 50.8s 51.4s 52.5s 54.3s 50.0s

Times for minikube ingress: 16.5s 15.5s 15.0s 14.5s 14.5s
Times for minikube (PR 19545) ingress: 15.5s 15.5s 17.1s 16.1s 15.5s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19545) |
+----------------+----------+---------------------+
| minikube start | 22.1s    | 22.2s               |
| enable ingress | 11.6s    | 12.3s               |
+----------------+----------+---------------------+

Times for minikube start: 23.5s 21.3s 24.0s 21.0s 20.7s
Times for minikube (PR 19545) start: 20.9s 20.4s 24.0s 23.4s 22.5s

Times for minikube ingress: 12.7s 10.3s 10.8s 12.3s 11.8s
Times for minikube (PR 19545) ingress: 12.3s 12.7s 12.8s 12.8s 10.8s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 19545) |
+----------------+----------+---------------------+
| minikube start | 21.1s    | 21.2s               |
| enable ingress | 23.0s    | 23.2s               |
+----------------+----------+---------------------+

Times for minikube ingress: 22.7s 22.8s 23.2s 22.8s 23.2s
Times for minikube (PR 19545) ingress: 23.2s 23.3s 23.3s 22.7s 23.2s

Times for minikube start: 19.3s 22.0s 18.7s 22.5s 22.8s
Times for minikube (PR 19545) start: 21.8s 19.1s 19.8s 22.7s 22.3s

@minikube-pr-bot
Copy link

Here are the number of top 10 failed tests in each environments with lowest flake rate.

Environment Test Name Flake Rate
Docker_Linux_crio (4 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_Linux_crio (4 failed) TestFunctional/parallel/ImageCommands/ImageLoadDaemon(gopogh) 11.43% (chart)
none_Linux (1 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_Linux (1 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_Linux_crio_arm64 (3 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_Cloud_Shell (4 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_macOS (1 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
Docker_Linux_docker_arm64 (1 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown
KVM_Linux (1 failed) TestAddons/serial/GCPAuth/PullSecret(gopogh) Unknown

Besides the following environments also have failed tests:

To see the flake rates of all tests by environment, click here.

@RamBITS-AI
Copy link
Author

RamBITS-AI commented Oct 5, 2024

Hi @spowelljr,

Have updated the AFTER screenshots for the requested change.

- operator: Exists
effect: NoExecute
- operator: Exists
effect: NoSchedule
Copy link
Member

Choose a reason for hiding this comment

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

Curious where you got these YAML changes from

Copy link
Author

@RamBITS-AI RamBITS-AI Oct 7, 2024

Choose a reason for hiding this comment

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

From here, @spowelljr :

- operator: "Exists"
effect: "NoExecute"
- operator: "Exists"
effect: "NoSchedule"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advice user to use --gpus instead of gpu-addon on docker driver
5 participants