test: debug deprecated bond test failures

When the test fails, gather additional information to help
diagnose the failure.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2024-06-14 18:00:38 -06:00 committed by Richard Megginson
parent 008fe5cd3b
commit 5e384bbe8d

View file

@ -92,6 +92,17 @@
retries: 20
delay: 2
changed_when: false
rescue:
- name: Gather failure information
shell: |
exec 1>&2
set -xo pipefail
ip -d -s link show
ip -d -s a s
journalctl -ex
ps -ef | grep dnsmasq || :
changed_when: false
failed_when: true
always:
- name: Clean up the test devices and the connection profiles
tags: