From 55370a54ab932c5f9e34e6732022de7d2c1af4c4 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 19 Mar 2014 00:06:03 +0000 Subject: [PATCH] Add a net-info job builder macro To assist in troubleshooting a variety of otherwise hard-to-diagnose failure modes, add a builder macro to jobs so that we will be able to see their interface addresses, routing table entries and network neighbors. Change-Id: I256c31312fa97dbc3aa44732cae99d066b57d223 --- .../jenkins_job_builder/config/barbican.yaml | 1 + .../jenkins_job_builder/config/climate.yaml | 1 + .../config/devstack-gate.yaml | 34 +++++++++++++++++++ .../jenkins_job_builder/config/gitdm.yaml | 1 + .../jenkins_job_builder/config/macros.yaml | 14 ++++++++ .../jenkins_job_builder/config/manila.yaml | 1 + .../jenkins_job_builder/config/mirror.yaml | 6 ++++ .../jenkins_job_builder/config/murano.yaml | 1 + .../config/neutron-functional.yaml | 1 + .../jenkins_job_builder/config/oslo.yaml | 3 +- .../config/requirements.yaml | 2 ++ .../jenkins_job_builder/config/solum.yaml | 1 + .../config/sqlalchemy-migrate.yaml | 1 + .../config/swift-functional.yaml | 1 + .../jenkins_job_builder/config/tripleo.yaml | 3 ++ 15 files changed, 70 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/barbican.yaml b/modules/openstack_project/files/jenkins_job_builder/config/barbican.yaml index be4c569a1f..b159aff6a8 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/barbican.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/barbican.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/climate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/climate.yaml index eae008bf64..97bdd0f929 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/climate.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/climate.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml index 776a15e151..0ec48a51a7 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/devstack-gate.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - experimental-devstack-checkout - shell: | #!/bin/bash -xe @@ -37,6 +38,7 @@ builders: - link-logs + - net-info - experimental-devstack-checkout - shell: | #!/bin/bash -xe @@ -63,6 +65,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -103,6 +106,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -133,6 +137,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -163,6 +168,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -195,6 +201,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -227,6 +234,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -261,6 +269,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -293,6 +302,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -326,6 +336,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -357,6 +368,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -390,6 +402,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -424,6 +437,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -476,6 +490,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -508,6 +523,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -539,6 +555,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -571,6 +588,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -601,6 +619,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -633,6 +652,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -666,6 +686,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -698,6 +719,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -731,6 +753,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -758,6 +781,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -786,6 +810,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -814,6 +839,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -843,6 +869,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -871,6 +898,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -903,6 +931,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -935,6 +964,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -968,6 +998,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -999,6 +1030,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -1030,6 +1062,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -1061,6 +1094,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/gitdm.yaml b/modules/openstack_project/files/jenkins_job_builder/config/gitdm.yaml index 6b8a8caa90..1930ac7959 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/gitdm.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/gitdm.yaml @@ -5,6 +5,7 @@ builders: - link-logs + - net-info - gerrit-git-prep - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml index d533508961..88e2c6df39 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml @@ -240,6 +240,20 @@ echo "Detailed logs: http://logs.openstack.org/$LOG_PATH/" +- builder: + name: net-info + builders: + - shell: | + #!/bin/sh + echo "Network interface addresses..." + ip address show + echo "Network routing tables..." + ip route show + ip -6 route show + echo "Network neighbors..." + ip neighbor show + + - builder: name: update-pypi-mirror builders: diff --git a/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml b/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml index 234b51a12c..17609570c0 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/manila.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml b/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml index d8a0edd772..7e436d4e82 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: @@ -28,6 +29,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: @@ -46,6 +48,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: @@ -64,6 +67,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: @@ -82,6 +86,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: @@ -100,6 +105,7 @@ builders: - link-logs + - net-info - update-pypi-mirror publishers: diff --git a/modules/openstack_project/files/jenkins_job_builder/config/murano.yaml b/modules/openstack_project/files/jenkins_job_builder/config/murano.yaml index 4a16aba232..bc067f6a97 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/murano.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/murano.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml index 1b63788ed9..b3c093d36d 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/oslo.yaml b/modules/openstack_project/files/jenkins_job_builder/config/oslo.yaml index 76a38f86de..f7320f2d7c 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/oslo.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/oslo.yaml @@ -9,6 +9,8 @@ - timestamps builders: + - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -38,7 +40,6 @@ cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh - - link-logs publishers: - devstack-logs diff --git a/modules/openstack_project/files/jenkins_job_builder/config/requirements.yaml b/modules/openstack_project/files/jenkins_job_builder/config/requirements.yaml index 1113c133e1..b5d10ee14d 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/requirements.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/requirements.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -37,6 +38,7 @@ builders: - link-logs + - net-info - gerrit-git-prep - shell: /usr/local/jenkins/slave_scripts/propose_requirements_update.sh diff --git a/modules/openstack_project/files/jenkins_job_builder/config/solum.yaml b/modules/openstack_project/files/jenkins_job_builder/config/solum.yaml index 47b43d71cd..e1411a0fe6 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/solum.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/solum.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml index 73a39058e3..c7e72b2924 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/swift-functional.yaml b/modules/openstack_project/files/jenkins_job_builder/config/swift-functional.yaml index a09fbb9c9a..25c3a41240 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/swift-functional.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/swift-functional.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe diff --git a/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml b/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml index c2ef814a4a..f59d98012d 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/tripleo.yaml @@ -10,6 +10,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -49,6 +50,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe @@ -88,6 +90,7 @@ builders: - link-logs + - net-info - devstack-checkout - shell: | #!/bin/bash -xe