{"record":{"id":"2bf20a475450a482","repo":"kubernetes/kops","slug":"error-rendering-server-group-s-computing-unique","errorCode":null,"errorMessage":"error rendering server group %s: computing unique name for server: %w","messagePattern":"error rendering server group (.+?): computing unique name for server: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":220,"sourceCode":"\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\n\t// If newInstanceCount > 0, we need to create new instances for this group\n\tfor i := 0; i < newInstanceCount; i++ {\n\t\t// We create a unique name for each server\n\t\tuniqueName, err := uniqueName(t.Cloud, scaleway.ClusterNameFromTags(expected.Tags), fi.ValueOf(expected.Name))\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error rendering server group %s: computing unique name for server: %w\", fi.ValueOf(expected.Name), err)\n\t\t}\n\n\t\tcreateServerRequest := instance.CreateServerRequest{\n\t\t\tZone:            zone,\n\t\t\tName:            uniqueName,\n\t\t\tCommercialType:  fi.ValueOf(expected.CommercialType),\n\t\t\tImage:           expected.Image,\n\t\t\tTags:            expected.Tags,\n\t\t\tRoutedIPEnabled: new(true),\n\t\t}\n\n\t\t// We resize the root volume if needed (for instance types with no local storage)\n\t\tif expected.VolumeSize != nil {\n\t\t\tcreateServerRequest.Volumes = map[string]*instance.VolumeServerTemplate{\n\t\t\t\t\"0\": {\n\t\t\t\t\tBoot:       new(true),\n\t\t\t\t\tSize:       new(scw.Size(fi.ValueOf(expected.VolumeSize)) * scw.GB),\n\t\t\t\t\tVolumeType: instance.VolumeVolumeTypeBSSD,","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L202-L238","documentation":"In RenderScw's server-creation loop, uniqueName failed to compute a free unique server name for the instance group (it enumerates existing servers to avoid collisions). This is a pre-creation step; no server was created. The instance group name identifies the group being scaled.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:220 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error — usually a failed ListServers inside uniqueName","Verify no naming conflicts or stale servers with generated names","Retry the apply operation"],"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"}