]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs: Debug vagrant problems 1845/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 16 Jun 2021 19:06:15 +0000 (15:06 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 16 Jun 2021 19:06:15 +0000 (15:06 -0400)
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 <dgallowa@redhat.com>
ceph-ansible-prs/build/teardown

index 31a30f11080919487eb022464aa999de92987941..edb86ad992893371e960f1ec0d70a50ca5e2b990 100644 (file)
@@ -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