[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: ignore MTU on eth0 when checking for host health.

Holger Levsen gitlab at salsa.debian.org
Wed Nov 13 01:45:15 GMT 2019



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
1a549068 by Holger Levsen at 2019-11-13T01:45:01Z
reproducible Debian: ignore MTU on eth0 when checking for host health.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/reproducible_node_health_check.sh
- hosts/common/etc/rc.local


Changes:

=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -89,18 +89,6 @@ if [ $TIMEOUT -ne 0 ] ; then
 	exit 1
 fi
 
-#
-# check for correct MTU
-#
-echo "$(date -u) - testing whether the network interfaces MTU is 1500..."
-if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort -u)" != "1500" ] ; then
-	ip link
-	echo "$(date -u) - network interfaces MTU != 1500 - this is wrong.  => please \`sudo ifconfig eth0 mtu 1500\`"
-	# should probably turn this into a warning if this becomes to annoying
-	echo "Warning: $HOSTNAME has wrong MTU, please tell the jenkins admins to fix this.  (sudo ifconfig eth0 mtu 1500)"
-	DIRTY=true
-fi
-
 #
 # check for correct future
 #


=====================================
hosts/common/etc/rc.local
=====================================
@@ -44,17 +44,6 @@ fixup_shm() {
 	chmod 1777 /dev/shm
 }
 
-fixup_mtu() {
-	# only act on systems which have eth0
-	if ip link show eth0 >/dev/null 2>&1 ; then
-		# if MTU != 1500 set it to 1500
-		if [ -z "$(ip link show eth0 | grep 'eth0:' | grep 'mtu 1500 ' || true)" ] ; then
-			ip link set dev eth0 mtu 1500
-		fi
-		ip link show eth0
-	fi
-}
-
 fixup_pbuilder_lockfiles() {
 	rm -f /var/cache/pbuilder/*.tgz.tmp
 }
@@ -69,10 +58,6 @@ MESSAGE="$(hostname -f) rebooted"
 #
 fixup_shm
 
-#
-# fixup eth0's MTU if needed
-fixup_mtu
-
 #
 # configure iptables to drop incoming UDP packets
 #



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/1a54906891d7d4757726237ea8921f14df0f1b25

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/1a54906891d7d4757726237ea8921f14df0f1b25
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20191113/b04177c4/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list