-
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
Using Get-CmiInstance to detect Hyper-V availability #13596
Using Get-CmiInstance to detect Hyper-V availability #13596
Conversation
Can one of the admins verify this patch? |
@spowelljr review plz |
@@ -91,7 +91,7 @@ func status() registry.State { | |||
ctx, cancel := context.WithTimeout(context.Background(), 8*time.Second) | |||
defer cancel() | |||
|
|||
cmd := exec.CommandContext(ctx, path, "-NoProfile", "-NonInteractive", "@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent") | |||
cmd := exec.CommandContext(ctx, path, "-NoProfile", "-NonInteractive", "@(Get-CimInstance Win32_ComputerSystem).HypervisorPresent") |
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.
will this work on Old windows versions ?
how about we put the old way as Fail Over option ? if this fails lets try the old way (maybe someone with old windows) ?
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 think that will be a nice addition
Should add it and you can review the changes for further improvements ?
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.
Any computer running Windows 7 or greater and Server 2008 SP2 and greater can AND should use PSRemoting instead of WMI.
Cim
has been supported for a very long time so I don't think we have to worry too much about having a fail over option. But I'm not against it either.
49e2af6
to
c6e9b48
Compare
c6e9b48
to
91e08d3
Compare
91e08d3
to
d9c07c7
Compare
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 47.0s 44.7s 44.1s 44.9s 45.5s Times for minikube (PR 13596) ingress: 29.6s 26.1s 26.2s 31.6s 30.6s docker driver with docker runtime
Times for minikube start: 30.2s 26.6s 26.8s 26.1s 26.4s Times for minikube ingress: 22.9s 26.9s 24.4s 22.9s 26.4s docker driver with containerd runtime
Times for minikube start: 34.2s 45.2s 41.3s 46.1s 46.4s Times for minikube ingress: 20.9s 28.9s 33.9s 18.9s 28.9s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: NikhilSharmaWe, sharifelgamal 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 |
Replacing deprecated Get-Wmiobject with Get-CimInstance to detect Hyper-V availability.
Fixes #13571