Skip to content

Instantly share code, notes, and snippets.

@irizzant
Last active June 14, 2021 12:41
Show Gist options
  • Save irizzant/011c3ed41bcc506f664e85fbe3045dd1 to your computer and use it in GitHub Desktop.
Save irizzant/011c3ed41bcc506f664e85fbe3045dd1 to your computer and use it in GitHub Desktop.
kubespray issue Output of ansible run
PLAY [localhost] ****************************************************************************************************************************************************************************
PLAY [Add kube-master nodes to kube_control_plane] ******************************************************************************************************************************************
skipping: no hosts matched
PLAY [Add kube-node nodes to kube_node] *****************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Add k8s-cluster nodes to k8s_cluster] *************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Add calico-rr nodes to calico_rr] *****************************************************************************************************************************************************
skipping: no hosts matched
PLAY [Add no-floating nodes to no_floating] *************************************************************************************************************************************************
skipping: no hosts matched
PLAY [bastion[0]] ***************************************************************************************************************************************************************************
skipping: no hosts matched
PLAY [k8s_cluster:etcd:calico_rr] ***********************************************************************************************************************************************************
Monday 14 June 2021 12:38:05 +0000 (0:00:00.057) 0:00:00.057 ***********
TASK [kubespray-defaults : Configure defaults] **********************************************************************************************************************************************
ok: [ master5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master6] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker1] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker2] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker3] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
Monday 14 June 2021 12:38:05 +0000 (0:00:00.590) 0:00:00.648 ***********
Monday 14 June 2021 12:38:05 +0000 (0:00:00.145) 0:00:00.794 ***********
Monday 14 June 2021 12:38:06 +0000 (0:00:00.074) 0:00:00.868 ***********
Monday 14 June 2021 12:38:06 +0000 (0:00:00.353) 0:00:01.221 ***********
Monday 14 June 2021 12:38:06 +0000 (0:00:00.074) 0:00:01.295 ***********
PLAY [Gather facts] *************************************************************************************************************************************************************************
Monday 14 June 2021 12:38:06 +0000 (0:00:00.411) 0:00:01.707 ***********
TASK [Gather minimal facts] *****************************************************************************************************************************************************************
ok: [ master4]
ok: [ worker1]
ok: [ master5]
ok: [ master6]
ok: [ worker2]
ok: [ worker4]
ok: [ worker3]
ok: [ worker5]
Monday 14 June 2021 12:38:08 +0000 (0:00:01.756) 0:00:03.463 ***********
TASK [Gather necessary facts (network)] *****************************************************************************************************************************************************
ok: [ master4]
ok: [ master6]
ok: [ master5]
ok: [ worker1]
ok: [ worker2]
ok: [ worker4]
ok: [ worker3]
ok: [ worker5]
Monday 14 June 2021 12:38:11 +0000 (0:00:02.514) 0:00:05.978 ***********
TASK [Gather necessary facts (hardware)] ****************************************************************************************************************************************************
ok: [ master4]
ok: [ master6]
ok: [ master5]
ok: [ worker1]
ok: [ worker2]
ok: [ worker4]
ok: [ worker3]
ok: [ worker5]
PLAY [Download images to ansible host cache via first kube_control_plane node] **************************************************************************************************************
Monday 14 June 2021 12:38:13 +0000 (0:00:02.504) 0:00:08.483 ***********
Monday 14 June 2021 12:38:13 +0000 (0:00:00.122) 0:00:08.605 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.297) 0:00:08.903 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.126) 0:00:09.029 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.129) 0:00:09.158 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.119) 0:00:09.278 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.118) 0:00:09.397 ***********
Monday 14 June 2021 12:38:14 +0000 (0:00:00.185) 0:00:09.582 ***********
PLAY [Prepare nodes for upgrade] ************************************************************************************************************************************************************
Monday 14 June 2021 12:38:14 +0000 (0:00:00.264) 0:00:09.847 ***********
TASK [kubespray-defaults : Configure defaults] **********************************************************************************************************************************************
ok: [ master4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master6] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker1] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker2] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker3] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
Monday 14 June 2021 12:38:15 +0000 (0:00:00.416) 0:00:10.264 ***********
Monday 14 June 2021 12:38:15 +0000 (0:00:00.287) 0:00:10.552 ***********
TASK [kubespray-defaults : create fallback_ips_base] ****************************************************************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:15 +0000 (0:00:00.119) 0:00:10.671 ***********
TASK [kubespray-defaults : set fallback_ips] ************************************************************************************************************************************************
ok: [ master5]
ok: [ master6]
ok: [ master4]
ok: [ worker2]
ok: [ worker1]
ok: [ worker3]
ok: [ worker4]
ok: [ worker5]
Monday 14 June 2021 12:38:16 +0000 (0:00:00.417) 0:00:11.089 ***********
Monday 14 June 2021 12:38:16 +0000 (0:00:00.074) 0:00:11.163 ***********
Monday 14 June 2021 12:38:16 +0000 (0:00:00.407) 0:00:11.571 ***********
TASK [kubernetes/preinstall : Create kubernetes directories] ********************************************************************************************************************************
ok: [ master4] => (item=/etc/kubernetes)
ok: [ master6] => (item=/etc/kubernetes)
ok: [ master5] => (item=/etc/kubernetes)
ok: [ master4] => (item=/etc/kubernetes/ssl)
ok: [ master6] => (item=/etc/kubernetes/ssl)
ok: [ master5] => (item=/etc/kubernetes/ssl)
ok: [ master4] => (item=/etc/kubernetes/manifests)
ok: [ master6] => (item=/etc/kubernetes/manifests)
ok: [ master5] => (item=/etc/kubernetes/manifests)
ok: [ master4] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker1] => (item=/etc/kubernetes)
ok: [ worker2] => (item=/etc/kubernetes)
ok: [ master6] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ master5] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ master4] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker1] => (item=/etc/kubernetes/ssl)
ok: [ worker2] => (item=/etc/kubernetes/ssl)
ok: [ master6] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ master5] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker3] => (item=/etc/kubernetes)
ok: [ worker1] => (item=/etc/kubernetes/manifests)
ok: [ worker2] => (item=/etc/kubernetes/manifests)
ok: [ worker3] => (item=/etc/kubernetes/ssl)
ok: [ worker4] => (item=/etc/kubernetes)
ok: [ worker5] => (item=/etc/kubernetes)
ok: [ worker1] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker4] => (item=/etc/kubernetes/ssl)
ok: [ worker3] => (item=/etc/kubernetes/manifests)
ok: [ worker1] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker2] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker5] => (item=/etc/kubernetes/ssl)
ok: [ worker4] => (item=/etc/kubernetes/manifests)
ok: [ worker3] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker2] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker4] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker5] => (item=/etc/kubernetes/manifests)
ok: [ worker4] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker3] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
ok: [ worker5] => (item=/usr/local/bin/kubernetes-scripts)
ok: [ worker5] => (item=/usr/libexec/kubernetes/kubelet-plugins/volume/exec)
Monday 14 June 2021 12:38:20 +0000 (0:00:04.050) 0:00:15.622 ***********
TASK [kubernetes/preinstall : Create other directories] *************************************************************************************************************************************
ok: [ master4] => (item=/usr/local/bin)
ok: [ master5] => (item=/usr/local/bin)
ok: [ worker2] => (item=/usr/local/bin)
ok: [ master6] => (item=/usr/local/bin)
ok: [ worker1] => (item=/usr/local/bin)
ok: [ worker3] => (item=/usr/local/bin)
ok: [ worker4] => (item=/usr/local/bin)
ok: [ worker5] => (item=/usr/local/bin)
PLAY [Upgrade container engine on non-cluster nodes] ****************************************************************************************************************************************
skipping: no hosts matched
PLAY [etcd] *********************************************************************************************************************************************************************************
Monday 14 June 2021 12:38:22 +0000 (0:00:01.301) 0:00:16.923 ***********
TASK [kubespray-defaults : Configure defaults] **********************************************************************************************************************************************
ok: [ master5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master6] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
Monday 14 June 2021 12:38:22 +0000 (0:00:00.101) 0:00:17.024 ***********
Monday 14 June 2021 12:38:22 +0000 (0:00:00.239) 0:00:17.264 ***********
Monday 14 June 2021 12:38:22 +0000 (0:00:00.059) 0:00:17.324 ***********
Monday 14 June 2021 12:38:22 +0000 (0:00:00.122) 0:00:17.446 ***********
Monday 14 June 2021 12:38:22 +0000 (0:00:00.059) 0:00:17.505 ***********
Monday 14 June 2021 12:38:22 +0000 (0:00:00.126) 0:00:17.632 ***********
TASK [Gen_certs | Get etcd certificate serials] *********************************************************************************************************************************************
ok: [ master4]
ok: [ master5]
ok: [ master6]
Monday 14 June 2021 12:38:23 +0000 (0:00:00.557) 0:00:18.189 ***********
TASK [Set etcd_client_cert_serial] **********************************************************************************************************************************************************
ok: [ master4]
ok: [ master5]
ok: [ master6]
PLAY [k8s_cluster] **************************************************************************************************************************************************************************
Monday 14 June 2021 12:38:23 +0000 (0:00:00.190) 0:00:18.380 ***********
TASK [kubespray-defaults : Configure defaults] **********************************************************************************************************************************************
ok: [ master4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ master6] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker1] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker2] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker3] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [ worker4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
Monday 14 June 2021 12:38:23 +0000 (0:00:00.243) 0:00:18.624 ***********
Monday 14 June 2021 12:38:24 +0000 (0:00:00.258) 0:00:18.882 ***********
Monday 14 June 2021 12:38:24 +0000 (0:00:00.061) 0:00:18.944 ***********
Monday 14 June 2021 12:38:24 +0000 (0:00:00.235) 0:00:19.179 ***********
Monday 14 June 2021 12:38:24 +0000 (0:00:00.039) 0:00:19.218 ***********
Monday 14 June 2021 12:38:24 +0000 (0:00:00.217) 0:00:19.436 ***********
TASK [Gen_certs | Get etcd certificate serials] *********************************************************************************************************************************************
ok: [ master4]
ok: [ master5]
ok: [ worker1]
ok: [ master6]
ok: [ worker3]
ok: [ worker4]
ok: [ worker2]
ok: [ worker5]
Monday 14 June 2021 12:38:25 +0000 (0:00:00.925) 0:00:20.362 ***********
TASK [Set etcd_client_cert_serial] **********************************************************************************************************************************************************
ok: [ master4]
ok: [ master5]
ok: [ master6]
ok: [ worker1]
ok: [ worker2]
ok: [ worker4]
ok: [ worker3]
ok: [ worker5]
PLAY [Handle upgrades to master components first to maintain backwards compat.] *************************************************************************************************************
Monday 14 June 2021 12:38:26 +0000 (0:00:00.640) 0:00:21.003 ***********
TASK [kubespray-defaults : Configure defaults] **********************************************************************************************************************************************
ok: [ master4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
Monday 14 June 2021 12:38:26 +0000 (0:00:00.079) 0:00:21.082 ***********
Monday 14 June 2021 12:38:26 +0000 (0:00:00.257) 0:00:21.339 ***********
Monday 14 June 2021 12:38:26 +0000 (0:00:00.047) 0:00:21.387 ***********
Monday 14 June 2021 12:38:26 +0000 (0:00:00.066) 0:00:21.453 ***********
Monday 14 June 2021 12:38:26 +0000 (0:00:00.059) 0:00:21.513 ***********
Monday 14 June 2021 12:38:26 +0000 (0:00:00.076) 0:00:21.589 ***********
TASK [kubernetes/tokens : Check_tokens | check if the tokens have already been generated on first master] ***********************************************************************************
ok: [ master4 -> 10.118.122.37]
Monday 14 June 2021 12:38:27 +0000 (0:00:00.428) 0:00:22.018 ***********
TASK [kubernetes/tokens : Check_tokens | Set default value for 'sync_tokens' and 'gen_tokens' to false] *************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:27 +0000 (0:00:00.069) 0:00:22.087 ***********
Monday 14 June 2021 12:38:27 +0000 (0:00:00.053) 0:00:22.141 ***********
TASK [kubernetes/tokens : Check tokens | check if a cert already exists] ********************************************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:27 +0000 (0:00:00.261) 0:00:22.403 ***********
TASK [kubernetes/tokens : Check_tokens | Set 'sync_tokens' to true] *************************************************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:27 +0000 (0:00:00.101) 0:00:22.505 ***********
TASK [kubernetes/tokens : Make sure the tokens directory exits] *****************************************************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:27 +0000 (0:00:00.293) 0:00:22.798 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.090) 0:00:22.889 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.137) 0:00:23.026 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.172) 0:00:23.199 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.082) 0:00:23.281 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.062) 0:00:23.343 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.061) 0:00:23.405 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.101) 0:00:23.507 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.098) 0:00:23.605 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.061) 0:00:23.667 ***********
Monday 14 June 2021 12:38:28 +0000 (0:00:00.056) 0:00:23.724 ***********
TASK [kubernetes/control-plane : Create kube-scheduler config] ******************************************************************************************************************************
ok: [ master4]
Monday 14 June 2021 12:38:29 +0000 (0:00:00.596) 0:00:24.321 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.058) 0:00:24.380 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.053) 0:00:24.434 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.050) 0:00:24.484 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.095) 0:00:24.580 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.084) 0:00:24.665 ***********
Monday 14 June 2021 12:38:29 +0000 (0:00:00.056) 0:00:24.721 ***********
TASK [kubernetes/control-plane : Install | Copy kubectl binary from download dir] ***********************************************************************************************************
fatal: [ master4]: FAILED! => {"changed": false, "msg": "Source /tmp/releases/kubectl-v1.20.7-amd64 not found"}
NO MORE HOSTS LEFT **************************************************************************************************************************************************************************
PLAY RECAP **********************************************************************************************************************************************************************************
master4 : ok=22 changed=0 unreachable=0 failed=1 skipped=48 rescued=0 ignored=0
master5 : ok=14 changed=0 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0
master6 : ok=14 changed=0 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0
worker1 : ok=11 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
worker2 : ok=11 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
worker3 : ok=11 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
worker4 : ok=11 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
worker5 : ok=11 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
Monday 14 June 2021 12:38:30 +0000 (0:00:00.556) 0:00:25.279 ***********
===============================================================================
kubernetes/preinstall : Create kubernetes directories -------------------------------------------------------------------------------------------------------------------------------- 4.05s
Gather necessary facts (network) ----------------------------------------------------------------------------------------------------------------------------------------------------- 2.51s
Gather necessary facts (hardware) ---------------------------------------------------------------------------------------------------------------------------------------------------- 2.51s
Gather minimal facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.76s
kubernetes/preinstall : Create other directories ------------------------------------------------------------------------------------------------------------------------------------- 1.30s
Gen_certs | Get etcd certificate serials --------------------------------------------------------------------------------------------------------------------------------------------- 0.93s
Set etcd_client_cert_serial ---------------------------------------------------------------------------------------------------------------------------------------------------------- 0.64s
kubernetes/control-plane : Create kube-scheduler config ------------------------------------------------------------------------------------------------------------------------------ 0.60s
kubespray-defaults : Configure defaults ---------------------------------------------------------------------------------------------------------------------------------------------- 0.59s
kubernetes/control-plane : Install | Copy kubectl binary from download dir ----------------------------------------------------------------------------------------------------------- 0.56s
Gen_certs | Get etcd certificate serials --------------------------------------------------------------------------------------------------------------------------------------------- 0.56s
kubernetes/tokens : Check_tokens | check if the tokens have already been generated on first master ----------------------------------------------------------------------------------- 0.43s
kubespray-defaults : set fallback_ips ------------------------------------------------------------------------------------------------------------------------------------------------ 0.42s
kubespray-defaults : Configure defaults ---------------------------------------------------------------------------------------------------------------------------------------------- 0.42s
kubespray-defaults : Populates no_proxy to all hosts --------------------------------------------------------------------------------------------------------------------------------- 0.41s
kubespray-defaults : Populates no_proxy to all hosts --------------------------------------------------------------------------------------------------------------------------------- 0.41s
kubespray-defaults : set fallback_ips ------------------------------------------------------------------------------------------------------------------------------------------------ 0.35s
kubespray-defaults : Gather ansible_default_ipv4 from all hosts ---------------------------------------------------------------------------------------------------------------------- 0.30s
kubernetes/tokens : Make sure the tokens directory exits ----------------------------------------------------------------------------------------------------------------------------- 0.29s
kubespray-defaults : Gather ansible_default_ipv4 from all hosts ---------------------------------------------------------------------------------------------------------------------- 0.29s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment