Skip to content

CKS scale without an offering moves nodes back to the cluster offering #14807

Open

Description

@bhouse-nexthop

problem

scaleKubernetesCluster without serviceofferingid or nodeofferings still scales nodes to the cluster's service offering.

createNodeTypeToServiceOfferingMap falls back to the cluster offering as DEFAULT when no offering is passed. KubernetesClusterScaleWorker.scaleCluster then treats every node type whose VMs run a different offering as needing an offering scale.

Calls that hit it:

call effect
clustersize only worker (and control/etcd) nodes on their own offering are scaled back to the cluster offering
nodeids (e.g. cluster autoscaler removing a node) same
autoscalingenabled on/off, min/max control/etcd scaled back before the autoscaler is set up

On KVM with running VMs the offering scale fails with "scaling Kubernetes cluster with running VMs on hypervisor KVM is not supported", sometimes after a downscale already removed nodes. Where live scaling works, nodes are silently moved back to the cluster offering.

versions

4.21, 4.22, main

The steps to reproduce the bug

  1. Create a CKS cluster with nodeofferings giving workers a different offering than serviceofferingid (or scale workers with nodeofferings later).
  2. Call scaleKubernetesCluster with only clustersize.
  3. Scale fails on KVM with the error above, or the workers end up on the cluster offering.

What to do about it?

When no offering is requested, pass an empty offering map so only the size/autoscaling change is applied.

Activity

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

    scaleKubernetesCluster without serviceofferingid or nodeofferings moves nodes back to the cluster offering. createNodeTypeToServiceOfferingMap falls back to the cluster offering as DEFAULT, so any node type running a different offering appears to need an offering scale. This affects size-only changes, nodeids scale-in (including autoscaler removals), and autoscaling on/off. On KVM the offering scale fails with a running-VM error, sometimes after a downscale has already removed nodes. The proposed fix is to pass an empty offering map when no offering is requested.

    📊 Assessment

    Dimension Value Reasoning
    Type type:bug A size-only scale changes node offerings, with reproduction steps
    Component component:cks createNodeTypeToServiceOfferingMap and the scale worker
    Severity Severity:Major Scale fails partway on KVM, and nodes are resized unintentionally
    Labels type:bug, component:cks, Severity:Major Based on the issue text
    Coding agent Suitable Fix is specified: pass an empty map when no offering is requested

    🔗 Similar issues

    💡 Notes and suggestions
    • Reproduction: create a cluster with nodeofferings for workers, then call scaleKubernetesCluster clustersize=<n> only.
    • Autoscaling on/off with min and max is affected too; check that path with the same fix.

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