- An error is encountered upon creating a new cluster and/or attempting to attach a node to an existing cluster: "Error: error attaching node <UUID> to cluster <UUID>: Error: timeout".
- Platform9 Managed Kubernetes - v4.0
- SELinux – Disabled
The /opt/pf9/pf9-kube/diagnostics_utils/node_check.sh script has a flag set to exit on error; however, due to the command for checking the status of SELinux returning a non-zero return code (1) when SELinux is disabled, this would cause the script to exit inadvertently, leading to a loop and eventually resulting in the attach timeout.
- First and foremost – it is highly recommended that the cluster be upgraded to a more recent, supported version.
- In lieu of that, the attached patch file may be applied to each affected node.
# patch -d/ -p2 0001-Disabling-exit-on-error-for-the-node_check-cli-as-se.patch