Mirantis / launchpad

Other
27 stars 45 forks source link

Error\">Get-NetIPAddress : No matching MSFT_NetIPAddress objects found by CIM query - deploying onto Windows Workers #80

Open jas-atwal opened 3 years ago

jas-atwal commented 3 years ago

After deploying azure infrastructure successfully though the terraform example (Linux master and Windows Worker) as per the recent PR by Steven Richard, the Launchpad yaml info is successfully created. However when you run launchpad apply to deploy MCR and MKE the deployment fails with the following error:

INFO [winrm] 20.108.20.83:5986: mirantis container runtime not installed ERRO [winrm] 20.108.20.83:5986: failed to resolve internal address: command failed (received output to stderr on windows) INFO See /Users/jas.atwal/.mirantis-launchpad/cluster/jas-mke-cluster/apply.log for more logs
FATA failed on 1 hosts:

The apply.log states this:

time="16 Jul 21 08:10 BST" level=debug msg="[winrm] 20.108.20.83:5986: executing powershell.exe -NonInteractive -ExecutionPolicy Bypass -NoProfile -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQAnADsAIAAoAEcAZQB0AC0ATgBlAHQASQBQAEEAZABkAHIAZQBzAHMAIAAtAEEAZABkAHIAZQBzAHMARgBhAG0AaQBsAHkAIABJAFAAdgA0ACAALQBJAG4AdABlAHIAZgBhAGMAZQBBAGwAaQBhAHMAIAAnAEUAdABoAGUAcgBuAGUAdAAnACkALgBJAFAAQQBkAGQAcgBlAHMAcwA=" time="16 Jul 21 08:10 BST" level=debug msg="[winrm] 20.108.20.83:5986: (stderr) #< CLIXML" time="16 Jul 21 08:10 BST" level=debug msg="[winrm] 20.108.20.83:5986: (stderr) <Objs Version=\"1.1.0.1\" xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><S S=\"Error\">Get-NetIPAddress : No matching MSFT_NetIPAddress objects found by CIM query for instances of the _x000D_x000A<S S=\"Error\">ROOT/StandardCimv2/MSFT_NetIPAddress class on the CIM server: SELECT FROM MSFT_NetIPAddress WHERE ((InterfaceAlias _x000Dx000A_<S S=\"Error\">LIKE 'Ethernet')) AND ((AddressFamily = 2)). Verify query parameters and retry._x000Dx000A_<S S=\"Error\">At line:1 char:42_x000Dx000A_<S S=\"Error\">+ ... Continue'; (Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias 'Eth ..._x000Dx000A_<S S=\"Error\">+ ~~~~~~~~~~~~~_x000Dx000A_<S S=\"Error\"> + CategoryInfo : ObjectNotFound: (MSFT_NetIPAddress:String) [Get-NetIPAddress], CimJobException_x000D_x000A<S S=\"Error\"> + FullyQualifiedErrorId : CmdletizationQuery_NotFound,Get-NetIPAddress_x000Dx000A_<S S=\"Error\"> _x000D_x000A" time="16 Jul 21 08:10 BST" level=trace msg="[winrm] 20.108.20.83:5986: trying vEthernet (Ethernet) as a private interface alias" time="16 Jul 21 08:10 BST" level=debug msg="[winrm] 20.108.20.83:5986: executing powershell.exe -NonInteractive -ExecutionPolicy Bypass -NoProfile -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQAnADsAIAAoAEcAZQB0AC0ATgBlAHQASQBQAEEAZABkAHIAZQBzAHMAIAAtAEEAZABkAHIAZQBzAHMARgBhAG0AaQBsAHkAIABJAFAAdgA0ACAALQBJAG4AdABlAHIAZgBhAGMAZQBBAGwAaQBhAHMAIAAnAHYARQB0AGgAZQByAG4AZQB0ACAAKABFAHQAaABlAHIAbgBlAHQAKQAnACkALgBJAFAAQQBkAGQAcgBlAHMAcwA=" time="16 Jul 21 08:11 BST" level=debug msg="[winrm] 20.108.20.83:5986: (stderr) #< CLIXML" time="16 Jul 21 08:11 BST" level=debug msg="[winrm] 20.108.20.83:5986: (stderr) <Objs Version=\"1.1.0.1\" xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><S S=\"Error\">Get-NetIPAddress : No matching MSFT_NetIPAddress objects found by CIM query for instances of the _x000D_x000A<S S=\"Error\">ROOT/StandardCimv2/MSFT_NetIPAddress class on the CIM server: SELECT FROM MSFT_NetIPAddress WHERE ((InterfaceAlias _x000Dx000A_<S S=\"Error\">LIKE 'vEthernet (Ethernet)')) AND ((AddressFamily = 2)). Verify query parameters and retry._x000Dx000A_<S S=\"Error\">At line:1 char:42_x000Dx000A_<S S=\"Error\">+ ... Continue'; (Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias 'vEt ..._x000Dx000A_<S S=\"Error\">+ ~~~~~~~~~~~~~_x000Dx000A_<S S=\"Error\"> + CategoryInfo : ObjectNotFound: (MSFT_NetIPAddress:String) [Get-NetIPAddress], CimJobException_x000D_x000A<S S=\"Error\"> + FullyQualifiedErrorId : CmdletizationQuery_NotFound,Get-NetIPAddress_x000Dx000A_<S S=\"Error\"> _x000D_x000A" time="16 Jul 21 08:11 BST" level=error msg="[winrm] 20.108.20.83:5986: failed to resolve internal address: command failed (received output to stderr on windows)" time="16 Jul 21 08:11 BST" level=debug msg="phase 'Gather Facts' took 0s" time="16 Jul 21 08:11 BST" level=debug msg="tracking analytics event 'Gather Facts'" time="16 Jul 21 08:11 BST" level=debug msg="tracking analytics event 'Detect host operating systems'" time="16 Jul 21 08:11 BST" level=debug msg="tracking analytics event 'Check For Upgrades'" time="16 Jul 21 08:11 BST" level=debug msg="tracking analytics event 'Cluster Apply Failed'" time="16 Jul 21 08:11 BST" level=info msg="See /Users/jas.atwal/.mirantis-launchpad/cluster/jas-mke-cluster/apply.log for more logs " time="16 Jul 21 08:11 BST" level=fatal msg="failed on 1 hosts:\n - [winrm] 20.108.20.83:5986: [winrm] 20.108.20.83:5986: failed to resolve internal address: command failed (received output to stderr on windows)"

Steps to reproduce:

  1. Successfully deploy a master node and a windows worker node using the azure terraform example based on the PR request by Steven Richards
  2. Create the corresponding launchpad.yml file and run launchpad apply
  3. Notice the above error, which is a blocker and stopping the successful deployment of MKE on Azure.

Versions: Terraform v1.0.2

on darwin_amd64

  • provider registry.terraform.io/hashicorp/azurerm v2.32.0
  • provider registry.terraform.io/hashicorp/local v2.0.0
  • provider registry.terraform.io/hashicorp/random v3.0.0
  • provider registry.terraform.io/hashicorp/tls v3.0.0

terraform providers

Providers required by configuration:

├── provider[registry.terraform.io/hashicorp/tls] 3.0.0 ├── provider[registry.terraform.io/hashicorp/azurerm] 2.32.0 ├── provider[registry.terraform.io/hashicorp/local] 2.0.0 ├── provider[registry.terraform.io/hashicorp/random] 3.0.0

Launchpad

version: 1.3.0 commit: 706d2b4

MCR

v20.10.0

MKE

v3.4.3

Could this be related to this kubernetes issue?

kke commented 3 years ago

According to slack this was resolved by changing the private interface name in config?