{"record":{"id":"89e9df2ea1c8c04c","repo":"kubernetes/kops","slug":"hetzner-cloud-provider-does-not-implement-findvpci","errorCode":null,"errorMessage":"hetzner cloud provider does not implement FindVPCInfo at this time","messagePattern":"hetzner cloud provider does not implement FindVPCInfo at this time","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/hetzner/cloud.go","lineNumber":427,"sourceCode":"\n\t\terr = deleteServer(c, serverID)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc (c *hetznerCloudImplementation) DeregisterInstance(i *cloudinstances.CloudInstance) error {\n\t// Hetzner Cloud API doesn't provide the option to drain and remove an instance from the associated load balancers\n\treturn nil\n}\n\n// FindVPCInfo is not implemented\nfunc (c *hetznerCloudImplementation) FindVPCInfo(id string) (*fi.VPCInfo, error) {\n\t// TODO(hakman): Implement me\n\treturn nil, errors.New(\"hetzner cloud provider does not implement FindVPCInfo at this time\")\n}\n\n// FindClusterStatus was used before etcd-manager to check the etcd cluster status and prevent unsupported changes.\nfunc (c *hetznerCloudImplementation) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) {\n\treturn nil, nil\n}\n\nfunc (c *hetznerCloudImplementation) GetApiIngressStatus(cluster *kops.Cluster) ([]fi.ApiIngressStatus, error) {\n\tlbName := \"api.\" + cluster.Name\n\n\tclient := c.LoadBalancerClient()\n\tlb, _, err := client.GetByName(context.TODO(), lbName)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to get info for load balancer %q: %w\", lbName, err)\n\t}\n\tif lb == nil {\n\t\treturn nil, nil\n\t}","sourceCodeStart":409,"sourceCodeEnd":445,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/hetzner/cloud.go#L409-L445","documentation":"FindVPCInfo on the Hetzner cloud implementation is a stub: it unconditionally returns an error because VPC/network discovery has not been implemented for Hetzner. Any code path that asks the Hetzner cloud for VPC info will always fail here regardless of input.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/hetzner/cloud.go:427 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid kops operations that require VPC discovery on Hetzner clusters","Contribute an implementation of FindVPCInfo for the Hetzner provider","Supply network configuration explicitly so VPC lookup is not needed"],"exampleFix":null,"handlingStrategy":"fallback","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"}