Skip to content

Commit fcd2767

Browse files
authored
Improve cluster error messages (#850)
1 parent 22057ec commit fcd2767

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cli/cmd/cluster.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ var _upCmd = &cobra.Command{
9494
exit.Error(err)
9595
}
9696
if exitCode == nil || *exitCode != 0 {
97-
fmt.Printf("additional information may be found in the activity history of your cluster's autoscaling groups https://console.aws.amazon.com/ec2/autoscaling/home?region=%s#AutoScalingGroups:\n", *clusterConfig.Region)
97+
fmt.Println("\nDebugging tips (may not apply to this error):")
98+
fmt.Printf("* if your cluster started to spin up but was unable to provision instances, additional error information may be found in the activity history of your cluster's autoscaling groups (select each autoscaling group and click the \"Activity History\" tab): https://console.aws.amazon.com/ec2/autoscaling/home?region=%s#AutoScalingGroups:\n", *clusterConfig.Region)
99+
fmt.Printf("* if your cluster started spinning up, please ensure that your CloudFormation stacks for this cluster have been fully deleted before trying to spin up this cluster again: https://console.aws.amazon.com/cloudformation/home?region=%s#/stacks?filteringText=-%s-\n", *clusterConfig.Region, clusterConfig.ClusterName)
98100
exit.ErrorNoPrint(out)
99101
}
100102
},
@@ -128,7 +130,8 @@ var _updateCmd = &cobra.Command{
128130
exit.Error(err)
129131
}
130132
if exitCode == nil || *exitCode != 0 {
131-
fmt.Printf("additional information may be found in the activity history of your cluster's autoscaling groups https://console.aws.amazon.com/ec2/autoscaling/home?region=%s#AutoScalingGroups:\n", *clusterConfig.Region)
133+
fmt.Println("\nDebugging tips (may not apply to this error):")
134+
fmt.Printf("* if your cluster was unable to provision instances, additional error information may be found in the activity history of your cluster's autoscaling groups (select each autoscaling group and click the \"Activity History\" tab): https://console.aws.amazon.com/ec2/autoscaling/home?region=%s#AutoScalingGroups:\n", *clusterConfig.Region)
132135
exit.ErrorNoPrint(out)
133136
}
134137
},
@@ -239,6 +242,7 @@ var _downCmd = &cobra.Command{
239242
exit.Error(err)
240243
}
241244
if exitCode == nil || *exitCode != 0 {
245+
fmt.Printf("\nNote: if this error cannot be resolved, please ensure that all CloudFormation stacks for this cluster eventually become been fully deleted (https://console.aws.amazon.com/cloudformation/home?region=%s#/stacks?filteringText=-%s-). If the stack deletion process has failed, please manually delete the stack from the AWS console (this may require manually deleting particular AWS resources that are blocking the stack deletion)\n", *accessConfig.Region, *accessConfig.ClusterName)
242246
exit.ErrorNoPrint(out)
243247
}
244248

manager/uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ echo -e "spinning down the cluster ...\n"
2222

2323
eksctl delete cluster --name=$CORTEX_CLUSTER_NAME --region=$CORTEX_REGION --timeout=$EKSCTL_TIMEOUT
2424

25-
echo -e "\n✓ please check cloudformation to ensure that all resources for the ${CORTEX_CLUSTER_NAME} cluster are successfully deleted: https://${CORTEX_REGION}.console.aws.amazon.com/cloudformation"
25+
echo -e "\n✓ please check CloudFormation to ensure that all resources for the ${CORTEX_CLUSTER_NAME} cluster eventually become successfully deleted: https://console.aws.amazon.com/cloudformation/home?region=${CORTEX_REGION}#/stacks?filteringText=-${CORTEX_CLUSTER_NAME}-"

0 commit comments

Comments
 (0)