In general, how should one debug a failure related to CmdletizationQuery_NotFound
messages, and why would the MSFT_NetRoute based queries register such an error?
Details
Specifically, my Kubernetes CNI provider (antrea) is posting an error message related to MSFT_NetRoute
when it starts up, because it can't succesfully run a powershell query necessary for bootstrapping itself. The error message has a suspicious string, which:
- Might be related to powershell version (I disconfirmed later in this post, but its a reasonable hypothesis)
- Im also considering that maybe this error came from external things i havent installed...
- Finally, without fully understanding the nature of cmdletizationQuery error messages, its reasonable to assume this is related to a lower level networking setup issue.
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound,Get-NetRoute
The above snippet of this message, highlights the Get-NetRoute
Related error which occurs below, which is puzzling because it seems to be indicating that Get-NetRoute
is not a valid query to run. But https://docs.microsoft.com/en-us/powershell/module/nettcpip/get-netroute?view=windowsserver2019-ps seems to imply thet Get-NetRoute is available by default in powershell.
The error message
ROOT/StandardCimv2/MSFT_NetRoute class on the CIM server: SELECT * FROM MSFT_NetRoute WHERE ((DestinationPrefix LIKE
'0.0.0.0/0')) AND ((InterfaceIndex = 26)). Verify query parameters and retry.
At line:1 char:3
+ $(Get-NetRoute -InterfaceIndex 26 -DestinationPrefix 0.0.0.0/0 ).Next ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_NetRoute:String) [Get-NetRoute], CimJobException
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound,Get-NetRoute
Powershell version
The powershell version on this machine is seemlingy pretty up to date... (5.1 i think is normal on windows server 2019)...
Name Value
---- -----
PSVersion 5.1.17763.1852
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1852
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Note: I've tested this in similar versions of windows server 2019 with a similar 5.1.x powershell version (5.1.17763.1490) and not seen this failure. So,
Questions
- is there something i need to do to make
Get-NetRoute
work properly on my machines? - is this related to something else (i.e. the way network interfaces are configured on the individual VM) ? Note that this is a VirtualBox VM, so if there was a issue with bridged or NAT networking, I woudln't be totally shocked.