Skip to content

CKS: unclear late failure when a node's user data is over vm.userdata.max.length #14780

Open

Description

@bhouse-nexthop

problem

CKS renders each node's cloud-config (certificates, keys and settings filled in), base64-encodes it and deploys the VM. If the result is over vm.userdata.max.length (default 32768), deploy fails deep inside VM creation:

what the user sees where the real reason is
Provisioning the control VM failed in the Kubernetes cluster : <name> management server log: User data has exceeded configurable max length: 32768
  • The error doesn't say which node type, how big the user data is, or which setting to change.
  • On add-node, the CKS ISO is already attached and the cluster has already changed state when it fails.
  • If the etcd node is the one that's too big, the cluster is left in Starting.

Stock 4.22 control-node user data is already about 28 KB after base64, so a CNI configuration (cniconfigurationid) or more content in the templates is enough to go over the limit.

versions

4.22 (also main)

The steps to reproduce the bug

  1. Set vm.userdata.max.length below the control node's user data size (e.g. 16384), or use a large CNI configuration.
  2. Create a CKS cluster.
  3. The create job fails with the generic message above.

What to do about it?

Check each node's base64 user data against vm.userdata.max.length in CKS, before that VM is deployed (and on add-node, before the ISO is attached), and fail with a message that names the node type, cluster, size and limit.

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

    When a CKS node's base64-encoded userdata exceeds vm.userdata.max.length (default 32768), VM deployment fails with a generic 'Provisioning the control VM failed' message. The real reason is only in the management server log. On add-node the ISO is already attached and the cluster state has changed by then. The reporter notes that stock 4.22 control-node userdata is already about 28 KB, so a CNI configuration can push it over the limit.

    📊 Assessment

    Dimension Value Reasoning
    Type type:improvement Error message and check timing; no data loss reported
    Component component:cks CKS node userdata rendering and deploy path
    Severity n/a Not a bug report; the failure is clear once found in the log
    Labels type:improvement, component:cks
    Coding agent Suitable Requirements are specific: check size before deploy, name node type, size and limit

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: set vm.userdata.max.length to 16384 and create a CKS cluster.
    • The check should run before the add-node ISO is attached, so a failure does not leave the cluster in a changed state.

    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