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] Deploying an AKS cluster via Install-AksHci PowerShell Cmdlet throws an error #52

Closed dmc-tech closed 3 years ago

dmc-tech commented 3 years ago

Describe the bug Deploying an AKS cluster via Install-AksHci PowerShell Cmdlet throws an error:

Error: open C:\ClusterStorage\Volume01\wssd\kubeconfig-mgmt: The system cannot find the path specified. C:\Program Files\AksHci\kvactl.exe create --configfile C:\wssd\yaml\appliance.yaml --outfile C:\ClusterStorage\Volume01\wssd\kubeconfig-mgmt failed to execute [] At C:\Program Files\WindowsPowerShell\Modules\akshci\0.2.8\Common.psm1:1248 char:9

To Reproduce Steps to reproduce the behavior:

  1. Import AKsHCI Module from Oct 2020 release on one of the HCI Nodes
  2. Run Initialize-AksHciNode
  3. Set-AksHciConfig -deploymentType MultiNode -wssdImageDir 'C:\ClusterStorage\Volume01\wssdImages' -cloudConfigLocation C:\ClusterStorage\Volume01\aks-clus01-config -vnetName Computeswitch
  4. Install-AksHCI
  5. Error is thrown
  6. Run & 'C:\Program Files\AksHci\kvactl.exe' create --configfile C:\wssd\yaml\appliance.yaml --outfile C:\ClusterStorage\Volume01\wssd\kubeconfig-mgmt

10-27-2020 06:18:35 [Status] azurestackhciProvider: RetrieveKubeconfig 10-27-2020 06:18:35 [Status] The appliance kubeconfig is already present. Resuming an existing deployment... Error: open C:\ClusterStorage\Volume01\wssd\kubeconfig-mgmt: The system cannot find the path specified.

  1. create the WSSD directory and run the command in step 6 again.
    10-27-2020 06:19:25 [Status] azurestackhciProvider: RetrieveKubeconfig 10-27-2020 06:19:25 [Status] The appliance kubeconfig is already present. Resuming an existing deployment... 10-27-2020 06:19:25 [Status] Waiting for API server... 10-27-2020 06:19:25 [Status] Waiting for pod 'Cloud Operator' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Cluster API core' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Bootstrap kubeadm' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Control Plane kubeadm' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Cluster API core Webhook' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Bootstrap kubeadm Webhook' to be ready... 10-27-2020 06:19:25 [Status] Waiting for pod 'Control Plane kubeadm Webhook' to be ready... 10-27-2020 06:19:25 [Status] azurestackhciProvider: PerformPostOperations 10-27-2020 06:19:25 [Status] azurestackhciProvider: Waiting for pod 'AzureStackHCI Provider' to be ready... 10-27-2020 06:19:25 [Status] azurestackhciProvider: Waiting for pod 'AzureStackHCI Provider Webhook' to be ready...

Expected behavior I would expect that if the WSSD dir is required on the CSV, then it is created, or the config is placed into the cloudconfiglocation directory specified

Screenshots image

image

image

Environment (please complete the following information):

Additional context to fix this, I uninstalled-aksHCI, set the config , created the WSSD directory on the CSV and ran the install again

Collect log files

madhanrm commented 3 years ago

Can you please try this using the December release bits following the documentation.

abhilashaagarwala commented 3 years ago

@dmc-tech Can you close this bug if its not repro-ing in the latest release (ie Feb update)?

abhilashaagarwala commented 3 years ago

Closing this bug for now after talking to @dmc-tech. Can reopen if needed.