kubernetes/kops · error
error listing autoscaling groups: %v
Error message
error listing autoscaling groups: %v
What it means
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.
Source
Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:873
asgNames = append(asgNames, aws.ToString(t.ResourceId))
default:
klog.Warningf("Unknown resource type: %v", *t.ResourceType)
}
}
}
}
if len(asgNames) != 0 {
for i := 0; i < len(asgNames); i += 50 {
batch := asgNames[i:minInt(i+50, len(asgNames))]
request := &autoscaling.DescribeAutoScalingGroupsInput{
AutoScalingGroupNames: batch,
}
paginator := autoscaling.NewDescribeAutoScalingGroupsPaginator(c.Autoscaling(), request)
for paginator.HasMorePages() {
page, err := paginator.NextPage(ctx)
if err != nil {
return nil, fmt.Errorf("error listing autoscaling groups: %v", err)
}
for _, asg := range page.AutoScalingGroups {
if !matchesAsgTags(tags, asg.Tags) {
// We used an inexact filter above
continue
}
// Check for "Delete in progress" (the only use of .Status)
if asg.Status != nil {
klog.Warningf("Skipping ASG %v (which matches tags): %v", *asg.AutoScalingGroupARN, *asg.Status)
continue
}
asgs = append(asgs, &asg)
}
}
}
}
return asgs, nilView on GitHub (pinned to 4c8573c808)
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
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:873 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/f7658c82e47f7310.
Report an issue: GitHub.