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] MOC tests failures do not give an error message with a recommendation #297

Open shobhit-kumar-code opened 1 year ago

shobhit-kumar-code commented 1 year ago

When I run Set-AksHciConfig, I get an error message that says:

image

As per, https://learn.microsoft.com/en-us/azure/aks/hybrid/known-issues-installation, a cluster resource has failed, but everything looks good at my end.

image

To Reproduce Steps to reproduce the behavior: I ran the following commands on my Azure Stack HCI Setup:

New-Cluster -Name $AzHciClusterName -NOSTORAGE -StaticAddress $MgmtIp
Enable-ClusterStorageSpacesDirect -CacheState Disabled
New-Volume -FriendlyName $ClusterVolumeName -Size 300GB -ProvisioningType Thin -NumberOfDataCopies 1
Register-AzStackHCI  -SubscriptionId $SubscriptionId -ComputerName $ComputerName -Region $Region -ResourceGroupName $ResourceGroupName -ArmAccessToken $token.Token -AccountId $token.UserId
Add-NetIntent -Name Mgmt -Compute -Management -ClusterName $AzHciClusterName -AdapterName "PCIe Slot 1 Port 4"
$vnet1 = New-AksHciNetworkSetting -name vnet1 -vSwitchName "ConvergedSwitch(mgmt)" -k8sNodeIpPoolStart "10.232.172.90" -k8sNodeIpPoolEnd "10.232.172.96" -vipPoolStart "10.232.172.230" -vipPoolEnd "10.232.172.233" -ipAddressPrefix "10.232.172.0/22" -gateway "10.232.172.1" -dnsServers "10.232.172.10"
Set-AksHciConfig -imageDir c:\clusterstorage\hpe-2-hci-vol\image -workingDir c:\ClusterStorage\hpe-2-hci-vol\working -cloudConfigLocation c:\clusterstorage\hpe-2-hci-vol\config -vnet $vnet1 -cloudservicecidr "10.232.172.0/22"

Expected behavior The tests should pass or give me an error message with some steps to try

Environment (please complete the following information):

Collect log files Get-AksHciLogs doesn;t work as there is no AKS up

image