bhouse-nexthop opened a new issue, #14805: URL: https://github.com/apache/cloudstack/issues/14805
### problem Scaling a CKS cluster that has per-node-type offerings (worker / control / etcd) uses the wrong offering in `KubernetesClusterScaleWorker`: | Path | Uses | Should use | |---|---|---| | Capacity check before adding workers (`validateKubernetesClusterScaleSizeParameters`) | cluster offering | worker offering (what new workers are deployed with) | | Stored cores/memory after a size scale | new workers counted at the cluster offering | worker offering | | Stored cores/memory after an offering scale of a running cluster | old offering read from the VMs after they were upgraded, so the totals don't change | the node type's offering before the scale | Result: the capacity check passes or fails on the wrong numbers, and the cluster's cores/memory drift from what is deployed. ### versions 4.21+ (per-node-type offerings), present on 4.22 and main. ### The steps to reproduce the bug 1. Create a CKS cluster with a cluster offering of 2 vCPU and a worker offering of 4 vCPU. 2. Scale the cluster size up by 2. 3. The capacity check plans 2 × 2 vCPU; `cores` on the cluster grows by 4 instead of 8. Or: scale only the worker offering of a running cluster; `cores`/`memory` stay unchanged. ### What to do about it? Use the node type's offering (falling back to the cluster offering, as VM deployment does) for the capacity check and the cores/memory calculation. -- 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]
