bhouse-nexthop commented on PR #14916:
URL: https://github.com/apache/cloudstack/pull/14916#issuecomment-7266121455

   Tested on a KVM lab (nested, Ceph RBD primary storage), with the cluster 
autoscaler that the v1.33.1 CKS ISO deploys 
(`apache/cloudstack-kubernetes-autoscaler:latest`). Each cluster: 1 control 
node, 1 worker, autoscaling min 1, max 3, owned by a project unless noted. The 
load was a deployment of 2 pods, each asking for 60% of a worker's CPU.
   
   On 4.22 (4.22.1.1 plus this change):
   
   | Build | Check | Result |
   |---|---|---|
   | without the change | `listKubernetesClusters id=<id>` signed with the key 
from the cluster's `cloudstack-secret` | 200, empty list (with `projectid` 
added: the cluster) |
   | without the change | load that needs a second worker | no scale-up in 15 
min; autoscaler log: `Unable to fetch cluster with id` |
   | with the change | the same call, id only | 200, the cluster |
   | with the change | load | scaled to 2 workers, both Ready, both pods 
Running; no fetch errors |
   | with the change | load removed | back to 1 worker after the node was 
unneeded for 10 min (removed with `nodeids`) |
   
   On main the same steps pass, same results: the bug reproduced on one project 
cluster, then with the change the same cluster scaled up and back down. A 
cluster owned by an account (not a project) also scaled up and down with the 
change, and its id-only lookup still works.
   
   Not tested: project roles that deny `listKubernetesClusters` (unit tests 
only), domain admin callers.
   


-- 
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]

Reply via email to