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

Ansible playbook aborts because the wrong containerd repo is related to Ubuntu 20.04 #7000

Closed
Payback159 opened this issue Dec 6, 2020 · 2 comments · Fixed by #6919
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Payback159
Copy link
Contributor

Environment:

  • Cloud provider or hardware configuration:
4x Raspberry Pi 4 with 8 GB
  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
Linux 5.4.0-1023-raspi aarch64
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
  • Version of Ansible (ansible --version):
ansible --version
ansible 2.9.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
  • Version of Python (python --version):
python --version

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3

python3 --version
Python 3.8.5

Kubespray version (commit) (git rev-parse --short HEAD):

1a491fc1

Network plugin used:

Calico

Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):

Command used to invoke ansible:

ansible-playbook -i inventory/mycluster/hosts.yml --become cluster.yml

Output of ansible run:

TASK [container-engine/containerd : ensure containerd repository is enabled] ***************************************************
failed: [himbeere42] (item=deb https://download.docker.com/linux/debian focal stable
) => {"ansible_loop_var": "item", "changed": false, "item": "deb https://download.docker.com/linux/debian focal stable\n", "msg": "apt cache update failed"}
failed: [himbeere43] (item=deb https://download.docker.com/linux/debian focal stable
) => {"ansible_loop_var": "item", "changed": false, "item": "deb https://download.docker.com/linux/debian focal stable\n", "msg": "apt cache update failed"}
failed: [himbeere41] (item=deb https://download.docker.com/linux/debian focal stable
) => {"ansible_loop_var": "item", "changed": false, "item": "deb https://download.docker.com/linux/debian focal stable\n", "msg": "apt cache update failed"}
failed: [himbeere44] (item=deb https://download.docker.com/linux/debian focal stable
) => {"ansible_loop_var": "item", "changed": false, "item": "deb https://download.docker.com/linux/debian focal stable\n", "msg": "apt cache update failed"}
@Payback159 Payback159 added the kind/bug Categorizes issue or PR as related to a bug. label Dec 6, 2020
@takamori-tech
Copy link
Contributor

takamori-tech commented Dec 6, 2020

This issue caused by there is no cluster-arm64.yml in roles/container-engine/containerd/vars.
This issue was already reported in #6987, and they work to fix this issue, please see also.
The temporarily solution is just copy cluster-amd64.yml to cluster-arm64.yml.
Ubuntu repository has both amd64 and arm64 for focal.

@Payback159
Copy link
Contributor Author

Thank you. Now it worked perfectly fine and sorry for the double report. I have seen the issue but somehow not seen it in relation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants