bhouse-nexthop commented on PR #14837: URL: https://github.com/apache/cloudstack/pull/14837#issuecomment-7132196653
Lab re-run of the updated change on a 4.22-based build (94c33ae45b): KVM, isolated network. Cluster with 1 control and 4 CKS-created workers, plus 2 nodes added with addNodesToKubernetesCluster (size 6). | step | result | |---|---| | scale `size=5` | one CKS-created worker removed (the newest), 6 nodes Ready, size 5 | | scale `size=6` | Running, 7 nodes Ready | | scale `size=1` | rejected: `cannot be scaled to size 1, it has 2 nodes added with addNodesToKubernetesCluster …`; nothing changed | | scale `nodeids=<control VM>` | rejected: `nodeids can only include worker nodes, control and etcd nodes can not be removed by scaling`; nothing removed, Running | | scale `nodeids=<etcd VM>` (external etcd cluster) | rejected with the same message; nothing removed, Running | | scale `nodeids=<added node>` | rejected: `nodeids can not include nodes added with addNodesToKubernetesCluster …`; nothing removed, Running | | scale `nodeids=<CKS worker>` | removed, size 6 → 5 | | scale `autoscalingenabled=true minsize=1 maxsize=5` | rejected: `cannot be scaled to minsize 1, it has 2 nodes added …`; autoscaling stays off | | listKubernetesClusters | VM entries carry `iscontrolnode` (true only on the control VM), plus `isexternalnode`/`isetcdnode` | | UI | shipped bundle hides the actions column when `isexternalnode`, `iscontrolnode` or `isetcdnode` is set (checked in the built JS) | Drift repair. Drift was simulated in the database the way the old no-op scale-down left it: the stored size lowered, and cores/memory lowered by the same number of workers. | step | stored size / cores / memory | result | |---|---|---| | drift by 1, cluster stopped, scale `size=<stored>` with only a service offering change | 4 / 10 / 23552 → 5 / 12 / 24576 | no VM created or destroyed; size, cores and memory match the real VMs (added nodes keep their offering); log `records … 4 worker nodes but has … 5, correcting it` | | start | 5 / 12 / 24576 | all 6 nodes Ready | | drift by 2, scale `size=<stored+1>` | 3 / 8 / 16384 | rejected: `records size 3 but has 5 worker nodes. Scale it to size 5 first to correct this, then to the size wanted` | | scale `size=<real>` (5) | → 5 / 12 / 24576 | accepted in 2 s, no VM change, count corrected | -- 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]
