You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CKS: removeNodesFromKubernetesCluster throws NPE when the node VM has no display name #14789
VM deployed without displayname (NULL in the DB), then added with addNodesToKubernetesCluster
Why it's confusing
the API shows the host name as a fallback display name, so the user sees a name
Result
node is not drained or deleted, the call fails, the log shows only the NPE
Steps to reproduce
Deploy a VM without displayname.
Add it to a CKS cluster with addNodesToKubernetesCluster.
Remove it with removeNodesFromKubernetesCluster.
Expected
The node is drained and removed.
Also
The display name isn't the Kubernetes node name anyway. The kubelet registers under the guest host name, which is what the scale and upgrade workers use. A user-changed display name points the script at a node that doesn't exist.
taintControlNodes has the same getDisplayName().toLowerCase() lookup.
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
removeNodesFromKubernetesCluster throws a NullPointerException when the node VM has no display name. KubernetesClusterRemoveWorker.removeNodesFromCluster calls getDisplayName().toLowerCase(...), so the node is not drained or deleted and the log shows only the NPE. The reporter also says the Kubernetes node name is the guest host name, not the display name, so the lookup is wrong even when it does not throw. taintControlNodes has the same pattern.
📊 Assessment
Dimension
Value
Reasoning
Type
type:bug
NPE in the remove path, with reproduction steps
Component
component:cks
KubernetesClusterRemoveWorker
Severity
Severity:Major
A node added without a display name cannot be removed
Labels
type:bug, component:cks, Severity:Major
Based on the issue text
Coding agent
Suitable
Fix direction given: look up the node by guest host name, as scale and upgrade already do
Activity
github-actions commentedon Nov 30, 2026
Warning
threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs for details.
🎯 Triage report
removeNodesFromKubernetesClusterthrows a NullPointerException when the node VM has no display name.KubernetesClusterRemoveWorker.removeNodesFromClustercallsgetDisplayName().toLowerCase(...), so the node is not drained or deleted and the log shows only the NPE. The reporter also says the Kubernetes node name is the guest host name, not the display name, so the lookup is wrong even when it does not throw.taintControlNodeshas the same pattern.📊 Assessment
KubernetesClusterRemoveWorker🔗 Similar issues
removeNodesFromKubernetesClusteraccepts nodes it should reject💡 Notes and suggestions
displayname, add it withaddNodesToKubernetesCluster, then remove it.taintControlNodesas well as the remove path.Add this agentic workflow to your repo
To install this agentic workflow, run