{"record":{"id":"e526e3216c1c8521","repo":"kubernetes/kops","slug":"failed-to-create-cloud-instance-for-server-s-s","errorCode":null,"errorMessage":"failed to create cloud instance for server %s(%s): %w","messagePattern":"failed to create cloud instance for server (.+?)\\((.+?)\\): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/cloud.go","lineNumber":406,"sourceCode":"\tcloudInstanceGroup := &cloudinstances.CloudInstanceGroup{\n\t\tHumanName:     ig.Name,\n\t\tInstanceGroup: ig,\n\t\tRaw:           sg,\n\t\tMinSize:       int(fi.ValueOf(ig.Spec.MinSize)),\n\t\tTargetSize:    int(fi.ValueOf(ig.Spec.MinSize)),\n\t\tMaxSize:       int(fi.ValueOf(ig.Spec.MaxSize)),\n\t}\n\n\tfor _, server := range sg {\n\t\tstatus := cloudinstances.CloudInstanceStatusUpToDate\n\t\tfor _, tag := range server.Tags {\n\t\t\tif tag == TagNeedsUpdate {\n\t\t\t\tstatus = cloudinstances.CloudInstanceStatusNeedsUpdate\n\t\t\t}\n\t\t}\n\t\tcloudInstance, err := cloudInstanceGroup.NewCloudInstance(server.ID, status, nodeMap[server.ID])\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to create cloud instance for server %s(%s): %w\", server.Name, server.ID, err)\n\t\t}\n\t\tcloudInstance.State = cloudinstances.State(server.State)\n\t\tcloudInstance.MachineType = server.CommercialType\n\t\tcloudInstance.Roles = append(cloudInstance.Roles, InstanceRoleFromTags(server.Tags))\n\t\tip, err := s.GetServerIP(server.ID, server.Zone)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting server IP: %w\", err)\n\t\t}\n\t\tcloudInstance.PrivateIP = ip\n\t}\n\n\treturn cloudInstanceGroup, nil\n}\n\nfunc (s *scwCloudImplementation) GetClusterDNSRecords(clusterName string) ([]*domain.Record, error) {\n\tnames := strings.SplitN(clusterName, \".\", 2)\n\tclusterNameShort := names[0]\n\tdomainName := names[1]","sourceCodeStart":388,"sourceCodeEnd":424,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/cloud.go#L388-L424","documentation":"In buildCloudGroup, NewCloudInstance rejected the server (duplicate ID, nil nodeMap entry issue, or invalid status) while mapping a Scaleway server to a kops CloudInstance. The server name and ID pinpoint the offending machine in the group being built.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:406 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check for duplicate server IDs in the Scaleway server group","Verify the server still exists and is not in a transitional state","Remove or recreate the offending server if its state is inconsistent"],"exampleFix":null,"handlingStrategy":"try-catch","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-12T12:17:11.808Z"}