bhouse-nexthop opened a new issue, #14772:
URL: https://github.com/apache/cloudstack/issues/14772

   ### problem
   
   `validate-cks-node` (run by `addNodesToKubernetesCluster` before an external 
node is rebooted into the kubeadm join userdata) checks only packages. It does 
not check `net.ipv4.ip_forward`, which `kubeadm join` preflight requires.
   
   | Template has | Today |
   |---|---|
   | all packages, `ip_forward=0` | validation passes, node is rebooted, 
`kubeadm join` fails preflight (`/proc/sys/net/ipv4/ip_forward contents are not 
set to 1`), the add fails with a harder-to-trace error |
   
   Nothing in the CKS userdata sets `ip_forward`, so it has to come from the 
template.
   
   ### versions
   
   4.22, main.
   
   ### The steps to reproduce the bug
   
   1. Build an external-node template with all required packages and 
`net.ipv4.ip_forward=0`.
   2. Add a VM from it to a CKS cluster with `addNodesToKubernetesCluster`.
   3. Validation passes; the join fails later in kubeadm preflight.
   
   ### What to do about it?
   
   Have `validate-cks-node` fail when `ip_forward` is not 1, so the add is 
rejected up front with a clear reason.
   


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