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 overwriting err for OCI "minikube start" #14506

Merged

Conversation

criztovyl
Copy link
Contributor

fixes #14424

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 4, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @criztovyl!

It looks like this is your first PR to kubernetes/minikube 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/minikube has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @criztovyl. 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 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 Jul 4, 2022
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

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 @criztovyl, thanks for the PR! Looking at this I see a cleaner way to resolve this issue.

Line 402, if the if is moved to the front of the line like how line 400 is, that will keep the scope of the error within that block, leaving the error from StartContainer untouched

Could you make that change and revert the variable names to what they were, thanks!

@criztovyl
Copy link
Contributor Author

Thx, yes, I'll look into that :)

kubernetes#14424 podman start minikube returned with exit code 125
@criztovyl criztovyl force-pushed the criztovyl/fix-oci-start-error-shadow branch from 913868c to 444f21f Compare July 10, 2022 11:44
@criztovyl
Copy link
Contributor Author

I could verify locally minikube now reports an start-up error properly:

$ ./out/minikube start                                                                                    
[...]
🔄  Restarting existing podman container for "minikube" ...
🤦  StartHost failed, but will try again: driver start: start: podman start minikube: exit status 125
stdout:  
                                                                               
stderr:                                                                                                                                                       
Error: unable to start container "531125149ee6386faca554d0389b0383ea7e97021776b9401e30459f9dcc76aa": error stat'ing file `/dev/bus/usb/003/003`: No such file or directory: OCI not found

🔄  Restarting existing podman container for "minikube" ...         
😿  Failed to start podman container. Running "minikube delete" may fix it: driver start: start: podman start minikube: exit status 125
stdout:                                        

stderr:                                      
Error: unable to start container "531125149ee6386faca554d0389b0383ea7e97021776b9401e30459f9dcc76aa": error stat'ing file `/dev/bus/usb/003/003`: No such file or directory: OCI not found
                                                                          
[...]

(that's containers/podman#4900, it's fixed upstream but not yet in my distro.)

@criztovyl criztovyl requested a review from spowelljr July 10, 2022 11:48
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.

Thanks for the PR!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: criztovyl, spowelljr

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 14, 2022
@spowelljr spowelljr merged commit 8177307 into kubernetes:master Jul 14, 2022
@criztovyl criztovyl deleted the criztovyl/fix-oci-start-error-shadow branch July 15, 2022 06:32
@criztovyl
Copy link
Contributor Author

criztovyl commented Jul 17, 2022

I hope I am not too impatient; when is the next release, containing this fix, planned? :)

@spowelljr
Copy link
Member

We're considering doing a point/patch release, if we do that it'll be included then. Otherwise it would be included with the next minor release with will in a month and a half or so.

@criztovyl
Copy link
Contributor Author

I see 1.26.1 was released with this fix, thank you!

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. 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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman start minikube returned with exit code 125
4 participants