Skip to content

CKS: addNodesToKubernetesCluster reports success when a node is not added #14818

Backlog

Description

@bhouse-nexthop

problem

addNodesToKubernetesCluster reports success when a node fails to be added.

step what happens
a node fails setup in KubernetesClusterAddWorker (e.g. fails the compatibility check) worker logs "Not every node was added to the CKS cluster ..., nodes added: 0 out of 1", records an ERROR event and returns false
KubernetesClusterManagerImpl.addNodesToKubernetesCluster passes the false up
AddNodesToKubernetesClusterCmd.execute() ignores the return value and sets a normal cluster response
async job completes successfully

cmk, the UI and automation see success; the only sign of failure is the event.

versions

4.22 and main (KubernetesClusterAddWorker is the same on both).

The steps to reproduce the bug

  1. Have a CKS cluster and a VM that will fail the add-node checks (e.g. missing the required packages).
  2. addNodesToKubernetesCluster id=<cluster> nodeids=<vm>
  3. The job succeeds; the node is not in the cluster; an ERROR event says "nodes added: 0 out of 1".

What to do about it?

Fail the job with an error naming the VMs that were not added (and those that were, on a partial add).

Activity

  1. github-actions commented on Dec 1, 2026

    @github-actions

    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

    addNodesToKubernetesCluster returns success even when KubernetesClusterAddWorker fails to add a node. The worker logs "nodes added: 0 out of 1", records an ERROR event and returns false, but the caller ignores that value, so the async job completes successfully. The reporter asks for the job to fail and name the VMs that were not added.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug Failure is reported as success, with reproduction steps
    Component component:cks KubernetesClusterAddWorker and AddNodesToKubernetesClusterCmd
    Severity Severity:Major Callers and automation see success while the node is missing
    Labels type:bug, component:cks, Severity:Major Based on the issue text
    Coding agent Suitable Specific fix stated: fail the job and name the VMs that were not added

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: a CKS cluster plus a VM that fails the add checks (for example, missing packages), then addNodesToKubernetesCluster.
    • A partial add (some nodes added, some not) should also be reported, as the issue asks.

    Generated by Daily Issue Triage · copilot · haiku55 · ~9 AIC · ⊞ 3.8K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions