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

TASK [container-engine/cri-o : Remove legacy CRI-O kubic apt repo key] fail #9765

Closed
SamuelBECK1 opened this issue Feb 8, 2023 · 0 comments · Fixed by #9766
Closed

TASK [container-engine/cri-o : Remove legacy CRI-O kubic apt repo key] fail #9765

SamuelBECK1 opened this issue Feb 8, 2023 · 0 comments · Fixed by #9766
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@SamuelBECK1
Copy link
Contributor

Environment:

  • Cloud provider or hardware configuration:
    VMWare / ESXi

  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
    ubuntu 22.04

  • Version of Ansible (ansible --version):
    2.12.3

  • Version of Python (python --version):
    3.10.6

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

Network plugin used:
cilium

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

Command used to invoke ansible:

Output of ansible run:

TASK [container-engine/cri-o : Remove legacy CRI-O kubic apt repo key] *********
Tuesday 07 February 2023  17:19:02 +0000 (0:00:01.765)       0:26:47.277 ****** 
skipping: [******]
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}
fatal: [******]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/Release.key: Request failed: <urlopen error [Errno 101] Network is unreachable>"}

Anything else do we need to know:
we use an http proxy in our environments,
so using environment: "{{ proxy_env }}" in the apt_key cleanups task (roles/container-engine/cri-o/tasks/cleanup.yaml) solve my issue:

  apt_key:
    url: "https://{{ crio_download_base }}/{{ crio_kubic_debian_repo_name }}/Release.key"
    state: absent
  environment: "{{ proxy_env }}"
  when: crio_kubic_debian_repo_name is defined

a PR will follow

@SamuelBECK1 SamuelBECK1 added the kind/bug Categorizes issue or PR as related to a bug. label Feb 8, 2023
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.

1 participant