Skip to content

CKS: listKubernetesClusters etcdips is empty once cloud.kubernetes.etcd.node.start.port changes #14826

Backlog

Description

@bhouse-nexthop

problem

listKubernetesClusters returns an empty etcdips for clusters with dedicated etcd nodes.

The response keeps only etcd node port forwarding rules whose public port equals the current value of cloud.kubernetes.etcd.node.start.port. Etcd rules are created once, at start port + i (KubernetesClusterStartWorker#setupKubernetesEtcdNetworkRules), so:

case result
several etcd nodes only the first node's rule (start port + 0) can match; the others' rules never match
setting changed after the cluster was created no rule matches, etcdips is empty

versions

4.22 (code in KubernetesClusterManagerImpl#createKubernetesClusterResponse), also on main.

The steps to reproduce the bug

  1. Create a CKS cluster on an isolated network with etcdnodes >= 1.
  2. Change cloud.kubernetes.etcd.node.start.port (e.g. 50000 -> 51000).
  3. listKubernetesClusters id=<cluster>: etcdips is empty.

What to do about it?

Pick each etcd node's rules by what they point at (tcp to port 22, as the start worker creates them), not by the setting's current value.

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

    listKubernetesClusters returns an empty etcdips for CKS clusters with dedicated etcd nodes. The response keeps only etcd port-forwarding rules whose public port equals the current value of cloud.kubernetes.etcd.node.start.port. Rules are created once with the value at creation time, so later nodes never match, and a change to the setting empties the list.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug Listing output is wrong, with reproduction steps
    Component component:cks KubernetesClusterManagerImpl#createKubernetesClusterResponse
    Severity Severity:Minor Only the reported list is affected; the cluster itself works
    Labels type:bug, component:cks, Severity:Minor Based on the issue text
    Coding agent Suitable Fix is specified: match each etcd node's rules by the target (tcp to port 22), not by the current setting

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: isolated network, etcdnodes of at least 1, change cloud.kubernetes.etcd.node.start.port, then call listKubernetesClusters.

    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