bhouse-nexthop opened a new pull request, #14806:
URL: https://github.com/apache/cloudstack/pull/14806
### Description
This PR makes CKS scaling use the node type's offering for capacity planning
and for the cluster's stored cores/memory.
| Path | Before | Now |
|---|---|---|
| Capacity check before adding workers | cluster offering | worker offering |
| Cores/memory after a size scale | new workers at the cluster offering |
worker offering |
| Cores/memory after an offering scale | old offering read from the VMs
after they were upgraded (no change) | node type's offering on the cluster |
The node type's offering falls back to the cluster offering when none is
set, same as VM deployment (`getServiceOfferingForNodeTypeOnCluster`).
Fixes: #14805
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [x] Minor
- [ ] Trivial
### How Has This Been Tested?
- New unit tests in `KubernetesClusterScaleWorkerTest`:
- size scale stores cores/memory at the worker offering
- size scale falls back to the cluster offering when no worker offering is
set
- offering scale counts the old offering from the cluster, not the
already-upgraded VMs
- capacity check plans new workers with the worker offering
- New tests fail without the change; `KubernetesClusterScaleWorkerTest`,
`KubernetesClusterManagerImplTest`, `KubernetesClusterActionWorkerTest`,
`KubernetesClusterResourceModifierActionWorkerTest` pass.
#### How did you try to break this feature and the system with this change?
- Clusters without per-type offerings: lookup falls back to the cluster
offering, same numbers as before.
- Combined offering + size scale, both orders (up and down): totals end at
the new offering × new count.
- Etcd with no nodes: skips the lookup.
--
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]