Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
128969: roachprod: azure destroy cluster returns error if no resource group was found r=renatolabs,srosenberg a=DarrylWong

Fixes: none
Release note: none
Epic: none

Co-authored-by: DarrylWong <darryl@cockroachlabs.com>
  • Loading branch information
craig[bot] and DarrylWong committed Aug 14, 2024
2 parents e5eb944 + 7ce7cde commit b903b22
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 b903b22

Please sign in to comment.