{"record":{"id":"2a3697f421fd820d","repo":"kubernetes/kops","slug":"error-creating-ip-address-v","errorCode":null,"errorMessage":"error creating IP Address: %v","messagePattern":"error creating IP Address: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/address.go","lineNumber":186,"sourceCode":"\tcloud := t.Cloud\n\taddr := &compute.Address{\n\t\tName:        *e.Name,\n\t\tAddress:     fi.ValueOf(e.IPAddress),\n\t\tAddressType: fi.ValueOf(e.IPAddressType),\n\t\tPurpose:     fi.ValueOf(e.Purpose),\n\t\tRegion:      cloud.Region(),\n\t}\n\n\tif e.Subnetwork != nil {\n\t\taddr.Subnetwork = e.Subnetwork.URL(t.Cloud.Project(), t.Cloud.Region())\n\t}\n\n\tif a == nil {\n\t\tklog.V(2).Infof(\"Creating Address: %q\", addr.Name)\n\n\t\top, err := cloud.Compute().Addresses().Insert(cloud.Project(), cloud.Region(), addr)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating IP Address: %v\", err)\n\t\t}\n\n\t\tif err := cloud.WaitForOp(op); err != nil {\n\t\t\treturn fmt.Errorf(\"error waiting for IP Address: %v\", err)\n\t\t}\n\t} else {\n\t\treturn fmt.Errorf(\"cannot apply changes to IP Address: %v\", changes)\n\t}\n\n\treturn nil\n}\n\ntype terraformAddress struct {\n\tName        *string                  `cty:\"name\"`\n\tAddressType *string                  `cty:\"address_type\"`\n\tPurpose     *string                  `cty:\"purpose\"`\n\tSubnetwork  *terraformWriter.Literal `cty:\"subnetwork\"`\n}","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/address.go#L168-L204","documentation":"The GCE Address task's RenderGCE wraps Compute Addresses.Insert failure when creating a new static IP address (only when no existing address was found). It fires when GCE rejects the insert — name/quota conflicts, invalid subnetwork or address type — so the apply fails and will retry on the next run.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/address.go:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped API error for the rejection reason","Verify address name uniqueness in the region","Check in-use IP address quota","Retry after resolving the 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-12T07:17:12.445Z"}