max_fail_percentage incorrectly aborts playbook execution #32255
Labels
affects_2.3
This issue/PR affects Ansible v2.3
affects_2.4
This issue/PR affects Ansible v2.4
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
c:executor/playbook_executor
c:plugins/strategy
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
max_fail_percentage
ANSIBLE VERSION
NOTE: This issue exists back to v2.1.0.0-1
I tested against older version and found:
v2.0.2.0-1 Good
v2.1.0.0-1 Bad
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
max_fail_percentage incorrectly aborts playbook execution after single host failure in a batch
STEPS TO REPRODUCE
EXPECTED RESULTS
The expectation is that the playbook will continue running all batches unless a single batch has more than one failure. (One failure = 25%, Two failures = 50%)
ACTUAL RESULTS
The playbook exited after the
Next task
after failure and did not process any further batches.If setting mfp to 24, the playbook will exit after the first failed task in the first batch. Correct.
If setting mfp to 33, the playbook will exit after the next task (only three hosts) in the first batch. Incorrect.
If setting mfp to 34, the playbook will exit after all tasks in that batch. Incorrect.
(Note that there appears to be some impact to task execution because changing mfp between 33 to 34 has some effect, even though four hosts are run in this batch. It should only be the 24/25 boundary to effect a single host failure on a four host batch.
If setting mfp to 99, the playbook will exit after all tasks in that batch. Incorrect.
If setting mfp to 100, the playbook will continue through all tasks for all batches. Correct.
The text was updated successfully, but these errors were encountered: