bhouse-nexthop opened a new pull request, #14773: URL: https://github.com/apache/cloudstack/pull/14773
### Description Fixes #14772 `validate-cks-node` now also checks `net.ipv4.ip_forward`, which `kubeadm join` preflight requires. | | Before | After | |---|---|---| | `ip_forward=0`, packages OK | exit 0, join fails later in kubeadm preflight | message + exit 1, add rejected up front | | `ip_forward=0`, packages missing | packages reported | both reported in one run | | `ip_forward=1` | unchanged | unchanged | - Reads `/proc/sys/net/ipv4/ip_forward` rather than calling `sysctl`, which is not on a non-root user's PATH on Debian. - Checks the live value. A value set at runtime but not persisted will pass here and still be lost on the reboot that follows. Touches the same script as #14756 (missing-package array). The two merge cleanly; at most a trivial conflict depending on merge order. ### Types of changes - [x] Bug fix (non-breaking change which fixes an issue) ### Bug Severity - [x] Minor ### How Has This Been Tested? Ran the script in bash with `dpkg` stubbed and the `/proc` path pointed at a temp file: | dpkg | ip_forward | Exit | Output | |---|---|---|---| | installed | 1 | 0 | `0` / `0` | | installed | 0 | 1 | ip_forward message, `0` / `0` | | installed | file missing | 1 | ip_forward message, `0` / `0` | | missing | 1 | 1 | package list | | missing | 0 | 1 | ip_forward message + package list | `bash -n` clean. -- 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]
