microsoft / microsoft/pai

Can't install kubespray

Open
#5,000 8 comments 0 reactions 1 assignee View on GitHub

@hzy46 is already working on this.

Since Oct 22, 2020.

Dominant language
JavaScript
Stars
2.7k
Forks
554
Avg merge
20h 42m
Merged PRs (30d)
14

Description

Organization Name:

Short summary about the issue/question:
fatal: [openpai-master-01 -> 172.168.3.103]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -1.15.11-amd64 /usr/local/bin/kubectl", "msg": "rsync: link_stat \"/tmp/releases/hyperkube-v1.15.11-amd64\" failed: ious errors) (code 23) at main.c(1196) [sender=3.1.2]\n", "rc": 23}
Brief what process you are following:
I am following this #4614 to deploy OpenPAI on a single node (OS: Ubuntu 18.04), I use ansible-playbook -i inventory/pai/hosts.yml cluster.yml --become --become-user=root -e "@inventory/pai/openpai.yml" , and I meet some problems that I did not encounter on the computer with the OS Ubuntu16.04.

Error Log:


 [WARNING]:  * Failed to parse /home/xxx/kubespray/inventory/pai/hosts.yml with yaml plugin: 'NoneType' object is not iterable

 [WARNING]:  * Failed to parse /home/xxx/kubespray/inventory/pai/hosts.yml with ini plugin: /home/xxx/kubespray/inventory/pai/hosts.yml:4: Expected key=value host variable assignment, got: 172.168.3.103

 [WARNING]:  * Failed to parse /home/xxx/kubespray/inventory/pai/hosts.yml with auto plugin: no root 'plugin' key found, '/home/xxx/kubespray/inventory/pai/hosts.yml' is not a valid YAML inventory plugin
config file

 [WARNING]: Unable to parse /home/xxx/kubespray/inventory/pai/hosts.yml as an inventory source

 [WARNING]: No inventory was parsed, only implicit localhost is available


PLAY [localhost] *********************************************************************************************************************************************************************************************

TASK [Check ansible version >=2.7.8] *************************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.060)       0:00:00.060 ******
ok: [localhost] => {
    "changed": false,
    "msg": "All assertions passed"
}
 [WARNING]: Could not match supplied host pattern, ignoring: bastion


PLAY [bastion[0]] ********************************************************************************************************************************************************************************************
skipping: no hosts matched
 [WARNING]: Could not match supplied host pattern, ignoring: k8s-cluster

 [WARNING]: Could not match supplied host pattern, ignoring: etcd


PLAY [k8s-cluster:etcd] **************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY [k8s-cluster:etcd] **************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY [etcd] **************************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY [k8s-cluster] *******************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY [k8s-cluster] *******************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY [kube-master] *******************************************************************************************************************************************************************************************

TASK [download : prep_download | Set a few facts] ************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.128)       0:00:00.189 ******

TASK [download : Set image info command for containerd] ******************************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.059)       0:00:00.248 ******

TASK [download : Register docker images info] ****************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.059)       0:00:00.307 ******

TASK [download : prep_download | Create staging directory on remote node] ************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.060)       0:00:00.367 ******

TASK [download : prep_download | Create local cache for files and images] ************************************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.060)       0:00:00.427 ******

TASK [download : prep_download | On localhost, check if passwordless root is possible] ***********************************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.064)       0:00:00.492 ******

TASK [download : prep_download | On localhost, check if user has access to docker without using sudo] ********************************************************************************************************
Thursday 22 October 2020  15:57:39 +0800 (0:00:00.059)       0:00:00.552 ******

TASK [download : prep_download | Parse the outputs of the previous commands] *********************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.060)       0:00:00.613 ******

TASK [download : prep_download | Check that local user is in group or can become root] ***********************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.057)       0:00:00.670 ******

TASK [download : Use cri-o for cri connection] ***************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.058)       0:00:00.729 ******

TASK [download : Use containerd for cri connetion] ***********************************************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.057)       0:00:00.786 ******

TASK [download : Use docker for cri connetion] ***************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.058)       0:00:00.844 ******
ok: [openpai-master-01]

TASK [download : include_tasks] ******************************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.089)       0:00:00.933 ******

TASK [download : download | Get kubeadm binary and list of required images] **********************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.059)       0:00:00.993 ******

TASK [download : download | Download files / images] *********************************************************************************************************************************************************
Thursday 22 October 2020  15:57:40 +0800 (0:00:00.058)       0:00:01.051 ******

TASK [download : download | Sync files / images from ansible host to nodes] **********************************************************************************************************************************
Thursday 22 October 2020  15:57:41 +0800 (0:00:00.685)       0:00:01.737 ******

