From 7ce7cde3cb29082796b98730d21e44396781113d Mon Sep 17 00:00:00 2001 From: DarrylWong Date: Wed, 14 Aug 2024 10:46:31 -0400 Subject: [PATCH] roachprod: azure destroy cluster returns error if no resource group was found --- pkg/roachprod/vm/azure/azure.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/roachprod/vm/azure/azure.go b/pkg/roachprod/vm/azure/azure.go index cc4e54abe36e..a3079ed6f61c 100644 --- a/pkg/roachprod/vm/azure/azure.go +++ b/pkg/roachprod/vm/azure/azure.go @@ -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 }