[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: add workaround for opi2a acting strange…
Holger Levsen
holger at layer-acht.org
Tue Aug 23 10:32:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 9c18c6e8b923c9b75b290e2f2d1302090f68a9df
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Aug 23 12:31:32 2016 +0200
reproducible Debian: add workaround for opi2a acting strange…
---
update_jdn.sh | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index 841b19c..95e6f2d 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -30,13 +30,18 @@ explain() {
echo "--------------------------------------------"
explain "$(date) - begin deployment update."
-# run update at current date
+# some nodes need special treatment…
case $HOSTNAME in
profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386)
# set correct date
sudo service ntp stop
sudo ntpdate -b de.pool.ntp.org
;;
+ opi2a)
+ # this host is acting strange…
+ # restarting services cause hangs, so we don't do that
+ echo -e "#!/bin/sh\nexit 0" | sudo tee /usr/sbin/policy-rc.d
+ ;;
*) ;;
esac
@@ -672,7 +677,13 @@ case $HOSTNAME in
profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386)
sudo date --set="+398 days +6 hours + 23 minutes"
;;
+ opi2a)
+ # this host is acting strange…
+ # cleaning up our workaround…
+ sudo rm /usr/sbin/policy-rc.d
+ ;;
jenkins)
+ # notify irc
MESSAGE="jenkins.d.n updated to $(cd $BASEDIR ; git describe --always)."
kgb-client --conf /srv/jenkins/kgb/debian-qa.conf --relay-msg "$MESSAGE"
;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list