{"record":{"id":"f7658c82e47f7310","repo":"kubernetes/kops","slug":"error-listing-autoscaling-groups-v","errorCode":null,"errorMessage":"error listing autoscaling groups: %v","messagePattern":"error listing autoscaling groups: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":873,"sourceCode":"\t\t\t\t\tasgNames = append(asgNames, aws.ToString(t.ResourceId))\n\t\t\t\tdefault:\n\t\t\t\t\tklog.Warningf(\"Unknown resource type: %v\", *t.ResourceType)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(asgNames) != 0 {\n\t\tfor i := 0; i < len(asgNames); i += 50 {\n\t\t\tbatch := asgNames[i:minInt(i+50, len(asgNames))]\n\t\t\trequest := &autoscaling.DescribeAutoScalingGroupsInput{\n\t\t\t\tAutoScalingGroupNames: batch,\n\t\t\t}\n\t\t\tpaginator := autoscaling.NewDescribeAutoScalingGroupsPaginator(c.Autoscaling(), request)\n\t\t\tfor paginator.HasMorePages() {\n\t\t\t\tpage, err := paginator.NextPage(ctx)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"error listing autoscaling groups: %v\", err)\n\t\t\t\t}\n\t\t\t\tfor _, asg := range page.AutoScalingGroups {\n\t\t\t\t\tif !matchesAsgTags(tags, asg.Tags) {\n\t\t\t\t\t\t// We used an inexact filter above\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\t// Check for \"Delete in progress\" (the only use of .Status)\n\t\t\t\t\tif asg.Status != nil {\n\t\t\t\t\t\tklog.Warningf(\"Skipping ASG %v (which matches tags): %v\", *asg.AutoScalingGroupARN, *asg.Status)\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tasgs = append(asgs, &asg)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn asgs, nil","sourceCodeStart":855,"sourceCodeEnd":891,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L855-L891","documentation":"A paginated autoscaling DescribeAutoScalingGroups call failed while fetching one batch (max 50) of the ASG names previously discovered via tags. Fires on API errors, throttling, or missing autoscaling:DescribeAutoScalingGroups permission.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:873 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify IAM permission autoscaling:DescribeAutoScalingGroups","Retry the operation after a backoff if the wrapped error indicates throttling","Check AWS service health for the Autoscaling API in the cluster's region"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}