diff options
| author | Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com> | 2022-04-07 13:16:15 +0200 |
|---|---|---|
| committer | Roman Krcek <roman.krcek@tietoevry.com> | 2025-03-19 17:20:04 +0000 |
| commit | f726cfd9982bf6a5250859f3ecfcacf018159b99 (patch) | |
| tree | bd0a4c62f63935e18b96e4610f684f6deeed4caa /kolla_ansible/cli | |
| parent | 12aa03929a30dc9d10b12a64551623d9fd998a2f (diff) | |
| download | kolla-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 'kolla_ansible/cli')
| -rw-r--r-- | kolla_ansible/cli/commands.py | 13 |
1 files changed, 13 insertions, 0 deletions
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) |