TASK [kubespray-defaults : Configure defaults] ***************************************************************************************************************************************************************
Thursday 22 October 2020  15:57:41 +0800 (0:00:00.608)       0:00:02.345 ******
ok: [openpai-master-01] => {
    "msg": "Check roles/kubespray-defaults/defaults/main.yml"
}

TASK [kubernetes/tokens : Check_tokens | check if the tokens have already been generated on first master] ****************************************************************************************************
Thursday 22 October 2020  15:57:41 +0800 (0:00:00.110)       0:00:02.456 ******

TASK [kubernetes/tokens : Check_tokens | Set default value for 'sync_tokens' and 'gen_tokens' to false] ******************************************************************************************************
Thursday 22 October 2020  15:57:41 +0800 (0:00:00.055)       0:00:02.511 ******

TASK [kubernetes/tokens : Check_tokens | Set 'sync_tokens' and 'gen_tokens' to true] *************************************************************************************************************************
Thursday 22 October 2020  15:57:41 +0800 (0:00:00.055)       0:00:02.566 ******

TASK [kubernetes/tokens : Check tokens | check if a cert already exists] *************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.056)       0:00:02.622 ******

TASK [kubernetes/tokens : Check_tokens | Set 'sync_tokens' to true] ******************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.057)       0:00:02.679 ******

TASK [kubernetes/tokens : Make sure the tokens directory exits] **********************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.058)       0:00:02.738 ******

TASK [kubernetes/tokens : Gen_tokens | copy tokens generation script] ****************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.093)       0:00:02.831 ******

TASK [kubernetes/tokens : Gen_tokens | generate tokens for master components] ********************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.087)       0:00:02.919 ******

TASK [kubernetes/tokens : Gen_tokens | generate tokens for node components] **********************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.093)       0:00:03.012 ******

TASK [kubernetes/tokens : Gen_tokens | Get list of tokens from first master] *********************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.093)       0:00:03.106 ******

TASK [kubernetes/tokens : Gen_tokens | Gather tokens] ********************************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.088)       0:00:03.194 ******

TASK [kubernetes/tokens : Gen_tokens | Copy tokens on masters] ***********************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.060)       0:00:03.255 ******

TASK [kubernetes/master : Pre-upgrade | Delete master manifests if etcd secrets changed] *********************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.057)       0:00:03.312 ******

TASK [kubernetes/master : Pre-upgrade | Delete master containers forcefully] *********************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.083)       0:00:03.396 ******

TASK [kubernetes/master : Make sure the users directory exits] ***********************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.084)       0:00:03.481 ******

TASK [kubernetes/master : Populate users for basic auth in API] **********************************************************************************************************************************************
Thursday 22 October 2020  15:57:42 +0800 (0:00:00.061)       0:00:03.542 ******

TASK [kubernetes/master : Create webhook token auth config] **************************************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.066)       0:00:03.609 ******

TASK [kubernetes/master : Check if secret for encrypting data at rest already exist] *************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.068)       0:00:03.678 ******

TASK [kubernetes/master : Slurp secrets_encryption file if it exists] ****************************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.063)       0:00:03.741 ******

TASK [kubernetes/master : Base 64 Decode slurped secrets_encryption.yaml file] *******************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.068)       0:00:03.809 ******

TASK [kubernetes/master : Extract secret value from secrets_encryption.yaml] *********************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.064)       0:00:03.874 ******

TASK [kubernetes/master : Set kube_encrypt_token across master nodes] ****************************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.105)       0:00:03.979 ******

TASK [kubernetes/master : Write secrets for encrypting secret data at rest] **********************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.071)       0:00:04.051 ******

TASK [kubernetes/master : Install | Copy kubectl binary from download dir] ***********************************************************************************************************************************
Thursday 22 October 2020  15:57:43 +0800 (0:00:00.106)       0:00:04.157 ******
fatal: [openpai-master-01 -> xxx.xxx.x.xxx]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --archive --no-owner --no-group --out-format=<<CHANGED>>%i %n%L /tmp/releases/hyperkube-v1.15.11-amd64 /usr/local/bin/kubectl", "msg": "rsync: link_stat \"/tmp/releases/hyperkube-v1.15.11-amd64\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]\n", "rc": 23}

OpenPAI Environment:

  • OpenPAI version: v1.0.1
  • Phyical machine
  • OS (e.g. from /etc/os-release): Ubuntu 18.04.2
  • Kernel (e.g. uname -a): Linux 4.18.0-15-generic x86_64
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.): nvidia Tesla M60

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.