bhouse-nexthop opened a new issue, #14822: URL: https://github.com/apache/cloudstack/issues/14822
### 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
