Azure / aksArc

# Welcome to the Azure Kubernetes Service enabled by Azure Arc (AKS Arc) repo This is where the AKS Arc team will track features and issues with AKS Arc. We will monitor this repo in order to engage with our community and discuss questions, customer scenarios, or feature requests. Checkout our projects tab to see the roadmap for AKS Arc!
MIT License
111 stars 45 forks source link

[BUG] Get-AksHciCluster error, #66

Closed dmc-tech closed 3 years ago

dmc-tech commented 3 years ago

Describe the bug On a cluster deployed using the December 2020 preview bits via WAC, when running Get-AksHciCluster on a HCI node g throws an error that c:\wssd\0.9.4.4\kubeconfig-clustergroup-management cannot be found.

To Reproduce Steps to reproduce the behavior:

  1. On the HCI Node that the AKS HCI deployment was performed, run get-akshciclusters
  2. Error is produced:

C:\Program Files\AksHci\kubectl.exe --kubeconfig=C:\wssd\0.9.4.4\kubeconfig-clustergroup-management get akshciclusters -o json failed to execute [error: CreateFile C:\wssd\0.9.4.4\kubeconfig-clustergroup-management: The system cannot find the file specified.] At C:\Program Files\WindowsPowerShell\Modules\akshci\0.2.12\Common.psm1:1166 char:9

  • throw "$command $arguments failed to execute [$err]"
  • 
    + CategoryInfo          : OperationStopped: (C:\Program File...ile specified.]:String) [], RuntimeException
    + FullyQualifiedErrorId : C:\Program Files\AksHci\kubectl.exe --kubeconfig=C:\wssd\0.9.4.4\kubeconfig-clustergroup-management get akshciclusters -o json fai
    led to execute [error: CreateFile C:\wssd\0.9.4.4\kubeconfig-clustergroup-management: The system cannot find the file specified.]

Expected behavior A list of the AKS Clusters is returned.

To fix this immediate issue, I copied C:\ClusterStorage\Volume01\AksHCI\kubeconfig-mgmt to C:\wssd\0.9.4.4\kubeconfig-clustergroup-management and it worked as expected.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Collect log files

mattatmsft commented 3 years ago

Hi Danny -

Was this a clean install on a fresh set of servers? The path looks old to me and I'm wondering if it picked up a previous install. Also, can you verify the WAC Extension version for me please? This will be in the Installed Extensions list, and my expectation is version 0.420.0.

dmc-tech commented 3 years ago

Matt - I haven't re-deployed my HCI cluster. I removed the previous AKS clusters and added the new PoSh modules to those hosts. WAC version is 0.420.0

abhilashaagarwala commented 3 years ago

Hey @dmc-tech! Can you try running Set-AksHciConfig after you finish deploying on WAC and before you run Get-AksHciCluster on PowerShell? Do let me know if that fixed the issue for you!

abhilashaagarwala commented 3 years ago

@dmc-tech Can you explain how you removed the previous AKS clusters? I think it may not have been a clean uninstall.

abhilashaagarwala commented 3 years ago

@dmc-tech can I close this bug if it is not repro-ing with the latest release (Feb update)?

abhilashaagarwala commented 3 years ago

Closing this bug due to inactivity. Please reopen if this persists in AKS-HCI GA build - https://github.com/Azure/aks-hci/releases/tag/AKS-HCI-2105