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

   Tested on a KVM lab running a main (24.0) build that includes this change. 
Primary storage is Ceph RBD. The CKS cluster is Kubernetes 1.34.7, 1 control 
and 2 worker nodes, on its isolated network. The PR targets 4.22; 
`validateNodes` is the same on both branches apart from this change.
   
   I deployed a CirrOS VM (its template is not marked for CKS) on the cluster's 
network. Then I called `addNodesToKubernetesCluster` with that VM and one of 
the cluster's existing workers.
   
   Result: 12 of 12 checks passed (gates included).
   
   - The whole request was refused (530), and the error named both VMs:
     ```
     Unable to add the nodes to the Kubernetes cluster: VM <cirros vm> is 
deployed with template <cirros template>, which is not marked for CKS; VM 
<worker> is deployed with template <system vm template>, which is not marked 
for CKS; VM <worker> is already part of the Kubernetes cluster <cluster>
     ```
   - The cluster's VM map did not change, and the cluster stayed Running.
   
   Before this change, both VMs would have been dropped from the request and 
the call would have reported success without adding anything (#14832).
   
   The existing worker is reported twice: once because the CKS system VM 
template it runs from is not marked for CKS, and once because it is already in 
the cluster. Both reasons are true.
   
   The CirrOS VM was destroyed afterwards.
   
   Not tested: a VM with no default NIC, and a VM whose default NIC is on 
another network (unit tests only).
   


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