-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Sorts the outputs and also prints out alternative driver info when no driver is picked. #10394
Conversation
Hi @lxzhang000. 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 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lxzhang000 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 |
Can one of the admins verify this patch? |
@lxzhang000 please check unit test run |
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 can not verify if this PR is brekaing a logic that @tstromberg intended or not (classifiying an unhealthy driver as a priority of its own)
I refer judgment to @tstromberg
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.
Overall, things seem right to me. Tested using:
touch /tmp/podman && chmod 755 /tmp/podman && env PATH=/tmp ./out/minikube start
Output:
😄 minikube v1.17.1 on Debian rodete
👎 Unable to pick a default driver. Here is what was considered, in preference order:
▪ docker: Not installed: exec: "docker": executable file not found in $PATH
▪ kvm2: Not installed: exec: "virsh": executable file not found in $PATH
▪ vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
▪ virtualbox: Not installed: unable to find VBoxManage in $PATH
▪ ssh: Rejected due to low priority
▪ none: Not installed: exec: "iptables": executable file not found in $PATH
▪ podman: Not healthy: exec: "sudo": executable file not found in $PATH
❌ Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/
The only request is to improve the "Rejected due to low priority" text.
For podman it is true that it is still experimental, but hope to change that for next release. It should be on par with Docker. See #10237 |
Hi, @medyagh I have updated the failed unit tests. FYI, I could pass the uni test locally even before the modification and the reason is that if two drivers have the same priority, their order is not determined. I suppose the root cause is the traversal order of go map is not determinded: minikube/pkg/minikube/registry/registry.go Line 158 in 47da1ff
Looks like for display it doesn't care the order if drivers have the same priority, I use different priorites for unit test. |
@lxzhang000: PR needs rebase. 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. |
fixes #10009
Looks like "Unhealthy" prioriy level is now only used for driver selection, and I think it is not necessary since we can get the unhealthy info to filter the driver out from
State.Healthy
.Another problem associated with this one is that the current alternatives is not printed out when failed.
Before:
After: