{"record":{"id":"1d30e935306bb138","repo":"kubernetes/kops","slug":"error-resuming-processes-v","errorCode":null,"errorMessage":"error resuming processes: %v","messagePattern":"error resuming processes: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/autoscalinggroup.go","lineNumber":637,"sourceCode":"\n\t\t\tif len(toSuspend) > 0 {\n\t\t\t\tsuspendProcessQuery := &autoscaling.SuspendProcessesInput{}\n\t\t\t\tsuspendProcessQuery.AutoScalingGroupName = e.Name\n\t\t\t\tsuspendProcessQuery.ScalingProcesses = aws.ToStringSlice(toSuspend)\n\n\t\t\t\t_, err := t.Cloud.Autoscaling().SuspendProcesses(ctx, suspendProcessQuery)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"error suspending processes: %v\", err)\n\t\t\t\t}\n\t\t\t}\n\t\t\tif len(toResume) > 0 {\n\t\t\t\tresumeProcessQuery := &autoscaling.ResumeProcessesInput{}\n\t\t\t\tresumeProcessQuery.AutoScalingGroupName = e.Name\n\t\t\t\tresumeProcessQuery.ScalingProcesses = aws.ToStringSlice(toResume)\n\n\t\t\t\t_, err := t.Cloud.Autoscaling().ResumeProcesses(ctx, resumeProcessQuery)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"error resuming processes: %v\", err)\n\t\t\t\t}\n\t\t\t}\n\t\t\tchanges.SuspendProcesses = nil\n\t\t}\n\n\t\tif changes.InstanceProtection != nil {\n\t\t\trequest.NewInstancesProtectedFromScaleIn = e.InstanceProtection\n\t\t\tchanges.InstanceProtection = nil\n\t\t}\n\n\t\tif changes.CapacityRebalance != nil {\n\t\t\trequest.CapacityRebalance = e.CapacityRebalance\n\t\t\tchanges.CapacityRebalance = nil\n\t\t}\n\n\t\tempty := &AutoscalingGroup{}\n\t\tif !reflect.DeepEqual(empty, changes) {\n\t\t\tklog.Warningf(\"cannot apply changes to AutoScalingGroup: %v\", changes)","sourceCodeStart":619,"sourceCodeEnd":655,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/autoscalinggroup.go#L619-L655","documentation":"ResumeProcesses failed while restoring previously suspended scaling processes on an existing ASG during RenderAWS; the ASG is left with processes suspended and the wrapped AWS error explains the API failure.","triggerScenarios":"Removing entries from suspendProcesses so toResume is non-empty, and ResumeProcesses fails — ASG busy with scaling activity, invalid process name, or throttling.","commonSituations":"Re-enabling scaling during an active instance refresh or AZ rebalance; AWS returns an error because the group is mid-operation.","solutions":["Wait for in-progress scaling activities to finish, then re-run `kops update cluster --yes`","Confirm the process names were valid when they were suspended","Check IAM permissions for autoscaling:ResumeProcesses","Inspect ASG activities (`aws autoscaling describe-scaling-activities`) for conflicts"],"exampleFix":"null","handlingStrategy":"retry","validationCode":"aws autoscaling describe-scaling-activities --auto-scaling-group-name nodes-<zone> \\\n  --query 'Activities[?StatusCode==`InProgress`]' # wait until clear before resuming","typeGuard":null,"tryCatchPattern":"try {\n  kops update cluster --name mycluster --yes\n} catch (e) {\n  if (/error resuming processes/.test(e.message)) {\n    // wait for scaling activities to settle, then re-run apply\n  }\n}","preventionTips":["Resume processes outside of active instance refreshes","Inspect describe-scaling-activities when resume fails","Keep IAM permissions for autoscaling:ResumeProcesses in automation roles"],"tags":["aws","autoscaling","scaling-processes","update"],"backgroundTag":"aws-api-call-failed","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"}