You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
containerd.io in epicli v1.3.0 is installed without version specification, see task ansible/playbooks/roles/docker/tasks/main.yml.
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
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
epicli init and epicli apply with v1.3.0
epicli upgrade with v2.0.0dev
Expected behavior epicli upgrade should perform upgrade successfully
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
The text was updated successfully, but these errors were encountered:
* 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
Describe the bug
When doing upgrade from v1.3.0 to 2.0.0dev,
epicli upgrade
fails on taskInstall Docker packages
fromansible/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:
containerd.io
in epicli v1.3.0 is installed without version specification, see taskansible/playbooks/roles/docker/tasks/main.yml
.- 'containerd.io=1.4.12*'
, see taskansible/playbooks/roles/docker/tasks/main.yml
androles/containerd/defaults/main.yml
[operations@cicharka-zoo-kaf-repository-vm-0 ~]$ containerd --version containerd containerd.io 1.4.13 9cc61520f4cd876b86e77edfeb88fbcd536d1f9d
How to reproduce
epicli init
andepicli apply
with v1.3.0epicli upgrade
with v2.0.0devExpected behavior
epicli upgrade
should perform upgrade successfullyConfig files
Components used in config file:
Environment
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
The text was updated successfully, but these errors were encountered: