From af6e1ca4fd3366c1ae936d225b2835e95a4191fc Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 16 Aug 2021 17:03:22 +0100 Subject: Support Ansible max_fail_percentage This allows us to continue execution until a certain proportion of hosts to fail. This can be useful at scale, where failures are common, and restarting a deployment is time-consuming. The default max failure percentage is 100, keeping the default behaviour. A global max failure percentage may be set via kolla_max_fail_percentage, and individual services may define a max failure percentage via _max_fail_percentage. Note that all hosts in the inventory must be reachable for fact gathering, even those not included in a --limit. Closes-Bug: #1833737 Change-Id: I808474a75c0f0e8b539dc0421374b06cea44be4f --- ansible/nova-libvirt-cleanup.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ansible/nova-libvirt-cleanup.yml') diff --git a/ansible/nova-libvirt-cleanup.yml b/ansible/nova-libvirt-cleanup.yml index 5124b37d4..5a69a8bfa 100644 --- a/ansible/nova-libvirt-cleanup.yml +++ b/ansible/nova-libvirt-cleanup.yml @@ -6,6 +6,10 @@ hosts: - compute serial: '{{ kolla_serial|default("0") }}' + max_fail_percentage: >- + {{ nova_libvirt_cleanup_max_fail_percentage | + default(kolla_max_fail_percentage) | + default(100) }} tags: - nova-libvirt-cleanup tasks: -- cgit v1.2.3