{"record":{"id":"c1ec8c930adf0522","repo":"kubernetes/kops","slug":"error-creating-droplet-with-name-q-w","errorCode":null,"errorMessage":"error creating droplet with name %q: %w","messagePattern":"error creating droplet with name %q: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/dotasks/droplet.go","lineNumber":186,"sourceCode":"\t\treq := &godo.DropletCreateRequest{\n\t\t\tName:     fi.ValueOf(e.Name),\n\t\t\tRegion:   fi.ValueOf(e.Region),\n\t\t\tSize:     fi.ValueOf(e.Size),\n\t\t\tImage:    godo.DropletCreateImage{Slug: fi.ValueOf(e.Image)},\n\t\t\tTags:     e.Tags,\n\t\t\tVPCUUID:  vpcUUID,\n\t\t\tUserData: userData,\n\t\t}\n\n\t\tif e.SSHKey != nil {\n\t\t\treq.SSHKeys = append(req.SSHKeys, godo.DropletCreateSSHKey{\n\t\t\t\tID: *e.SSHKey.ID,\n\t\t\t})\n\t\t}\n\n\t\t_, _, err := t.Cloud.DropletsService().Create(ctx, req)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating droplet with name %q: %w\", fi.ValueOf(e.Name), err)\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc (_ *Droplet) CheckChanges(a, e, changes *Droplet) error {\n\tif a != nil {\n\t\tif changes.Name != nil {\n\t\t\treturn fi.CannotChangeField(\"Name\")\n\t\t}\n\t\tif changes.Region != nil {\n\t\t\treturn fi.CannotChangeField(\"Region\")\n\t\t}\n\t\tif changes.Size != nil {\n\t\t\treturn fi.CannotChangeField(\"Size\")\n\t\t}\n\t\tif changes.Image != nil {","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/dotasks/droplet.go#L168-L204","documentation":"Wraps the DigitalOcean Droplets.Create failure during droplet provisioning. Fires when the create API call is rejected: invalid size/image/region, SSH key issues, quota limits, or account-level problems.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/dotasks/droplet.go:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped DO API error for the rejection reason","Verify droplet size, image, and region are valid combinations","Check account quota and billing state","Retry after resolving the underlying cause"],"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"}