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

Fix: "Your cgroup does not allow setting memory" #14115

Merged
merged 3 commits into from
May 11, 2022

Conversation

kadern0
Copy link
Contributor

@kadern0 kadern0 commented May 8, 2022

Fixes issue #12842

This fix seems to be working, at least for me and a few others (please see the discussion within the issue URL). So far Ubuntu, Arch and Pop!_OS are working but additional testing would be good.

Signed-off-by: Pablo Caderno <kaderno@gmail.com>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 8, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @kadern0. 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/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kadern0
To complete the pull request process, please assign prezha after the PR has been reviewed.
You can assign the PR to them by writing /assign @prezha in a comment when ready.

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

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 8, 2022
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 9, 2022
@kadern0
Copy link
Contributor Author

kadern0 commented May 9, 2022

I cannot find anywhere this function is being used func IsCgroup2UnifiedMode(). Maybe it could be removed.

@medyagh
Copy link
Member

medyagh commented May 10, 2022

/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 May 10, 2022
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14115) |
+----------------+----------+---------------------+
| minikube start | 52.2s    | 52.0s               |
| enable ingress | 30.5s    | 28.6s               |
+----------------+----------+---------------------+

Times for minikube ingress: 31.1s 30.1s 28.6s 31.0s 31.6s
Times for minikube (PR 14115) ingress: 26.1s 29.1s 30.1s 29.1s 28.6s

Times for minikube start: 52.6s 51.7s 52.0s 53.1s 51.7s
Times for minikube (PR 14115) start: 52.0s 52.6s 50.5s 52.7s 52.4s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14115) |
+----------------+----------+---------------------+
| minikube start | 25.4s    | 25.1s               |
| enable ingress | 22.3s    | 23.4s               |
+----------------+----------+---------------------+

Times for minikube start: 25.4s 26.6s 24.9s 24.8s 25.3s
Times for minikube (PR 14115) start: 24.8s 24.8s 25.3s 24.9s 25.6s

Times for minikube ingress: 22.4s 21.4s 23.0s 22.9s 21.9s
Times for minikube (PR 14115) ingress: 21.9s 22.9s 23.9s 25.9s 22.4s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 14115) |
+----------------+----------+---------------------+
| minikube start | 41.8s    | 41.1s               |
| enable ingress | 20.6s    | 21.5s               |
+----------------+----------+---------------------+

Times for minikube start: 40.0s 44.1s 43.8s 40.7s 40.6s
Times for minikube (PR 14115) start: 39.8s 40.2s 44.6s 40.5s 40.3s

Times for minikube ingress: 22.5s 17.9s 17.9s 22.4s 22.5s
Times for minikube (PR 14115) ingress: 22.4s 22.4s 18.4s 22.4s 22.0s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_Windows TestNetworkPlugins/group/kubenet/NetCatPod (gopogh) 0.00 (chart)
Docker_Linux_containerd TestNoKubernetes/serial/ProfileList (gopogh) 3.81 (chart)
Docker_Windows TestFunctional/parallel/TunnelCmd/serial/WaitService/IngressIP (gopogh) 11.11 (chart)
Docker_Linux_containerd TestStartStop/group/old-k8s-version/serial/DeployApp (gopogh) 29.49 (chart)
Docker_Linux_containerd TestStartStop/group/old-k8s-version/serial/FirstStart (gopogh) 29.49 (chart)
Docker_Linux_containerd TestStartStop/group/old-k8s-version/serial/SecondStart (gopogh) 30.77 (chart)
Docker_Linux_containerd TestStartStop/group/old-k8s-version/serial/UserAppExistsAfterStop (gopogh) 34.15 (chart)
Docker_Linux_containerd TestStartStop/group/embed-certs/serial/FirstStart (gopogh) 42.31 (chart)
Docker_Linux_containerd TestStartStop/group/embed-certs/serial/SecondStart (gopogh) 42.31 (chart)
Docker_Linux_containerd TestStartStop/group/embed-certs/serial/DeployApp (gopogh) 43.04 (chart)
Docker_Linux_containerd TestStartStop/group/embed-certs/serial/UserAppExistsAfterStop (gopogh) 43.75 (chart)
Docker_macOS TestNetworkPlugins/group/kindnet/DNS (gopogh) 48.00 (chart)
Docker_Windows TestNetworkPlugins/group/auto/Start (gopogh) 49.52 (chart)
Docker_Windows TestPause/serial/Start (gopogh) 51.43 (chart)
Docker_Linux_containerd TestNetworkPlugins/group/kindnet/Start (gopogh) 54.32 (chart)
Docker_Linux_containerd TestStartStop/group/default-k8s-different-port/serial/UserAppExistsAfterStop (gopogh) 55.13 (chart)
Docker_Windows TestNetworkPlugins/group/enable-default-cni/Start (gopogh) 56.19 (chart)
Docker_Linux_containerd TestStartStop/group/default-k8s-different-port/serial/DeployApp (gopogh) 56.25 (chart)
Docker_Linux_containerd TestStartStop/group/default-k8s-different-port/serial/FirstStart (gopogh) 56.25 (chart)
Docker_Linux_containerd TestStartStop/group/default-k8s-different-port/serial/SecondStart (gopogh) 56.79 (chart)
Docker_Windows TestNoKubernetes/serial/Start (gopogh) 58.25 (chart)
Docker_Windows TestKubernetesUpgrade (gopogh) 65.71 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 65.71 (chart)
Docker_macOS TestNetworkPlugins/group/calico/Start (gopogh) 66.67 (chart)
Docker_macOS TestNetworkPlugins/group/kubenet/DNS (gopogh) 67.50 (chart)
Docker_Linux_containerd TestNetworkPlugins/group/calico/Start (gopogh) 71.60 (chart)
Docker_macOS TestNetworkPlugins/group/bridge/DNS (gopogh) 74.51 (chart)
Docker_Linux_containerd TestNetworkPlugins/group/enable-default-cni/DNS (gopogh) 76.47 (chart)
Docker_macOS TestNetworkPlugins/group/enable-default-cni/DNS (gopogh) 77.59 (chart)
Docker_Linux_containerd TestNetworkPlugins/group/bridge/DNS (gopogh) 79.07 (chart)
More tests... Continued...

Too many tests failed - See test logs for more details.

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

@medyagh medyagh merged commit 484c27d into kubernetes:master May 11, 2022
@kadern0
Copy link
Contributor Author

kadern0 commented May 12, 2022

@medyagh , thanks for merging. I think #12842 can be closed. What do you think about removing the function IsCgroup2UnifiedMode()?

@spowelljr
Copy link
Member

Hi @kadern0, if that function is not used anywhere then feel free to create a PR removing it. I can close #12842, just as a heads up for next time, if you put Fixes #12842 instead of Fixes issue #12842 it will auto close that issue on PR merge.

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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants