[Piuparts-commits] rev 295 - in piatti: . home/piupartsm home/piupartsm/bin
Holger Levsen
holger at alioth.debian.org
Fri Mar 20 11:35:16 UTC 2009
Author: holger
Date: 2009-03-20 11:35:16 +0000 (Fri, 20 Mar 2009)
New Revision: 295
Added:
piatti/home/piupartsm/bin/detect_network_issues
Modified:
piatti/README.txt
piatti/home/piupartsm/crontab
Log:
~piupartsm/bin/detect_network_issues is run daily from cron and should detect failed piuparts runs due to network issues on the host.
Modified: piatti/README.txt
===================================================================
--- piatti/README.txt 2009-03-20 00:42:50 UTC (rev 294)
+++ piatti/README.txt 2009-03-20 11:35:16 UTC (rev 295)
@@ -57,8 +57,15 @@
Generating reports for the website
----------------------------------
-piuparts-report is run from ~/piupartsm/crontab
+'piuparts-report' is run from '~piupartsm/crontab'
+Cronjobs to aid problem spotting
+--------------------------------
+'~piupartsm/bin/detect_network_issues' is run daily from cron and should detect failed piuparts runs due to network issues on the host.
+
+More checks should be added as we become aware of them.
+
+
to start a new run and throw away all results:
----------------------------------------------
----
Added: piatti/home/piupartsm/bin/detect_network_issues
===================================================================
--- piatti/home/piupartsm/bin/detect_network_issues (rev 0)
+++ piatti/home/piupartsm/bin/detect_network_issues 2009-03-20 11:35:16 UTC (rev 295)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+MASTER=/org/piuparts.debian.org/master
+DISTROS="sid squeeze"
+
+FILE=`mktemp`
+
+for distro in $DISTROS ; do
+ rgrep -l "Cannot initiate the connection to ftp.fi.debian.org" $MASTER/$distro/fail > $FILE
+done
+
+
+if [ -s $FILE ] ; then
+ echo "Network problems on piatti.debian.org detected!"
+ echo
+ echo "Please review the following logfiles and most likely remove them."
+ echo "If it's always the same package failing, it's likely to be an issue in the"
+ echo "package."
+ echo
+ cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#http://piuparts.debian.org/#g"
+ echo
+ cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#less /org/piuparts.debian.org/master/#"
+ echo
+ echo "----------------------------------------------------------------------"
+ echo
+ cat $FILE | sed -e "s#/org/piuparts.debian.org/master/#rm /org/piuparts.debian.org/master/#"
+ echo
+fi
+rm $FILE
Property changes on: piatti/home/piupartsm/bin/detect_network_issues
___________________________________________________________________
Name: svn:executable
+ *
Modified: piatti/home/piupartsm/crontab
===================================================================
--- piatti/home/piupartsm/crontab 2009-03-20 00:42:50 UTC (rev 294)
+++ piatti/home/piupartsm/crontab 2009-03-20 11:35:16 UTC (rev 295)
@@ -10,3 +10,4 @@
#
42 6 * * * PYTHONPATH=/org/piuparts.debian.org/lib/python2.4/site-packages:/org/piuparts.debian.org/lib/python2.5/site-packages nice python /org/piuparts.debian.org/share/piuparts/piuparts-report
+42 7 * * * /home/piupartsm/bin/detect_network_issues
More information about the Piuparts-commits
mailing list