[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible node health: add some debugging output

Holger Levsen gitlab at salsa.debian.org
Sun Jul 26 00:48:04 BST 2020



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


Commits:
6dd3dfeb by Holger Levsen at 2020-07-26T01:47:55+02:00
reproducible node health: add some debugging output

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
=====================================
@@ -147,11 +147,15 @@ fi
 echo "$(date -u) - checking whether all services are running fine..."
 if ! systemctl is-system-running > /dev/null; then
 	SERVICES=$(mktemp --tmpdir=$TEMPDIR node-health-XXXXXXX)
-	systemctl list-units --state=error,failed > $SERVICES
+	systemctl list-units --state=error,failed > $SERVICES 2>&1
+	echo "$(date -u) - problematic services found:"
+	cat $SERVICES
 	for UNIT in acpid rc-local ; do
 		if [ -n "$(grep '$UNIT' $SERVICES)" ] ; then
 			echo "$(date -u) - resetting failed unit $UNIT..."
 		        sudo systemctl reset-failed $UNIT
+		else
+			echo "$(date -u) - $UNIT fine..."
 		fi
 	done
 	for UNIT in pbuilder_build session- ; do
@@ -159,6 +163,8 @@ if ! systemctl is-system-running > /dev/null; then
 			SCOPE=$(grep '$UNIT' $SERVICES | cut -d ' ' -f2)
 			echo "$(date -u) - resetting failed scope $SCOPE for $UNIT..."
 		        sudo systemctl reset-failed $SCOPE
+		else
+			echo "$(date -u) - $UNIT fine..."
 		fi
 	done
 	rm $SERVICES



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6dd3dfeba10248612da0e1ac0ff7e8b24c1fc7eb
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/20200725/3d4e46f3/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list