[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jenkins node health check: do not test for latest running kernel, if a...

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Jun 14 00:57:09 BST 2023



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


Commits:
fc3a4aea by Holger Levsen at 2023-06-14T01:56:45+02:00
jenkins node health check: do not test for latest running kernel, if a linux-image package is on hold

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

- - - - -


1 changed file:

- bin/reproducible_node_health_check.sh


Changes:

=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -145,10 +145,14 @@ fi
 #
 # check if the latest kernel is running
 #
-echo "$(date -u) - testing whether the latest kernel is running..."
-if ! /usr/lib/nagios/plugins/check_running_kernel ; then
-	echo "Warning: running kernel needs attention!"  # string checked with logparse
-	DIRTY=true
+if ! $(dpkg -l |grep linux-image | grep -q ^hi) ; then
+	echo "$(date -u) - testing whether the latest kernel is running..."
+	if ! /usr/lib/nagios/plugins/check_running_kernel ; then
+		echo "Warning: running kernel needs attention!"  # string checked with logparse
+		DIRTY=true
+	fi
+else
+	echo "$(date -u) - a linux-image package has been manually put on hold, so no testing whether the latest kernel is running..."
 fi
 
 #



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fc3a4aeafdc75fb58df41d8030dd1561932d9a95

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fc3a4aeafdc75fb58df41d8030dd1561932d9a95
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/20230613/6e1e1c8f/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list