New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running pre-flight checks hang #1477
Comments
With v10 parameter. [root@vm03 etcd]# kubeadm join vm10.andrefagundes.org:6443 --token 07nh7g.v8p5fcs61fn3o2h4 --discovery-token-ca-cert-hash sha256:039a5f9229dafe39d4a51af6899c20adff1de5dda23f780ac9b896e95f95623a --experimental-control-plane --certificate-key cf3c8ca4f74751bfe7fc9d3e00e03a37619d36a6d6fb79fb5ba3645d74dd7bf4 -v10 |
Another info ... vm10.andrefagundes.org is a Haproxy in front of my control plane. |
seems like a networking issue to me. |
Yes, I also changed vm10 to point to control plane. I saw traffic on control plane coming in monitoring with TCDUMP. |
are you seeing any outstanding errors in the kubelet logs? |
There are several errors in the logs. I also tried to reinstall the cluster few times and each time I get different errors. I am giving up. We can close the case. Thanks!! |
does creating a single control plane node + some worker nodes work for you or does the problem only happen when joining additional control plane nodes? |
Seems like kubeadm init doesn't created/configured cluster-info properly |
I have the same error after i executed the command 'kubeadm join ...' : Running pre-flight checks stuck. I have no idea to handle it. |
I had the same issue. I needed to reboot the master and after that executing the 'kubeadm join ...' command again on the nodes worked for me. |
i had same issues with |
fall back to kubelet & kubeadm v1.13.1 fixed this issues |
make sure you call |
Bumped into the same issue but the problem was traced down to network connectivity my side with my keepalived and haproxy daemons that were configured wrongly preventing the hang master node to join the cluster via the API service VIP Worth pointing out that running the kubeadm init/join with --v=2 was how I got to resolve it |
kubeadm v1.15 kubeadm join .. --v=2 I0802 11:47:31.027812 359 token.go:202] [discovery] Failed to connect to API Server "": token id "r5uyqk" is invalid for this cluster or it has expired. Use "kubeadm token create" on the control-plane node to create a new valid token kubeadm init phase upload-certs --upload-certs then kubeadm join sucess |
In my case, I was able to successfully join the node by stopping the firewall on the Master node.
|
This one worked like charm . This node has joined the cluster:
Run 'kubectl get nodes' on the control-plane to see this node join the cluster. |
looking at the log in the OP again, this is not a "hang" in the preflight, but rather the cluster-info config map cannot be accessed, the only way this could happen if the "boostrap-token" phase of "init" is skipped. looking at later reports, i see networking and expired token problems which fall under "support" items and not bugs. /triage support if you find a real bug please, open a new issue. |
systemctl stop firewalld |
I find traffic was not allowed to connect master node. adding rules in sg solved my problem |
Did you find any solution? |
what inbound port you allowed? |
I was unable to join my master node with Here is what i get when i run with
Any help would be appreciated |
try asking for more help in the support channels: the error above indicates that the worker node cannot reach https://172.31.41.122:6443 |
Read the following document and open the ports on your server. Problems will be solved. |
In my case, I was able to successfully join the node by giving all traffic access in Security group on the Master node. Note: Allowing All traffic is only for self practice do not do as Organization level. |
you need to create the firewall opening port |
What keywords did you search in kubeadm issues before filing this one?
preflight
hang
kubeadm join
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:51:21Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Environment:
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:53:57Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Kernel (e.g.
uname -a
):Linux vm02.andrefagundes.org 3.10.0-957.5.1.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Others:
What happened?
Problem when joining a control-plane. The process hang with message Running pre-flight checks. See below:
[root@vm02 ~]# kubeadm join vm10.andrefagundes.org:6443 --token 07nh7g.v8p5fcs61fn3o2h4 --discovery-token-ca-cert-hash sha256:039a5f9229dafe39d4a51af6899c20adff1de5dda23f780ac9b896e95f95623a --experimental-control-plane --certificate-key 8afd066a7b8baa2abf86ba1b2d5e7f29625875d8f78a3e136f7fd35605b4775
[preflight] Running pre-flight checks
What you expected to happen?
I was expecting the node to be joined or a message indicating an error.
How to reproduce it (as minimally and precisely as possible)?
I am following the official documentation below.
https://kubernetes.io/docs/setup/independent/high-availability/#external-etcd-nodes
Anything else we need to know?
No.
The text was updated successfully, but these errors were encountered: