From a0f8d889c2e9ab950c16d780c7e15aee602bab0a Mon Sep 17 00:00:00 2001 From: David Galloway Date: Wed, 16 Jun 2021 15:06:15 -0400 Subject: [PATCH] ceph-ansible-prs: Debug vagrant problems Occasionally having VMs come up but not get an IP. Or vagrant thinks they got an IP but didn't. This is impossible to debug after the VMs in the job are torn down so let's spit out some debug info before that. Signed-off-by: David Galloway --- ceph-ansible-prs/build/teardown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ceph-ansible-prs/build/teardown b/ceph-ansible-prs/build/teardown index 31a30f110..edb86ad99 100644 --- a/ceph-ansible-prs/build/teardown +++ b/ceph-ansible-prs/build/teardown @@ -4,6 +4,13 @@ cd $WORKSPACE/tests TEMPVENV=$(create_venv_dir) VENV=${TEMPVENV}/bin + +echo "========= VAGRANT DEBUGGING =========" +sudo virsh list --all +for net in $(sudo virsh net-list --name); do sudo virsh net-dhcp-leases ${net}; done +sudo journalctl -u libvirtd --pager-end --no-pager +echo "======= END VAGRANT DEBUGGING =======" + # the method exists in scripts/build_utils.sh teardown_vagrant_tests $VENV -- 2.47.3