-
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
WIP: Add warn about old driver version (hyperkit, kvm) #4681
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RA489 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 |
"OLD_HYPERKIT_VERSION": { | ||
Regexp: re(`Too old hyperkit version found`), | ||
Advice: "too old hyperkit version. Jump forward to new valid hyperkit version as a workaround.", | ||
Issues: []int{4658}, |
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.
Add URL to documentation on how to upgrade.
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.
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.
Done!
@@ -119,6 +124,11 @@ var vmProblems = map[string]match{ | |||
URL: "http://mikko.repolainen.fi/documents/virtualization-with-kvm", | |||
Issues: []int{2991}, | |||
}, | |||
"OLD_KVM_VERSION": { | |||
Regexp: re(`Too old KVM version found`), | |||
Advice: "too old KVM version. Jump forward to new valid KVM version as a workaround.", |
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.
Add URL to documentation on how to upgrade.
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.
@josedonizetti done!
@RA489 I added two comments, but I don't understand how this fixes the issue. For me, the problem package would display a message based on an existing error that matches the regex. But I never saw those drivers message before |
pkg/minikube/problem/err_map.go
Outdated
@@ -36,6 +36,11 @@ var vmProblems = map[string]match{ | |||
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver", | |||
Issues: []int{1926, 4206}, | |||
}, | |||
"OLD_HYPERKIT_VERSION": { | |||
Regexp: re(`Too old hyperkit version found`), |
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.
Make sure this regexp matches the exit error thrown at head - #4676 introduced some changes.
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.
Done!
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.
@RA489 I still fail to see which minikube messages are those regexp matching. If you can show in the code, or maybe the output of minikube would help a lot clarify it. Thank you!
Because considering the latest changes to minikube, I think those regexes should match the message here: https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/start.go#L945
"OLD_HYPERKIT_VERSION": { | ||
Regexp: re(`Add warn about old driver version (hyperkit, kvm)`), | ||
Advice: "Too old hyperkit version. Jump forward to new valid hyperkit version as a workaround.", | ||
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md" |
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.
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md" | |
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-upgrade", |
There's a specific link for hyperkit upgrade. Also missing a comma at the end.
"OLD_KVM_VERSION": { | ||
Regexp: re(`Too old KVM version found`), | ||
Advice: "too old KVM version. Jump forward to new valid KVM version as a workaround.", | ||
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md" |
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.
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md" | |
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-upgrade", |
There's a specific link for kvm upgrade. Also missing a comma at the end.
@@ -36,6 +36,12 @@ var vmProblems = map[string]match{ | |||
URL: "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver", | |||
Issues: []int{1926, 4206}, | |||
}, | |||
"OLD_HYPERKIT_VERSION": { | |||
Regexp: re(`Add warn about old driver version (hyperkit, kvm)`), |
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.
Which message is this regexp matching? Do you have an example of where this message is displayed to the user?
@@ -119,6 +125,12 @@ var vmProblems = map[string]match{ | |||
URL: "http://mikko.repolainen.fi/documents/virtualization-with-kvm", | |||
Issues: []int{2991}, | |||
}, | |||
"OLD_KVM_VERSION": { | |||
Regexp: re(`Too old KVM version found`), |
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.
Which message is this regexp matching? Do you have an example of where this message is displayed to the user?
Closing in preference to #4691 |
Add warn about old driver version (hyperkit, kvm)
fixes #4658