Azure / aksArc

# Welcome to the Azure Kubernetes Service on Azure Stack HCI repo This is where the AKS-HCI team will track features and issues with AKS-HCI. 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-HCI!
MIT License
109 stars 45 forks source link

[BUG] Kubernetes version mismatch cause AKS Hybrid cluster deployment failure #268

Closed HassanAlmanasrah closed 1 year ago

HassanAlmanasrah commented 1 year ago

Describe the bug When we run install-akshci, the Linux-K8s-1.23.8-v20220928 image version is downloaded automatically, which going to be used in K8S cluster deployments. https://learn.microsoft.com/en-us/azure/aks/hybrid/kubernetes-walkthrough-powershell

once the custom location and vnet are created, and we are deploying cluster from the Azure portal https://learn.microsoft.com/en-us/azure/aks/hybrid/create-aks-hybrid-preview-portal the Kubernetes version dropdown box is not changeable and hardcoded with version v1.21.9. adding this version

image

at the end of https://learn.microsoft.com/en-us/azure/aks/hybrid/create-aks-hybrid-preview-networks?tabs=staticip%2Clinux-vhd#download-the-kubernetes-vhd-file we should add Kubernetes image, however the image seems doesn't exist with below error

VERBOSE: [10/26/2022 01:12:46] [Kva] Applying configuration Unable to locate a image release with Version: 1.0.14.10929 OS: Linux K8sVersion: 1.21.9. At C:\Program Files\WindowsPowerShell\Modules\Kva\1.0.36\Common.psm1:4259 char:5

any deployment for K8S cluster from Azure portal or CLI (define version 1.23.8) is not succeeded. understand that we have known issue that only version can be deployed is 1.21.9 https://learn.microsoft.com/en-us/azure/aks/hybrid/troubleshoot-aks-hybrid-preview#the-infrastructure-administrator-didnt-download-the-kubernetes-vhd-image-using-add-kvagalleryimage , however we are unable to add this image to HCI using the command Add-KvaGalleryImage -kubernetesVersion 1.21.9

To Reproduce Steps to reproduce the behavior:

  1. install AKS on HCI
  2. Install ARC Resource Bridge
  3. create custom location and vnet
  4. Deploy K8S cluster from portal

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Collect log files

JohnGageanu commented 1 year ago

Can you please update the progress of this bug. It is still there. Thank you.

HassanAlmanasrah commented 1 year ago

managed to redeploy AKS with older version (August ) as per highlighted in known issues https://learn.microsoft.com/en-us/azure/aks/hybrid/troubleshoot-aks-hybrid-preview#you-are-not-running-the-august-release-of-aks-host-management-cluster

and tested the deployment of cluster from Azure portal, which created control plan and Load balancer VMs only, and the workers were not created. I will do more testing and raise new issue for that . I think this issue can be closed. thanks.