bhouse-nexthop commented on PR #14775: URL: https://github.com/apache/cloudstack/pull/14775#issuecomment-7091386017
Tested this change (a8cc28981d, cherry-picked onto a 24.0-based build) on a nested KVM lab: isolated network, CKS cluster with 1 control node and 1 worker (SSH ports 2222-2223), Kubernetes v1.33.13. | # | Scenario | Result | Evidence | |---|---|---|---| | 1 | Add-node of VMs that fail node validation | Pass | New PF rule 2224->22 and its firewall rule were created and then removed; the cluster's existing PF/firewall rules (2222, 2223, 6443) were untouched; cluster stayed Running | | 2 | Add-node of a VM that passes validation | Pass | Job succeeded; cluster Running at size 2; the node's 2224 PF and firewall rules kept | | 3 | Leftover rule pair for the same VM being re-added | Pass | Removed the node, then planted PF 2224->22 to that VM plus a 0.0.0.0/0 tcp firewall rule on 2224. Add-node logged `INFO ... Removing network rules [425, 426] on <ip> ports 2224-2224 left over from an earlier failed add-node to Kubernetes cluster b2-add`, created fresh rules, and succeeded (cluster Running, size 2, node Ready) | | 4 | Clashing rules that forward to a different VM | Pass | Planted PF 2224->22 to another VM plus a firewall rule on 2224. Add-node failed in about 2 s, before any change, with: `ports 2224-2224 are needed for SSH to the new nodes ... but these network rules use them: [<pf uuid> (PortForwarding, ports 2224-2224), <fw uuid> (Firewall, ports 2224-2224)]. They may be left over from a failed add-node; if so, remove them and retry`. Both rules left in place; cluster stayed Running at size 1 | Note on scenario 3: re-adding a VM that was already a node needed a manual `kubeadm reset` and a removal of `/home/cloud/success` on the VM. Without that, the join script exits with "Already provisioned!". This comes from the existing remove/join flow, not from this PR. -- 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]
