Skip to content

CKS: cluster offering stays stale after every node type is scaled to the same offering #14822

Backlog

Description

@bhouse-nexthop

problem

When a CKS cluster is scaled with per node type offerings (nodeofferings), the control, worker and etcd offerings are updated but the cluster's serviceofferingid is not. listKubernetesClusters (and the UI) keep showing the offering the cluster was created with, even after every node has moved to a new one. The UI scale dialog hides the cluster-wide offering field in per node type mode, so there is no way to fix it from there.

This is the part of #14702 where every node type ends up on one offering, so the cluster offering is run by no node at all. When node types stay on different offerings, the cluster offering is still the fallback for types without their own, so it is left alone here.

step serviceofferingid controlofferingid workerofferingid
create with serviceofferingid=A A - -
scale with nodeofferings control=B, worker=B A (stale) B B

versions

4.21 and later (per node type offerings), including 4.22.

The steps to reproduce the bug

  1. Create a CKS cluster with serviceofferingid=A.
  2. Scale it with nodeofferings[0].node=control, nodeofferings[0].offering=B, nodeofferings[1].node=worker, nodeofferings[1].offering=B.
  3. listKubernetesClusters id=<cluster>: serviceofferingid is still A, while all nodes run on B.

What to do about it?

After a node type's offering is stored, if every node type that has nodes is on the same offering, set the cluster offering to it. If they differ, leave it as is, since node types without an offering of their own still use the cluster offering.

Activity

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