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

[BUG][2.0.0dev] install 'containerd.io=1.4.12-*' failed, when upgrade from v1.3.0 to 2.0.0dev #3006

Closed
10 of 18 tasks
cicharka opened this issue Mar 7, 2022 · 1 comment
Closed
10 of 18 tasks

Comments

@cicharka
Copy link
Contributor

cicharka commented Mar 7, 2022

Describe the bug
When doing upgrade from v1.3.0 to 2.0.0dev, epicli upgrade fails on task Install Docker packages from ansible/playbooks/roles/docker/tasks/main.yml with error (full error message in additional context):
install 'containerd.io=1.4.12-*'' failed: E: Packages were downgraded and -y was used without --allow-downgrades.\n", ...

Possible issue:
  1. containerd.io in epicli v1.3.0 is installed without version specification, see task ansible/playbooks/roles/docker/tasks/main.yml.
  2. In v2.0.0dev we are specifying its version with - 'containerd.io=1.4.12*', see task ansible/playbooks/roles/docker/tasks/main.yml and roles/containerd/defaults/main.yml
  3. And finally investigation on repository machine shows that version installed with v1.3.0 is higher than specified in v2.0.0dev:
    [operations@cicharka-zoo-kaf-repository-vm-0 ~]$ containerd --version containerd containerd.io 1.4.13 9cc61520f4cd876b86e77edfeb88fbcd536d1f9d

How to reproduce

  1. epicli init and epicli apply with v1.3.0
  2. epicli upgrade with v2.0.0dev

Expected behavior
epicli upgrade should perform upgrade successfully

Config files
Components used in config file:

  components:
    repository:
      count: 1
    kubernetes_master:
      count: 0
    kubernetes_node:
      count: 0
    logging:
      count: 1
    monitoring:
      count: 1
    kafka:
      count: 2
    postgresql:
      count: 1
    load_balancer:
      count: 0
    rabbitmq:
      count: 0
version: 1.3.0

Environment

  • Cloud provider: Azure
  • OS: Ubuntu 20.04.3 LTS, RH should be checked as well

epicli version:
v2.0.0dev

Additional context
Full Error message:
ERROR cli.src.ansible.AnsibleCommand - fatal: [cicharka-zoo-kaf-repository-vm-0]: FAILED! => {"cache_update_time": 1646650726, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'containerd.io=1.4.12-*'' failed: E: Packages were downgraded and -y was used without --allow-downgrades.\n", "rc": 100, "stderr": "E: Packages were downgraded and -y was used without --allow-downgrades.\n", "stderr_lines": ["E: Packages were downgraded and -y was used without --allow-downgrades."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages will be DOWNGRADED:\n containerd.io\n0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 15 not upgraded.\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages will be DOWNGRADED:", " containerd.io", "0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 15 not upgraded."]}


DoD checklist

  • Changelog
    • updated
    • not needed
  • COMPONENTS.md
    • updated
    • not needed
  • Schema
    • updated
    • not needed
  • Backport tasks
    • created
    • not needed
  • Documentation
    • added
    • updated
    • not needed
  • Feature has automated tests
  • Automated tests passed (QA pipelines)
    • apply
    • upgrade
    • backup/restore
  • Idempotency tested
  • All conversations in PR resolved
@rafzei
Copy link
Contributor

rafzei commented Mar 10, 2022

So using the latest released version of containerd in epi v2.0 should solve the problem.

@cicharka cicharka self-assigned this Mar 15, 2022
@przemyslavic przemyslavic self-assigned this Mar 18, 2022
cicharka added a commit that referenced this issue Apr 1, 2022
* upgrade: move containerd upgrade task to containerd role
* In docker and containerd role allow downgrade of containerd.io package
* add changelog and update components.md
* enhance containerd replacement with draining nodes and Patch stateful apps tasks
* split k8s related tasks to separate files in containerd upgrade role
* run ansible linter
* add todo comments
@seriva seriva closed this as completed Apr 5, 2022
cicharka added a commit to cicharka/epiphany that referenced this issue Apr 8, 2022
cicharka added a commit to cicharka/epiphany that referenced this issue Apr 8, 2022
cicharka added a commit to cicharka/epiphany that referenced this issue Apr 11, 2022
cicharka added a commit to cicharka/epiphany that referenced this issue Apr 11, 2022
cicharka added a commit to cicharka/epiphany that referenced this issue Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants