Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patsevanton/5e71146c8a0e71667599d3daaaf80e44 to your computer and use it in GitHub Desktop.
Save patsevanton/5e71146c8a0e71667599d3daaaf80e44 to your computer and use it in GitHub Desktop.
ansible-playbook -i inventory/sample/inventory.ini --become --become-user=root cluster.yml
PLAY [localhost] *******************************************************************************************************************************
TASK [Check ansible version >=2.7.8] ***********************************************************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.063) 0:00:00.063 ********
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
[WARNING]: Could not match supplied host pattern, ignoring: bastion
PLAY [bastion[0]] ******************************************************************************************************************************
skipping: no hosts matched
PLAY [k8s-cluster:etcd] ************************************************************************************************************************
TASK [download : prep_download | Set a few facts] **********************************************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.092) 0:00:00.156 ********
TASK [download : Set image info command for containerd] ****************************************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.109) 0:00:00.265 ********
TASK [download : Register docker images info] **************************************************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.109) 0:00:00.374 ********
TASK [download : prep_download | Create staging directory on remote node] **********************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.105) 0:00:00.480 ********
TASK [download : prep_download | Create local cache for files and images] **********************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.121) 0:00:00.601 ********
TASK [download : prep_download | On localhost, check if passwordless root is possible] *********************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.056) 0:00:00.658 ********
TASK [download : prep_download | On localhost, check if user has access to docker without using sudo] ******************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.056) 0:00:00.714 ********
TASK [download : prep_download | Parse the outputs of the previous commands] *******************************************************************
Tuesday 27 August 2019 11:03:58 +0600 (0:00:00.053) 0:00:00.768 ********
TASK [download : prep_download | Check that local user is in group or can become root] *********************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.113) 0:00:00.881 ********
TASK [download : Use cri-o for cri connection] *************************************************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.109) 0:00:00.991 ********
TASK [download : Use containerd for cri connetion] *********************************************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.116) 0:00:01.107 ********
TASK [download : Use docker for cri connetion] *************************************************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.106) 0:00:01.213 ********
ok: [node1]
ok: [node2]
ok: [node3]
TASK [download : include_tasks] ****************************************************************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.152) 0:00:01.366 ********
TASK [download : download | Get kubeadm binary and list of required images] ********************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.103) 0:00:01.470 ********
TASK [download : download | Download files / images] *******************************************************************************************
Tuesday 27 August 2019 11:03:59 +0600 (0:00:00.110) 0:00:01.580 ********
TASK [download : download | Sync files / images from ansible host to nodes] ********************************************************************
Tuesday 27 August 2019 11:04:01 +0600 (0:00:01.294) 0:00:02.875 ********
TASK [kubespray-defaults : Configure defaults] *************************************************************************************************
Tuesday 27 August 2019 11:04:02 +0600 (0:00:01.292) 0:00:04.168 ********
ok: [node1] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [node2] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [node3] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
TASK [bootstrap-os : Fetch /etc/os-release] ****************************************************************************************************
Tuesday 27 August 2019 11:04:02 +0600 (0:00:00.249) 0:00:04.417 ********
ok: [node1]
ok: [node2]
ok: [node3]
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:02 +0600 (0:00:00.383) 0:00:04.800 ********
included: /home/user/github/prepare-vm-for-kubespray/kubespray/roles/bootstrap-os/tasks/bootstrap-centos.yml for node1, node2, node3
TASK [bootstrap-os : Check if this is an atomic host] ******************************************************************************************
Tuesday 27 August 2019 11:04:03 +0600 (0:00:00.181) 0:00:04.982 ********
ok: [node2]
ok: [node1]
ok: [node3]
TASK [bootstrap-os : Store the fact if this is an atomic host] *********************************************************************************
Tuesday 27 August 2019 11:04:03 +0600 (0:00:00.702) 0:00:05.684 ********
ok: [node1]
ok: [node2]
ok: [node3]
TASK [bootstrap-os : Check presence of fastestmirror.conf] *************************************************************************************
Tuesday 27 August 2019 11:04:04 +0600 (0:00:00.257) 0:00:05.942 ********
ok: [node2]
ok: [node1]
ok: [node3]
TASK [bootstrap-os : Disable fastestmirror plugin if requested] ********************************************************************************
Tuesday 27 August 2019 11:04:04 +0600 (0:00:00.586) 0:00:06.529 ********
ok: [node2]
ok: [node1]
ok: [node3]
TASK [bootstrap-os : Add proxy to /etc/yum.conf if http_proxy is defined] **********************************************************************
Tuesday 27 August 2019 11:04:05 +0600 (0:00:00.659) 0:00:07.188 ********
ok: [node2]
ok: [node1]
ok: [node3]
TASK [bootstrap-os : Install libselinux-python] ************************************************************************************************
Tuesday 27 August 2019 11:04:05 +0600 (0:00:00.589) 0:00:07.778 ********
ok: [node2]
ok: [node3]
ok: [node1]
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:01.249) 0:00:09.027 ********
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.111) 0:00:09.139 ********
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.116) 0:00:09.255 ********
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.115) 0:00:09.370 ********
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.112) 0:00:09.483 ********
TASK [bootstrap-os : include_tasks] ************************************************************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.116) 0:00:09.600 ********
TASK [bootstrap-os : Create remote_tmp for it is used by another module] ***********************************************************************
Tuesday 27 August 2019 11:04:07 +0600 (0:00:00.110) 0:00:09.710 ********
ok: [node2]
ok: [node1]
ok: [node3]
TASK [bootstrap-os : Gather host facts to get ansible_os_family] *******************************************************************************
Tuesday 27 August 2019 11:04:08 +0600 (0:00:00.732) 0:00:10.443 ********
ok: [node2]
ok: [node3]
ok: [node1]
TASK [bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, Suse and ClearLinux)] ****************************************
Tuesday 27 August 2019 11:04:09 +0600 (0:00:01.261) 0:00:11.704 ********
ok: [node2]
ok: [node3]
changed: [node1]
TASK [bootstrap-os : Assign inventory name to unconfigured hostnames (CoreOS, Suse and ClearLinux only)] ***************************************
Tuesday 27 August 2019 11:04:11 +0600 (0:00:01.532) 0:00:13.236 ********
TASK [bootstrap-os : Update hostname fact (CoreOS, Suse and ClearLinux only)] ******************************************************************
Tuesday 27 August 2019 11:04:11 +0600 (0:00:00.113) 0:00:13.350 ********
TASK [bootstrap-os : Install ceph-commmon package] *********************************************************************************************
Tuesday 27 August 2019 11:04:11 +0600 (0:00:00.110) 0:00:13.460 ********
TASK [bootstrap-os : Ensure bash_completion.d folder exists] ***********************************************************************************
Tuesday 27 August 2019 11:04:11 +0600 (0:00:00.103) 0:00:13.563 ********
ok: [node2]
ok: [node1]
ok: [node3]
PLAY [k8s-cluster:etcd] ************************************************************************************************************************
TASK [download : prep_download | Set a few facts] **********************************************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.603) 0:00:14.167 ********
TASK [download : Set image info command for containerd] ****************************************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.109) 0:00:14.276 ********
TASK [download : Register docker images info] **************************************************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.112) 0:00:14.389 ********
TASK [download : prep_download | Create staging directory on remote node] **********************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.129) 0:00:14.519 ********
TASK [download : prep_download | Create local cache for files and images] **********************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.111) 0:00:14.631 ********
TASK [download : prep_download | On localhost, check if passwordless root is possible] *********************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.060) 0:00:14.692 ********
TASK [download : prep_download | On localhost, check if user has access to docker without using sudo] ******************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.059) 0:00:14.751 ********
TASK [download : prep_download | Parse the outputs of the previous commands] *******************************************************************
Tuesday 27 August 2019 11:04:12 +0600 (0:00:00.057) 0:00:14.808 ********
TASK [download : prep_download | Check that local user is in group or can become root] *********************************************************
Tuesday 27 August 2019 11:04:13 +0600 (0:00:00.109) 0:00:14.918 ********
TASK [download : Use cri-o for cri connection] *************************************************************************************************
Tuesday 27 August 2019 11:04:13 +0600 (0:00:00.112) 0:00:15.031 ********
TASK [download : Use containerd for cri connetion] *********************************************************************************************
Tuesday 27 August 2019 11:04:13 +0600 (0:00:00.108) 0:00:15.139 ********
TASK [download : Use docker for cri connetion] *************************************************************************************************
Tuesday 27 August 2019 11:04:13 +0600 (0:00:00.113) 0:00:15.253 ********
fatal: [node1]: FAILED! => {"msg": "The field 'environment' has an invalid value, which includes an undefined variable. The error was: 'dict object' has no attribute 'address'\n\nThe error appears to have been in '/home/user/github/prepare-vm-for-kubespray/kubespray/roles/download/tasks/main.yml': line 20, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Use docker for cri connetion\n ^ here\n"}
fatal: [node2]: FAILED! => {"msg": "The field 'environment' has an invalid value, which includes an undefined variable. The error was: 'dict object' has no attribute 'address'\n\nThe error appears to have been in '/home/user/github/prepare-vm-for-kubespray/kubespray/roles/download/tasks/main.yml': line 20, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Use docker for cri connetion\n ^ here\n"}
fatal: [node3]: FAILED! => {"msg": "The field 'environment' has an invalid value, which includes an undefined variable. The error was: 'dict object' has no attribute 'address'\n\nThe error appears to have been in '/home/user/github/prepare-vm-for-kubespray/kubespray/roles/download/tasks/main.yml': line 20, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Use docker for cri connetion\n ^ here\n"}
NO MORE HOSTS LEFT *****************************************************************************************************************************
to retry, use: --limit @/home/user/github/prepare-vm-for-kubespray/kubespray/cluster.retry
PLAY RECAP *************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0
node1 : ok=14 changed=1 unreachable=0 failed=1
node2 : ok=14 changed=0 unreachable=0 failed=1
node3 : ok=14 changed=0 unreachable=0 failed=1
Tuesday 27 August 2019 11:04:13 +0600 (0:00:00.138) 0:00:15.392 ********
===============================================================================
bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, Suse and ClearLinux) ---------------------------------------- 1.53s
download : download | Download files / images ------------------------------------------------------------------------------------------- 1.29s
download : download | Sync files / images from ansible host to nodes -------------------------------------------------------------------- 1.29s
bootstrap-os : Gather host facts to get ansible_os_family ------------------------------------------------------------------------------- 1.26s
bootstrap-os : Install libselinux-python ------------------------------------------------------------------------------------------------ 1.25s
bootstrap-os : Create remote_tmp for it is used by another module ----------------------------------------------------------------------- 0.73s
bootstrap-os : Check if this is an atomic host ------------------------------------------------------------------------------------------ 0.70s
bootstrap-os : Disable fastestmirror plugin if requested -------------------------------------------------------------------------------- 0.66s
bootstrap-os : Ensure bash_completion.d folder exists ----------------------------------------------------------------------------------- 0.60s
bootstrap-os : Add proxy to /etc/yum.conf if http_proxy is defined ---------------------------------------------------------------------- 0.59s
bootstrap-os : Check presence of fastestmirror.conf ------------------------------------------------------------------------------------- 0.59s
bootstrap-os : Fetch /etc/os-release ---------------------------------------------------------------------------------------------------- 0.38s
bootstrap-os : Store the fact if this is an atomic host --------------------------------------------------------------------------------- 0.26s
kubespray-defaults : Configure defaults ------------------------------------------------------------------------------------------------- 0.25s
bootstrap-os : include_tasks ------------------------------------------------------------------------------------------------------------ 0.18s
download : Use docker for cri connetion ------------------------------------------------------------------------------------------------- 0.15s
download : Use docker for cri connetion ------------------------------------------------------------------------------------------------- 0.14s
download : Register docker images info -------------------------------------------------------------------------------------------------- 0.13s
download : prep_download | Create staging directory on remote node ---------------------------------------------------------------------- 0.12s
bootstrap-os : include_tasks ------------------------------------------------------------------------------------------------------------ 0.12s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment