Skip to content

Commit

Permalink
roachprod: azure destroy cluster returns error if no resource group w…
Browse files Browse the repository at this point in the history
…as found
  • Loading branch information
DarrylWong committed Aug 14, 2024
1 parent 5ea19b8 commit 7ce7cde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/roachprod/vm/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,13 @@ func (p *Provider) DeleteCluster(l *logger.Logger, name string) error {
}
}

if len(futures) == 0 {
// We have seen occurrences of Azure resource groups losing the necessary tags
// needed for roachprod to find them. The cluster may need to be manually deleted
// through the Azure portal.
return errors.Newf("**** MANUAL INTERVENTION REQUIRED ****\nDeleteCluster: Found no azure resource groups with tag cluster: %s", name)
}

if !p.SyncDelete {
return nil
}
Expand Down

0 comments on commit 7ce7cde

Please sign in to comment.