Skip to content

validate-cks-node does not check net.ipv4.ip_forward #14772

Open

Description

@bhouse-nexthop

problem

validate-cks-node (run by addNodesToKubernetesCluster before an external node is rebooted into the kubeadm join userdata) checks only packages. It does not check net.ipv4.ip_forward, which kubeadm join preflight requires.

Template has Today
all packages, ip_forward=0 validation passes, node is rebooted, kubeadm join fails preflight (/proc/sys/net/ipv4/ip_forward contents are not set to 1), the add fails with a harder-to-trace error

Nothing in the CKS userdata sets ip_forward, so it has to come from the template.

versions

4.22, main.

The steps to reproduce the bug

  1. Build an external-node template with all required packages and net.ipv4.ip_forward=0.
  2. Add a VM from it to a CKS cluster with addNodesToKubernetesCluster.
  3. Validation passes; the join fails later in kubeadm preflight.

What to do about it?

Have validate-cks-node fail when ip_forward is not 1, so the add is rejected up front with a clear reason.

Activity

  1. github-actions commented on Nov 26, 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

    validate-cks-node, which runs before an external node is added to a CKS cluster, checks packages but not net.ipv4.ip_forward. The reporter's template had all packages and ip_forward=0. Validation passed, and the node failed later in the kubeadm join preflight check, which gives a less clear error. The reporter asks for the validation to fail up front when ip_forward is not 1.

    📊 Assessment

    Dimension Value Reasoning
    Type type:improvement Earlier and clearer validation; no crash reported
    Component component:cks validate-cks-node in the kubernetes-service plugin
    Severity n/a Not a bug report; the join fails either way
    Labels type:improvement, component:cks
    Coding agent Suitable Small, specific check: read /proc/sys/net/ipv4/ip_forward and fail when it is not 1

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: a template with all packages and net.ipv4.ip_forward=0, then addNodesToKubernetesCluster.
    • Consider whether the fix should also set ip_forward in the CKS userdata. The reporter notes nothing in CKS sets it today. That is a separate decision.

    Generated by Daily Issue Triage · copilot · haiku55 · ~7 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