diff options
| author | Matt Crees <mattc@stackhpc.com> | 2025-01-20 16:50:14 +0000 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2025-03-24 13:43:08 +0000 |
| commit | 8421d1047ff40769d3f46abf4d3b3dae84f33023 (patch) | |
| tree | 6fece95190ff22c10f74645fccb9fbd7a1929a52 /kolla_ansible/cli | |
| parent | a18204bcd9b7a83a757854b2f838773beea6db87 (diff) | |
| download | kolla-ansible-8421d1047ff40769d3f46abf4d3b3dae84f33023.tar.gz kolla-ansible-8421d1047ff40769d3f46abf4d3b3dae84f33023.zip | |
Allow ignoring missing containers in service-stop
The kolla docker/podman workers already have support for ignoring when
containers are missing. This patch just exposes that to the CLI with the
flag ``--ignore-missing``.
Change-Id: Ie74ea3ea66380063cf67f2e0edb2a0e160d89cd7
Diffstat (limited to 'kolla_ansible/cli')
| -rw-r--r-- | kolla_ansible/cli/commands.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kolla_ansible/cli/commands.py b/kolla_ansible/cli/commands.py index bbeeece89..29c59eb09 100644 --- a/kolla_ansible/cli/commands.py +++ b/kolla_ansible/cli/commands.py @@ -281,6 +281,11 @@ class Stop(KollaAnsibleMixin, Command): required=True, help="WARNING! This action will remove the Openstack deployment!", ) + group.add_argument( + "--ignore-missing", + action="store_true", + help="Don't fail if there are missing containers" + ) return parser def take_action(self, parsed_args): @@ -288,6 +293,9 @@ class Stop(KollaAnsibleMixin, Command): extra_vars = {} extra_vars["kolla_action"] = "stop" + extra_vars["kolla_action_stop_ignore_missing"] = ( + "yes" if parsed_args.ignore_missing else "no" + ) playbooks = _choose_playbooks(parsed_args) |
