{"record":{"id":"97f53a2b532d7e9e","repo":"kubernetes/kops","slug":"error-fetching-vpcuuid-from-network-cidr-s","errorCode":null,"errorMessage":"Error fetching vpcUUID from network cidr=%s","messagePattern":"Error fetching vpcUUID from network cidr=(.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/dotasks/loadbalancer.go","lineNumber":178,"sourceCode":"\t\treturn fmt.Errorf(\"LoadBalancers.List returned error: %v\", err)\n\t}\n\n\tfor _, loadbalancer := range loadBalancers {\n\t\tklog.V(10).Infof(\"load balancer retrieved=%s, e.Name=%s\", loadbalancer.Name, fi.ValueOf(e.Name))\n\t\tif strings.Contains(loadbalancer.Name, fi.ValueOf(e.Name)) {\n\t\t\t// load balancer already exists.\n\t\t\te.ID = new(loadbalancer.ID)\n\t\t\te.IPAddress = new(loadbalancer.IP) // This will be empty on create, but will be filled later on FindAddresses invokation.\n\t\t\treturn nil\n\t\t}\n\t}\n\n\t// associate vpcuuid to the loadbalancer if set\n\tvpcUUID := \"\"\n\tif fi.ValueOf(e.NetworkCIDR) != \"\" {\n\t\tvpcUUID, err = t.Cloud.GetVPCUUID(fi.ValueOf(e.NetworkCIDR), fi.ValueOf(e.VPCName))\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"Error fetching vpcUUID from network cidr=%s\", fi.ValueOf(e.NetworkCIDR))\n\t\t}\n\t} else if fi.ValueOf(e.VPCUUID) != \"\" {\n\t\tvpcUUID = fi.ValueOf(e.VPCUUID)\n\t}\n\n\tloadBalancerService := t.Cloud.LoadBalancersService()\n\tloadbalancer, _, err := loadBalancerService.Create(context.TODO(), &godo.LoadBalancerRequest{\n\t\tName:            fi.ValueOf(e.Name),\n\t\tRegion:          fi.ValueOf(e.Region),\n\t\tTag:             fi.ValueOf(e.DropletTag),\n\t\tVPCUUID:         vpcUUID,\n\t\tForwardingRules: Rules,\n\t\tHealthCheck:     HealthCheck,\n\t})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"Error creating load balancer with Name=%s, Error=%v\", fi.ValueOf(e.Name), err)\n\t}\n","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/dotasks/loadbalancer.go#L160-L196","documentation":"Wraps/report GetVPCUUID failure in the DO LB renderer: the VPC UUID could not be resolved from the configured network CIDR. Note the underlying error is not chained — only the CIDR is reported, which loses the root cause.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/dotasks/loadbalancer.go:178 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the network CIDR corresponds to an existing DO VPC","Check the VPC name configuration","Re-run the render after correcting VPC settings"],"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"}