From: Andrew Grimberg Date: Mon, 4 May 2015 22:32:13 +0000 (-0700) Subject: Hard capture nexus IPs X-Git-Tag: release/lithium~146^2~6 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=e0e83dc093197e3831905ef3b54a77e2cc746238;p=releng%2Fbuilder.git Hard capture nexus IPs The upstream DevStack gate seems to be stomping on our dnsmasq setup which makes it difficult to acquire things from nexus since we need our dnsmasq configuration up and running for it to work properly (this isn't an issue for gerrit since even the internal systems use the external IP via a network hairpin for various reasons) This captures the internal address of all the nexus systems so that even if dnsmasq gets stomped on we should still be able to resolve nexus. Change-Id: I1c8a92b03bfd62e48de20d6943255cfeb8d9607d Signed-off-by: Andrew Grimberg --- diff --git a/jenkins-scripts/devstack.sh b/jenkins-scripts/devstack.sh index 1b8da7b070..0659a3de65 100755 --- a/jenkins-scripts/devstack.sh +++ b/jenkins-scripts/devstack.sh @@ -10,6 +10,18 @@ yum install -y perl-XML-XPath python-pip yum update -y python-six +# It looks like the devstack gate is stomping on our dnsmasq setup which +# therefore kills our ability to do proper lookups of some resources. +# Let's capture the 3 nexus IPs into /etc/hosts +cat <> /etc/hosts +# the internal address for nexus +$(dig +short nexus.opendaylight.org) nexus.opendaylight.org +# all the nexus proxies +$(dig +short nexus01.dfw.opendaylight.org) nexus01.dfw.opendaylight.org +$(dig +short nexus02.dfw.opendaylight.org) nexus02.dfw.opendaylight.org +$(dig +short nexus03.ord.opendaylight.org) nexus03.ord.opendaylight.org +EOHOSTS + # make sure we don't require tty for sudo operations cat </etc/sudoers.d/89-jenkins-user-defaults Defaults:jenkins !requiretty