X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-scripts%2Fmininet-ubuntu.sh;h=7f0cd569ef76c7f4bed431f669c4d8b37ca3a4f6;hb=ddbf3cde9195f2b3635318fed187269504853ab1;hp=55cb2cd091d39269554f2cad9a3c411f3f7bf89e;hpb=4a12914ca3d83b3801af49eb79d98c3b7e4f8c13;p=releng%2Fbuilder.git diff --git a/jenkins-scripts/mininet-ubuntu.sh b/jenkins-scripts/mininet-ubuntu.sh index 55cb2cd09..7f0cd569e 100755 --- a/jenkins-scripts/mininet-ubuntu.sh +++ b/jenkins-scripts/mininet-ubuntu.sh @@ -9,11 +9,8 @@ EOF # disable the firewall /bin/bash ./disable_firewall.sh -# Make sure apt-get database is up-to-date -apt-get update -y --force-yes -qq - -# Install vlan for vlan based tests in VTN suites -apt-get install -y --force-yes -qq vlan - -# Install netaddr package which is needed by some custom mininet topologies -apt-get install -y --force-yes -qq python-netaddr +# Add 'hostname' into /etc/hosts during node spinup time to avoid sudo returning +# an 'unable to resolve host' message or some Java API's returning an unknown +# host exception. The workaround on adding "myhostname" into /etc/nss-switch.conf +# does not work on Ubuntu flavours. +sed -i "/127.0.0.1/s/$/\t$(hostname)/" /etc/hosts