Files
kolla-ansible/ansible/roles/container-engine-migration/tasks/check-migration.yml
Konstantin Yarovoy f726cfd998 Add container engine migration scenario
Add "migrate-container-engine" action to kolla-ansible which
changes the container engine on which the Openstack is deployed on.
For example Docker to Podman and vice versa.

Depends-on: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/925083
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
Signed-off-by: Roman Krček <roman.krcek@tietoevry.com>
Change-Id: Icd709cb042d44e063c5da64ab0695b0b6ba6d48b
2025-03-19 17:20:04 +00:00

16 lines
559 B
YAML

---
- name: Gather package facts
package_facts:
when:
- "'packages' not in ansible_facts"
- name: Fail when attempting to migrate to current container engine
fail:
msg: -|
Cannot migrate to the same container engine that is currently used.
Packages from target_engine were found on the system.
If the migration failed in the stage of deploying the target engine,
you can resume it by running "kolla-ansible deploy"
when: "engine_data[target_engine].packages is subset(ansible_facts.packages)"
any_errors_fatal: true