Closed comps closed 1 month ago
related code:
cmd = [
'ansible-playbook', '-v', '-c', 'local', '-i', 'localhost,',
*skip_tags_arg,
playbook,
]
proc, lines = util.subprocess_stream(cmd)
failed = ansible.report_from_output(lines)
if proc.returncode not in [0,2] or proc.returncode == 2 and not failed:
raise RuntimeError(f"ansible-playbook failed with {proc.returncode}")
maybe we should util.log()
from inside report_from_output()
how many failures were found?
Actually, the error is reported:
16:34:00 out: TASK [Configure Firewalld to Restrict Loopback Traffic - Informative Message Based on Service State] ***
16:34:00 out: fatal: [localhost]: FAILED! => {
16:34:00 out: 2024-07-18 16:34:00 test.py:30: lib.waive.collect_waivers:141: using /var/tmp/runcontest-results/task28/plans/default/discover/default-0/tests/conf/waivers for waiving
16:34:00 out: 2024-07-18 16:34:00 test.py:30: lib.results.report_plain:182: ERROR playbook: Configure Firewalld to Restrict Loopback Traffic - Informative Message Based on Service State ({)
16:34:00 out: "assertion": "ansible_facts.services['firewalld.service'].state == 'running'",
see the
lib.results.report_plain:182: ERROR playbook: Configure Firewalld to Restrict Loopback Traffic - Informative Message Based on Service State
it's just that we can't automagically figure out which fatal errors render the system unbootable and which ones don't..
the test continued on with the reboot despite an obvious error