Skip to content

Commit 857e0db

Browse files
authored
Fix multilb vm arg timeout (#125)
* fix carlm params * added vmss backup state file path to log * corrected recovery parameter sets * version bump * fix arg timeout, test template imrpovements * version bump
1 parent b693ee1 commit 857e0db

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

AzureBasicLoadBalancerUpgrade/module/AzureBasicLoadBalancerUpgrade/AzureBasicLoadBalancerUpgrade.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AzureBasicLoadBalancerUpgrade'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.4.11'
15+
ModuleVersion = '2.4.12'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -107,7 +107,7 @@
107107
# IconUri = ''
108108

109109
# ReleaseNotes of this module
110-
ReleaseNotes = 'Fix https://github.com/Azure/AzLoadBalancerMigration/issues/124'
110+
ReleaseNotes = 'Fix ARG timeout in multi-lb VM scenario validation'
111111

112112
# Prerelease string of this module
113113
# Prerelease = ''

AzureBasicLoadBalancerUpgrade/module/AzureBasicLoadBalancerUpgrade/modules/ValidateScenario/ValidateScenario.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,20 +659,20 @@ Function Test-SupportedMultiLBScenario {
659659
$timeoutStopwatch = [System.Diagnostics.Stopwatch]::StartNew()
660660
do {
661661
If (!$waitingForARG) {
662-
log -Message "[UpgradeVMPublicIP] Querying Resource Graph for availability sets of VMs in load balancers backend pools"
662+
log -Message "[Test-SupportedMultiLBScenario] Querying Resource Graph for availability sets of VMs in load balancers backend pools"
663663
}
664664
Else {
665-
log -Message "[UpgradeVMPublicIP] Waiting 15 seconds before querying ARG again (total wait time up to 15 minutes before failure)..."
665+
log -Message "[Test-SupportedMultiLBScenario] Waiting 15 seconds before querying ARG again (total wait time up to 15 minutes before failure)..."
666666
Start-Sleep 15
667667
}
668668

669669
$VMAvailabilitySets = Search-AzGraph -Query $graphQuery
670670

671671
$waitingForARG = $true
672-
} while ($VMPIPRecords.count -eq 0 -and $env:LBMIG_WAIT_FOR_ARG -and $timeoutStopwatch.Elapsed.Seconds -lt $global:defaultJobWaitTimeout)
672+
} while ($VMAvailabilitySets.count -eq 0 -and $env:LBMIG_WAIT_FOR_ARG -and $timeoutStopwatch.Elapsed.Seconds -lt $global:defaultJobWaitTimeout)
673673

674674
If ($timeoutStopwatch.Elapsed.Seconds -gt $global:defaultJobWaitTimeout) {
675-
log -Severity Error -Message "[UpgradeVMPublicIP] Resource Graph query timed out before results were returned! The Resource Graph lags behind ARM by several minutes--if the resources to migrate were just created (as in a test), test the query from the log to determine if this was an ingestion lag or synax failure. Once the issue has been corrected follow the steps at https://aka.ms/basiclbupgradefailure to retry the migration." -terminateOnError
675+
log -Severity Error -Message "[Test-SupportedMultiLBScenario] Resource Graph query timed out before results were returned! The Resource Graph lags behind ARM by several minutes--if the resources to migrate were just created (as in a test), test the query from the log to determine if this was an ingestion lag or synax failure. Once the issue has been corrected follow the steps at https://aka.ms/basiclbupgradefailure to retry the migration." -terminateOnError
676676
}
677677

678678
# VMs must share an availability set or the backend must be a single VM with no availability set ('NO_AVAILABILITY_SET')

AzureBasicLoadBalancerUpgrade/testEnvs/scenarios/113-vms-lb-ext-no-rules.bicep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ module vm '../modules/Microsoft.Compute/virtualMachines_custom/deploy.bicep' = {
119119
name: 'vm-01'
120120
params: {
121121
adminUsername: 'admin-vm'
122+
name: 'vm-01'
122123
adminPassword: '${uniqueString(randomGuid)}rpP@340'
123124
availabilitySetResourceId: availabilitySet.outputs.resourceId
124125
location: location
@@ -162,7 +163,9 @@ module vm2 '../modules/Microsoft.Compute/virtualMachines_custom/deploy.bicep' =
162163
name: 'vm-02'
163164
params: {
164165
adminUsername: 'admin-vm'
166+
name: 'vm-02'
165167
adminPassword: '${uniqueString(randomGuid)}rpP@340'
168+
availabilitySetResourceId: availabilitySet.outputs.resourceId
166169
location: location
167170
imageReference: {
168171
offer: 'WindowsServer'

AzureBasicLoadBalancerUpgrade/testEnvs/scenarios/115-aks-basic-lb.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module aks '../modules/aks/aks.bicep' = {
3939
name: 'aks-module'
4040
scope: resourceGroup(resourceGroupName)
4141
params: {
42-
k8sVersion: '1.28.3'
42+
k8sVersion: '1.29'
4343
location: location
4444
subnetId: virtualNetworks.outputs.subnetResourceIds[0]
4545
vmSize: vmSize

0 commit comments

Comments
 (0)