From 75b058a98ca641b9ec76a44288e7d1b2fc733e7a Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 19 May 2017 11:42:08 -0400 Subject: [PATCH] Add openstack-info role This creates a role to display network information about the zuul worker node. Change-Id: I74af3c6e9ea9ab76b6bd8a58ac4f7214504d5b59 Signed-off-by: Paul Belanger --- roles/openstack-info/tasks/main.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 roles/openstack-info/tasks/main.yaml diff --git a/roles/openstack-info/tasks/main.yaml b/roles/openstack-info/tasks/main.yaml new file mode 100644 index 0000000..e2e08df --- /dev/null +++ b/roles/openstack-info/tasks/main.yaml @@ -0,0 +1,27 @@ +--- +- name: Display networking information about zuul worker. + shell: | + export PATH=$PATH:/sbin + if [ -f /etc/dib-builddate.txt ]; then + echo "Image build date" + echo "================" + cat /etc/dib-builddate.txt + fi + echo "Host & kernel" + echo "=============" + uname -a + echo "Network interface addresses..." + echo "==============================" + ip address show + echo "Network routing tables..." + echo "=========================" + ip route show + ip -6 route show + echo "Network neighbors..." + echo "====================" + ip neighbor show + echo "Route to Git mirror..." + echo "======================" + traceroute6 -n git.openstack.org \ + || traceroute -n git.openstack.org \ + || true