{"record":{"id":"d7e84831155f9e98","repo":"kubernetes/kops","slug":"getting-local-network-interfaces-w","errorCode":null,"errorMessage":"getting local network interfaces: %w","messagePattern":"getting local network interfaces: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nodeup/pkg/model/kube_apiserver.go","lineNumber":87,"sourceCode":"\t\tkubeAPIServer = *b.NodeupConfig.APIServerConfig.KubeAPIServer\n\t}\n\n\tif b.CloudProvider() == kops.CloudProviderHetzner {\n\t\tlocalIP, err := b.GetMetadataLocalIP(c.Context())\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif localIP != \"\" {\n\t\t\tkubeAPIServer.AdvertiseAddress = localIP\n\t\t}\n\t}\n\n\tif b.CloudProvider() == kops.CloudProviderMetal {\n\t\t// Workaround for https://github.com/kubernetes/kubernetes/issues/111671\n\t\tif b.IsIPv6Only() {\n\t\t\tinterfaces, err := net.Interfaces()\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"getting local network interfaces: %w\", err)\n\t\t\t}\n\t\t\tvar ipv6s []net.IP\n\t\t\tfor _, intf := range interfaces {\n\t\t\t\taddresses, err := intf.Addrs()\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"getting addresses for network interface %q: %w\", intf.Name, err)\n\t\t\t\t}\n\t\t\t\tfor _, addr := range addresses {\n\t\t\t\t\tip, _, err := net.ParseCIDR(addr.String())\n\t\t\t\t\tif ip == nil {\n\t\t\t\t\t\treturn fmt.Errorf(\"parsing ip address %q (bound to network %q): %w\", addr.String(), intf.Name, err)\n\t\t\t\t\t}\n\t\t\t\t\tif ip.To4() != nil {\n\t\t\t\t\t\t// We're only looking for ipv6\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tif ip.IsLinkLocalUnicast() {\n\t\t\t\t\t\tklog.V(4).Infof(\"ignoring link-local unicast addr %v\", addr)","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/nodeup/pkg/model/kube_apiserver.go#L69-L105","documentation":"Wraps a failure of net.Interfaces() in the kube-apiserver builder on IPv6-only Equinix Metal clusters: the local network interfaces could not be enumerated to find an IPv6 address for the apiserver workaround.","triggerScenarios":"Thrown at nodeup/pkg/model/kube_apiserver.go:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check /proc/net or netlink availability on the node","Verify container/sandbox networking if nodeup runs containerized","Re-run nodeup"],"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"}