bhouse-nexthop opened a new issue, #14836: URL: https://github.com/apache/cloudstack/issues/14836
### Problem A CKS cluster's `size` counts worker nodes added with `addNodesToKubernetesCluster`, but `scaleKubernetesCluster` with `size` only counts CKS-created workers when picking nodes to remove. | Step | Result | |---|---| | Cluster: 1 control, 4 CKS-created workers, 2 added nodes (`size` = 6) | | | `scaleKubernetesCluster size=5` | Job succeeds, log says `No nodes to remove from Kubernetes cluster`, no VM removed, `size` stored as 5 | | Real cluster | still 6 workers; `size`, cores and memory no longer match the nodes | | Later scale-up | waits for `control + size` Ready nodes; the real count is higher, so the job sits in `Scaling` until the scale timeout | Scaling below the number of added nodes also "succeeds" without removing them. ### Expected - Scale-down by `size` removes enough CKS-created workers that created + added workers equals the new size. - A size below the number of added nodes is rejected (scaling never removes added nodes; `removeNodesFromKubernetesCluster` does). ### Versions 4.22 (also main). KVM, isolated network. Related: `scaleKubernetesCluster nodeids=<added node>` skips the node but still subtracts it from `size`, with the same result. -- 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]
