{"record":{"id":"cc9c5d9a3aaaf2f7","repo":"kubernetes/kops","slug":"providerid-not-set-for-node-s-cc9c5d","errorCode":null,"errorMessage":"providerID not set for node %s","messagePattern":"providerID not set for node (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/nodeidentity/linode/identify.go","lineNumber":78,"sourceCode":"\tclient, err := linodego.NewClient(nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create Linode client: %w\", err)\n\t}\n\tclient.SetUserAgent(\"kops/nodeidentity\")\n\tclient.SetToken(accessToken)\n\n\treturn &nodeIdentifier{\n\t\tclient:       &client,\n\t\tcache:        expirationcache.NewTTLStore(stringKeyFunc, cacheTTL),\n\t\tcacheEnabled: cacheNodeidentityInfo,\n\t}, nil\n}\n\n// IdentifyNode queries Akamai (Linode) for the node identity information.\nfunc (i *nodeIdentifier) IdentifyNode(ctx context.Context, node *corev1.Node) (*nodeidentity.Info, error) {\n\tproviderID := node.Spec.ProviderID\n\tif providerID == \"\" {\n\t\treturn nil, fmt.Errorf(\"providerID not set for node %s\", node.Name)\n\t}\n\n\tinstanceNumericID, instanceID, err := parseInstanceIDFromProviderID(providerID)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"providerID %q not recognized for node %s: %w\", providerID, node.Name, err)\n\t}\n\n\tif i.cacheEnabled {\n\t\tobj, exists, err := i.cache.GetByKey(instanceID)\n\t\tif err != nil {\n\t\t\tklog.Warningf(\"Nodeidentity info cache lookup failure: %v\", err)\n\t\t}\n\t\tif exists {\n\t\t\treturn obj.(*nodeidentity.Info), nil\n\t\t}\n\t}\n\n\tinstance, err := i.client.GetInstance(ctx, instanceNumericID)","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/nodeidentity/linode/identify.go#L60-L96","documentation":"IdentifyNode on Linode received a Kubernetes Node with an empty spec.providerID. The identifier needs a linode://<id> provider ID to locate the instance, so identification fails until the provider stamps it.","triggerScenarios":"Thrown at pkg/nodeidentity/linode/identify.go:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the Linode CCM/cloud-provider integration sets node.spec.providerID","Wait for node registration to finish before identity lookups","Manually patch providerID in the format linode://<instance-id> if importing nodes"],"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-12T07:17:12.445Z"}