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

v2.20.0 upgrade to v2.21.0 #11443

Open
charlychiu opened this issue Aug 12, 2024 · 0 comments
Open

v2.20.0 upgrade to v2.21.0 #11443

charlychiu opened this issue Aug 12, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@charlychiu
Copy link
Contributor

What happened?

When upgrading according to upgrades.md, the following error occurred. The upgrade was only successful after commenting out the cleanup section.

path: roles/container-engine/cri-o/tasks/main.yaml

- name: cri-o | clean up reglacy repos
  import_tasks: "cleanup.yaml"

What did you expect to happen?

upgrade without any error occur

How can we reproduce it (as minimally and precisely as possible)?

upgrade from v2.20.0 to v2.21.0, using command ``

OS

  • OS: Ubuntu 20.04 LTS
  • Kernel: 5.15.0-52-generic

Version of Ansible

ansible [core 2.12.5]

Version of Python

3.8.10

Version of Kubespray (commit)

v2.21.0

Network plugin used

cilium

Full inventory with variables

ansible-playbook -i inventory/mycluster/hosts.ini -b upgrade-cluster.yml

Command used to invoke ansible

docker run -it -v "$(pwd)":/kubespray -v "$(cd && pwd)"/.ssh:/root/.ssh quay.io/kubespray/kubespray:v2.20.0 /bin/bash

Output of ansible run

TASK [container-engine/cri-o : Remove legacy CRI-O kubic apt repo] ************************************************************************
fatal: [n007]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: unknown reason"}


Failed to fetch http://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_20.04/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4D64390375060AA4
W: Some index files failed to download. They have been ignored, or old ones used instead

Anything else we need to know

error on this section

- name: Remove legacy CRI-O kubic cri-o apt repo
  apt_repository:
    repo: "deb {{ crio_download_crio }}{{ crio_version }}/{{ crio_kubic_debian_repo_name }}/ /"
    state: absent
    filename: devel-kubic-libcontainers-stable-cri-o
  when: crio_kubic_debian_repo_name is defined
@charlychiu charlychiu added the kind/bug Categorizes issue or PR as related to a bug. label Aug 12, 2024
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

No branches or pull requests

1 participant