{"record":{"id":"3469d7238d2a1846","repo":"kubernetes/kops","slug":"nlb-has-more-then-one-allocationid-per-subnet-whi","errorCode":null,"errorMessage":"NLB has more then one AllocationID per subnet, which is unexpected. This is a bug in kOps, please open a GitHub issue.","messagePattern":"NLB has more then one AllocationID per subnet, which is unexpected\\. This is a bug in kOps, please open a GitHub issue\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/network_load_balancer.go","lineNumber":238,"sourceCode":"\t\t\tcontinue\n\t\t}\n\t\tactual.Tags[k] = aws.ToString(tag.Value)\n\t}\n\n\tfor _, az := range lb.AvailabilityZones {\n\t\tsm := &SubnetMapping{\n\t\t\tSubnet: &Subnet{ID: az.SubnetId},\n\t\t}\n\t\tfor _, a := range az.LoadBalancerAddresses {\n\t\t\tif a.PrivateIPv4Address != nil {\n\t\t\t\tif sm.PrivateIPv4Address != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"NLB has more then one PrivateIPv4Address, which is unexpected. This is a bug in kOps, please open a GitHub issue.\")\n\t\t\t\t}\n\t\t\t\tsm.PrivateIPv4Address = a.PrivateIPv4Address\n\t\t\t}\n\t\t\tif a.AllocationId != nil {\n\t\t\t\tif sm.AllocationID != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"NLB has more then one AllocationID per subnet, which is unexpected. This is a bug in kOps, please open a GitHub issue.\")\n\t\t\t\t}\n\t\t\t\tsm.AllocationID = a.AllocationId\n\t\t\t}\n\t\t}\n\t\tactual.SubnetMappings = append(actual.SubnetMappings, sm)\n\t}\n\n\tfor _, sg := range lb.SecurityGroups {\n\t\tactual.SecurityGroups = append(actual.SecurityGroups, &SecurityGroup{ID: aws.String(sg)})\n\t}\n\n\t{\n\t\tlbAttributes, err := findNetworkLoadBalancerAttributes(ctx, cloud, loadBalancerArn)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tklog.V(4).Infof(\"NLB Load Balancer attributes: %+v\", lbAttributes)\n","sourceCodeStart":220,"sourceCodeEnd":256,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/network_load_balancer.go#L220-L256","documentation":"While importing an existing NLB into the kOps model, a single subnet mapping carried two AllocationIds (or two PrivateIPv4Addresses) — AWS state the SubnetMapping model cannot represent; this is treated as a kOps bug, not a user configuration error.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/network_load_balancer.go:238 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the NLB's subnet mappings in the AWS console for duplicated addresses and normalize them","Open a GitHub issue at kOps with the NLB details so the import path can handle this state"],"exampleFix":null,"handlingStrategy":"validation","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"}