[Git][qa/jenkins.debian.net][master] jdn: only reboot osl5 if it's at least 15min after the full hour. Closes: #1136173
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu May 14 17:02:40 BST 2026
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
e88b26d6 by Holger Levsen at 2026-05-14T18:02:31+02:00
jdn: only reboot osl5 if it's at least 15min after the full hour. Closes: #1136173
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/djm
Changes:
=====================================
bin/djm
=====================================
@@ -572,13 +572,19 @@ djm_do() {
#
case $ACTION in
reboot) case $SHORTNODE in
- XXXXosuosl4*) echo "Skipping rebooting $NODE because josch is running something there...."
- # this is disabled, o4 can be rebooted again
+ osuosl5*) MINUTE=$(date -u '+%M')
+ if [[ $MINUTE -le 15 ]] ; then
+ local SLEEP=$(( 15 - $MINUTE ))
+ echo "Sleeping $SLEEP minutes before rebooting osuosl5 because #1136173"
+ sleep ${SLEEP}m
+# this is disabled, o4 can be rebooted again
+ fi
;;
- *) ( ssh $NODE "sudo reboot" || xterm -T "$SHORTNODE / $ACTION failed" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "echo -e 'ssh to $NODE failed, thus rebooting failed.\n\npress enter to continue' ; read a " )
- run_xterm2wait4node_comeback
+ *) ;;
esac
- ;;
+ ( ssh $NODE "sudo reboot" || xterm -T "$SHORTNODE / $ACTION failed" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "echo -e 'ssh to $NODE failed, thus rebooting failed.\n\npress enter to continue' ; read a " )
+ run_xterm2wait4node_comeback
+ ;;
powercycle) case $SHORTNODE in
jenkins) `dirname $0`/powercycle_x86_nodes.py jenkins
;;
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e88b26d6eba88d87e8b721a25da51c370fbfc739
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e88b26d6eba88d87e8b721a25da51c370fbfc739
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20260514/438950b6/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list