Azure / Azure/aksArc

[BUG] MOC tests failures do not give an error message with a recommendation

Open
#297 0 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
PowerShell
Stars
118
Forks
63
PR merge metrics
No merged PRs in 30d

Description

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):**
- OS: azure stack hci 21H2
- AKS-HCI Version (1.1.60)

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing Set-AksHciConfig with the listed Azure Stack HCI 21H2 setup and commands, then trace how its MOC test failures are reported. The issue is done when those failures provide an actionable error message with recommended recovery steps, including cases where Get-AksHciLogs cannot run.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.