bhouse-nexthop commented on PR #14609: URL: https://github.com/apache/cloudstack/pull/14609#issuecomment-7267101304
Tested at the current head, which adds the cleanup of an interrupted scale-up. Lab: a KVM lab running a main (24.0) build with this PR, Ceph RBD primary storage, a CKS cluster on Kubernetes 1.34.7 with 1 control and 1 worker node. **Race: scale and stop sent at the same moment.** 8 of 8 checks passed (gates included). The stop won and the scale was refused with "went from Running to Stopping ... please retry". The cluster ended `Stopped` with every VM stopped, and was still `Stopped` 90 s later. **Management server restarted in the middle of a scale-up.** 21 of 21 checks passed (gates included). The steps: 1. Sent `scaleKubernetesCluster size=2`. 2. Restarted the management server once the cluster was `Scaling` and the new worker VM existed. The new worker had not yet joined Kubernetes. | Check | Result | |---|---| | After the restart | the status scanner waited while the new VM could still join. About 11.5 min after the API came back, it failed the orphaned `Scaling` operation | | New worker VM | destroyed and expunged, and no longer part of the cluster. The original control and worker VMs were kept | | Cluster | `Running` at its stored size of 1, with 2 Kubernetes nodes Ready | | Event | a WARN `KUBERNETES.CLUSTER.SCALE` event: "A scale-up of Kubernetes cluster ... ended without completing, for example because the management server running it stopped. Removed worker VMs `<new worker>`, which never joined Kubernetes." | | `scaleKubernetesCluster size=2` afterwards | succeeded: 3 nodes Ready and 2 workers mapped | | `scaleKubernetesCluster size=1` | succeeded: `Running` with 1 worker and 2 nodes Ready | Before this change, the same test left the new worker VM mapped and running but outside Kubernetes. A later scale to 2 reported success without adding a node, and a scale-down then failed with `unable to cordon Kubernetes node <new worker>: NotFound`. -- 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]
