aboutsummaryrefslogtreecommitdiff
path: root/tests/run.yml
diff options
context:
space:
mode:
authorKonstantin Yarovoy <konstantin.yarovoy@tietoevry.com>2022-04-07 13:16:15 +0200
committerRoman Krcek <roman.krcek@tietoevry.com>2025-03-19 17:20:04 +0000
commitf726cfd9982bf6a5250859f3ecfcacf018159b99 (patch)
treebd0a4c62f63935e18b96e4610f684f6deeed4caa /tests/run.yml
parent12aa03929a30dc9d10b12a64551623d9fd998a2f (diff)
downloadkolla-ansible-f726cfd9982bf6a5250859f3ecfcacf018159b99.tar.gz
kolla-ansible-f726cfd9982bf6a5250859f3ecfcacf018159b99.zip
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
Diffstat (limited to 'tests/run.yml')
-rw-r--r--tests/run.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/run.yml b/tests/run.yml
index 7293c8860..a91aa9074 100644
--- a/tests/run.yml
+++ b/tests/run.yml
@@ -21,7 +21,7 @@
need_build_image: "{{ kolla_build_images | default(false) }}"
build_image_tag: "change_{{ zuul.change | default('none') }}"
openstack_core_enabled: "{{ openstack_core_enabled }}"
- openstack_core_tested: "{{ scenario in ['core', 'cephadm', 'zun', 'cells', 'ovn', 'lets-encrypt'] }}"
+ openstack_core_tested: "{{ scenario in ['core', 'cephadm', 'zun', 'cells', 'ovn', 'lets-encrypt', 'container-engine-migration'] }}"
dashboard_enabled: "{{ openstack_core_enabled }}"
upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
@@ -561,6 +561,15 @@
chdir: "{{ kolla_ansible_src_dir }}"
when: scenario == "skyline-sso"
+ - name: Run test-container-engine-migration.sh script
+ script:
+ cmd: test-container-engine-migration.sh
+ executable: /bin/bash
+ chdir: "{{ kolla_ansible_src_dir }}"
+ environment:
+ KOLLA_ANSIBLE_VENV_PATH: "{{ kolla_ansible_venv_path }}"
+ IP_VERSION: "{{ 6 if address_family == 'ipv6' else 4 }}"
+ when: scenario == "container-engine-migration"
when: scenario != "bifrost"
# NOTE(yoctozepto): each host checks itself
@@ -792,6 +801,11 @@
- hosts: all
any_errors_fatal: true
tasks:
+ - name: Change container engine after the migration
+ set_fact:
+ container_engine: podman
+ when: scenario == "container-engine-migration"
+
- name: Post-deploy/upgrade sanity checks
block:
- name: Run check-failure.sh script