{"record":{"id":"d064644824c9a714","repo":"kubernetes/kops","slug":"failed-to-find-network-interfaces-matching-q-w","errorCode":null,"errorMessage":"failed to find network interfaces matching %q: %w","messagePattern":"failed to find network interfaces matching %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/network_load_balancer.go","lineNumber":371,"sourceCode":"\tcluster := c.T.Cluster\n\n\t{\n\t\tallLoadBalancers, err := awsup.ListELBV2LoadBalancers(ctx, cloud)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tlb := awsup.FindLatestELBV2ByNameTag(allLoadBalancers, fi.ValueOf(e.Name))\n\n\t\tif lb != nil {\n\t\t\tif fi.ValueOf(lb.LoadBalancer.DNSName) != \"\" {\n\t\t\t\taddresses = append(addresses, fi.ValueOf(lb.LoadBalancer.DNSName))\n\t\t\t}\n\n\t\t\tif cluster.UsesLoadBalancerForKopsController() {\n\t\t\t\tnis, err := cloud.FindELBV2NetworkInterfacesByName(fi.ValueOf(e.VPC.ID), aws.ToString(lb.LoadBalancer.LoadBalancerName))\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"failed to find network interfaces matching %q: %w\", aws.ToString(lb.LoadBalancer.LoadBalancerName), err)\n\t\t\t\t}\n\t\t\t\tfor _, ni := range nis {\n\t\t\t\t\tif fi.ValueOf(ni.PrivateIpAddress) != \"\" {\n\t\t\t\t\t\taddresses = append(addresses, fi.ValueOf(ni.PrivateIpAddress))\n\t\t\t\t\t}\n\t\t\t\t\tfor _, v6 := range ni.Ipv6Addresses {\n\t\t\t\t\t\taddresses = append(addresses, fi.ValueOf(v6.Ipv6Address))\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tsort.Strings(addresses)\n\n\treturn addresses, nil\n}\n","sourceCodeStart":353,"sourceCodeEnd":389,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/network_load_balancer.go#L353-L389","documentation":"FindELBV2NetworkInterfacesByName failed while looking up the NLB's network interfaces to build the API load-balancer address set; the underlying EC2 describe-envelopes call errored and the AWS detail is wrapped with %w.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/network_load_balancer.go:371 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check EC2 DescribeNetworkInterfaces permissions in the VPC","Retry the apply — describe calls can fail transiently under throttling"],"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"}