From f726cfd9982bf6a5250859f3ecfcacf018159b99 Mon Sep 17 00:00:00 2001 From: Konstantin Yarovoy Date: Thu, 7 Apr 2022 13:16:15 +0200 Subject: Add container engine migration scenario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Martin Hiner Signed-off-by: Roman KrĨek Change-Id: Icd709cb042d44e063c5da64ab0695b0b6ba6d48b --- kolla_ansible/cli/commands.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kolla_ansible/cli') diff --git a/kolla_ansible/cli/commands.py b/kolla_ansible/cli/commands.py index bbeeece89..2c3fee23d 100644 --- a/kolla_ansible/cli/commands.py +++ b/kolla_ansible/cli/commands.py @@ -483,3 +483,16 @@ class Check(KollaAnsibleMixin, Command): playbooks = _choose_playbooks(parsed_args) self.run_playbooks(parsed_args, playbooks, extra_vars=extra_vars) + + +class MigrateContainerEngine(KollaAnsibleMixin, Command): + """Migrate the container engine of the deployed OpenStack""" + + def take_action(self, parsed_args): + self.app.LOG.info( + "Migrate the container engine of the deployed Openstack" + ) + + playbooks = _choose_playbooks(parsed_args, "migrate-container-engine") + + self.run_playbooks(parsed_args, playbooks) -- cgit v1.2.3