Skip to content

Commit

Permalink
Merge pull request #2710 from sebassem/main
Browse files Browse the repository at this point in the history
Increase wait time for AIO status check
  • Loading branch information
dkirby-ms committed Sep 12, 2024
2 parents 1b5c5da + d51362b commit 73b5c93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,14 @@ do {


$retryCount = 0
$maxRetries = 15
$maxRetries = 25

do {
$output = az iot ops check --as-object --only-show-errors
$output = $output | ConvertFrom-Json
$mqServiceStatus = ($output.postDeployment | Where-Object { $_.name -eq "evalBrokerListeners" }).status
if ($mqServiceStatus -ne "Success") {
if($retryCount -eq 5 -and $mqServiceStatus -eq "warning"){
if($retryCount -eq 20 -and $mqServiceStatus -eq "warning"){
break;
}
Write-Host "Waiting for AIO to be deployed successfully on $clusterName...waiting for 60 seconds" -ForegroundColor DarkGray
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Deploy-AzCLI {

# Making extension install dynamic
if ($AgConfig.AzCLIExtensions.Count -ne 0) {
Write-Host "[$(Get-Date -Format t)] INFO: Installing Azure CLI extensions: " ($AgConfig.AzCLIExtensions -join ', ') -ForegroundColor Gray
Write-Host "[$(Get-Date -Format t)] INFO: Installing Azure CLI extensions" -ForegroundColor Gray
az config set extension.use_dynamic_install=yes_without_prompt --only-show-errors
# Installing Azure CLI extensions
foreach ($extension in $AgConfig.AzCLIExtensions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function Deploy-AIO {
$output = $output | ConvertFrom-Json
$mqServiceStatus = ($output.postDeployment | Where-Object { $_.name -eq "evalBrokerListeners" }).status
if ($mqServiceStatus -ne "Success") {
if($retryCount -eq 5 -and $mqServiceStatus -eq "warning"){
if($retryCount -eq 20 -and $mqServiceStatus -eq "warning"){
break;
}
Write-Host "Waiting for AIO to be deployed successfully on $clusterName...waiting for 60 seconds" -ForegroundColor DarkGray
Expand Down

0 comments on commit 73b5c93

Please sign in to comment.