[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.50-174-ga23da25

Holger Levsen holger at layer-acht.org
Mon May 13 14:09:13 UTC 2013


The following commit has been merged in the develop branch:
commit 27c8706099f0ecacd25580095934a9393e87cdea
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sun May 12 18:07:37 2013 +0200

    p-s: exit gracefully if no sections were found
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/README_piatti.txt b/README_piatti.txt
index bbd9401..e0f88ca 100644
--- a/README_piatti.txt
+++ b/README_piatti.txt
@@ -9,11 +9,15 @@ Notes about the piuparts installation on piatti.debian.org
 
 == Installation
 
+piuparts.debian.org is a setup running on two systems: pejacevic.debian.org, running the piuparts-master instance and an apache webserver to display the results and piu-slave-bm-a.debian.org, running a piuparts-slave node. Hopefully soon there should be several slave-nodes running on that system.
+
 === User setup
 
-A piupartss and a piupartsm user is need. Both are members of the group piuparts and /srv/piuparts.debian.org is 774 piupartss:piuparts.
+A piupartss (on piu-slave-bm-a) and a piupartsm (on pejacevic) user is needed. Both are members of the group piuparts and /srv/piuparts.debian.org is 774 piupartss:piuparts.
 Both user have some files in $HOME which are kept in git, including hidden files.
 
+FIXME: this needs to be added to ~/.bashrc: export PATH="~/bin:$PATH"
+
 Create an SSH keypair for piupartss and put it into ~/.ssh/authorized_keys of the piupartsm user, so the piupartss can login with ssh to localhost as piupartsm.
 
 === '/etc/sudoers' for piatti
@@ -29,7 +33,7 @@ piupartss       ALL = NOPASSWD: ALL
 
 === piuparts installation from source
 
-* sudo apt-get install apt python debootstrap lsof lsb-release python-debian asciidoc xmlto python-rpy r-recommended r-base-dev gs
+* sudo apt-get build-dep piuparts
 * you need a webserver too, if you run the master
 * Copy 'http://anonscm.debian.org/gitweb/?p=piuparts/piuparts.git;hb=develop;a=blob_plain;f=update-piuparts-setup' on the host and run it under the 'piupartss' user. It assumes you want to set it up in '/srv/piuparts.debian.org' and does all further updates from git as well as the initial installation. It needs the piupartss and piupartsm user set up as described below, though.
 * mkdir /srv/piuparts.debian.org
@@ -41,7 +45,6 @@ piupartss       ALL = NOPASSWD: ALL
 ----
 <VirtualHost *:80>
         ServerName piuparts.debian.org
-        ServerAlias piuparts.cs.helsinki.fi
 
         ServerAdmin debian-admin at debian.org
 
@@ -63,18 +66,26 @@ piupartss       ALL = NOPASSWD: ALL
 
 == Updating the piuparts installation
 
+Updating the master, pejacevic:
+
+----
+holger at pejacevic$ sudo su - piupartsm update-piuparts-master-setup pejacevic origin
+----
+
+Updating the slave, pejacevic:
+
 ----
-piupartss at piatti:/srv/piuparts.debian.org$ ~/bin/update-piuparts-setup
+holger at piu-slave-bm-a$ sudo su - piupartss update-piuparts-slave-setup pejacevic origin
 ----
 
 == Running piuparts
 
 === Starting and stopping the slave
 
-Run the following script under *your* user account you will start piuparts-slave on piatti, piuparts-master will be started automatically by the slave.
+Run the following script under *your* user account you will start piuparts-slave on pejacevic, piuparts-master will be started automatically by the slave.
 
 ----
-holger at piatti:~$ sudo /home/piupartss/bin/slave_run
+holger at pejacevic:~$ sudo -u piupartss -i slave_run
 ----
 
 There are several cronjobs installed via '~piupartsm/crontab' and
@@ -91,7 +102,7 @@ but that may leave temporary directories and processes around.
 Run the following script under *your* user account:
 
 ----
-holger at piatti:~$ sudo /home/piupartss/bin/slave_join
+holger at pejacevic:~$ sudo -u piupartss -i slave_join
 ----
 
 === Filing bugs
@@ -105,7 +116,7 @@ Usertags: piuparts piuparts.d.o
 
 === Generating reports for the website
 
-'piuparts-report' is run daily five minutes after midnight from '~piupartsm/crontab'
+'piuparts-report' is run daily five minutes after midnight from '~piupartsm/crontab' on pejacevic.
 
 === Cronjobs to aid problem spotting
 
@@ -119,9 +130,8 @@ More checks should be added as we become aware of them.
 
 == Authors
 
-Last updated: June 2012
+Last updated: May 2013
 
 Holger Levsen <holger at debian.org>
-Luk Claes <luk at debian.org>
 
 // vim: set filetype=asciidoc:
diff --git a/piuparts-slave.py b/piuparts-slave.py
index e4ab749..c5c7f00 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -878,6 +878,10 @@ def main():
             # ignore unknown sections
             pass
 
+    if not sections:
+        logging.error("no sections found")
+        return
+
     while True:
         global got_sighup
         test_count = 0

-- 
piuparts git repository



More information about the Piuparts-commits mailing list