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 <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-05-19 11:42:08 -04:00
parent 9bf9abd11a
commit 75b058a98c
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 27 additions and 0 deletions

View File

@ -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