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

minikube fails to suggest rootless when sudo is missing #17245

Closed
ambasta opened this issue Sep 14, 2023 · 9 comments
Closed

minikube fails to suggest rootless when sudo is missing #17245

ambasta opened this issue Sep 14, 2023 · 9 comments
Labels
co/podman-driver podman driver issues kind/improvement Categorizes issue or PR as related to improving upon a current feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@ambasta
Copy link

ambasta commented Sep 14, 2023

What Happened?

On attempting to start minikube, if sudo is not installed, minikube exits with incorrect information and fails to suggest rootless.

💡  Suggestion: Add your user to the 'sudoers' file: 'ambasta ALL=(ALL) NOPASSWD: /usr/bin/podman' , or run 'minikube config set rootless true'

Attach the log file

$ minikube start --driver podman --container-runtime cri-o
😄  minikube v1.30.1 on Gentoo 2.14
✨  Using the podman driver based on user configuration

💣  Exiting due to PROVIDER_PODMAN_NOT_RUNNING: exec: "sudo": executable file not found in $PATH
📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/podman/

Operating System

Other

Driver

Podman

@rmsilva1973
Copy link
Contributor

rmsilva1973 commented Sep 18, 2023

@ambasta The output message specifically says "or run 'minikube config set rootless true'". What's missing here?

@rmsilva1973
Copy link
Contributor

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Sep 18, 2023
@ambasta
Copy link
Author

ambasta commented Sep 18, 2023

@rmsilva1973 The actual output is

$ minikube start --driver podman --container-runtime cri-o
😄  minikube v1.30.1 on Gentoo 2.14
✨  Using the podman driver based on user configuration

💣  Exiting due to PROVIDER_PODMAN_NOT_RUNNING: exec: "sudo": executable file not found in $PATH
📘  Documentation: https://minikube.sigs.k8s.io/docs/drivers/podman/

which doesn't suggest setting rootless at all

@rmsilva1973
Copy link
Contributor

I think it could suggest using rootless. But I don't think it's reasonable to instruct the user to change sudoers since the message says it couldn't even find sudo executable. It looks more reasonable a message like this

💡 Suggestion: Add "sudo" to your $PATH (and configure sudoers), or run 'minikube config set rootless true'

@ambasta
Copy link
Author

ambasta commented Sep 18, 2023

That would be fine as well. I just started using minikube, and I believe as a beginner, the rootless sugesstion would have saved a ton of time, specially on bespoke distributions where sudo isn't necessarily installed

@ambasta ambasta closed this as completed Sep 18, 2023
@ambasta ambasta reopened this Sep 18, 2023
@afbjorklund afbjorklund added co/podman-driver podman driver issues kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. and removed kind/support Categorizes issue or PR as a support question. labels Sep 19, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 28, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 27, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

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 k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/podman-driver podman driver issues kind/improvement Categorizes issue or PR as related to improving upon a current feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

5 participants