Skip to content
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

Deployment Error: TASK [download : prep_kubeadm_images | Copy kubeadm binary from download dir to system path #27

Open
amithanoop opened this issue Jan 2, 2020 · 4 comments

Comments

@amithanoop
Copy link

Error:
TASK [download : prep_kubeadm_images | Copy kubeadm binary from download dir to system path] ***
Thursday 02 January 2020 22:01:04 +0530 (0:00:00.778) 0:09:40.886 ******
fatal: [k8s-kubespray-master-0 -> 10.12.43.220]: FAILED! => {"changed": false, "cmd": "sshpass", "msg": "[Errno 2] No such file or directory: b'sshpass': b'sshpass'", "rc": 2}

Details:
Template Using : Ubuntu 18.04
For SSH login using user name and password

@gelmistefano
Copy link

Hi,
i've seen this issue in my tests. I've resolved changing "synchronize" with "copy":

  copy:
    src: "{{ local_release_dir }}/kubeadm-{{ kubeadm_version }}-{{ image_arch }}"
    dest: "{{ bin_dir }}/kubeadm"
    remote_src: yes
    mode: preserve

this issue is present in all "Copy ... binary from download dir"

@fastlorenzo
Copy link

fastlorenzo commented Mar 9, 2020

I fixed it by adding interpreter_python=python3 in the [defaults] section of the ansible/kubespray/ansible.cfg file. It seems to be an issue with python 2, which was used by default.

Reference

@bordenit
Copy link

bordenit commented Jan 2, 2021

The fix for me was to install sshpass on the the node the playbook was running against, which also required epel-release:

yum install epel-release
yum install sshpass

@ManuelCastilla
Copy link

I have the same problem. I followed the recommendation of fastlorenzo but I maintain the problem. Could gelmistefano give me details of path for that code? Which is the name file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants