{"record":{"id":"1f86d8ff76319c3e","repo":"kubernetes/kops","slug":"rendering-server-group-listing-existing-servers","errorCode":null,"errorMessage":"rendering server group: listing existing servers: %w","messagePattern":"rendering server group: listing existing servers: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":196,"sourceCode":"\tinstanceService := t.Cloud.InstanceService()\n\tzone := scw.Zone(fi.ValueOf(expected.Zone))\n\n\tuserData, err := fi.ResourceAsBytes(*expected.UserData)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error rendering instances: %w\", err)\n\t}\n\n\tnewInstanceCount := expected.Count\n\tif actual != nil {\n\n\t\t// Add \"kops.k8s.io/needs-update\" label to servers needing update\n\t\tfor _, serverID := range actual.NeedsUpdate {\n\t\t\tserver, err := instanceService.GetServer(&instance.GetServerRequest{\n\t\t\t\tZone:     zone,\n\t\t\t\tServerID: serverID,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"rendering server group: listing existing servers: %w\", err)\n\t\t\t}\n\t\t\t_, err = instanceService.UpdateServer(&instance.UpdateServerRequest{\n\t\t\t\tZone:     zone,\n\t\t\t\tServerID: serverID,\n\t\t\t\tTags:     scw.StringsPtr(append(server.Server.Tags, scaleway.TagNeedsUpdate)),\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"rendering server group: adding update tag to server %q (%s): %w\", server.Server.Name, serverID, err)\n\t\t\t}\n\t\t}\n\n\t\tif expected.Count == actual.Count {\n\t\t\treturn nil\n\t\t}\n\t\tnewInstanceCount = expected.Count - actual.Count\n\n\t}\n","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L178-L214","documentation":"In RenderScw, while tagging servers that need updates, the GetServer call for one of the IDs in actual.NeedsUpdate failed. The server could not be fetched before its update tag could be applied; the wrapped error is the SDK response (typically the server vanished or a transient API failure).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:196 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the server ID still exists in the Scaleway console","Re-run the apply: the Find phase will recompute NeedsUpdate","Check the wrapped error for auth/quota causes"],"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"}