Skip to content

Commit

Permalink
Add more information about buildbot upgrade errors (Refs: #2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
jollyroger committed Oct 19, 2014
1 parent daa4841 commit 1cba0fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions master/buildbot/scripts/upgrade_master.py
Expand Up @@ -48,10 +48,14 @@ def checkBasedir(config):
tac = base.getConfigFromTac(config['basedir'])
if tac:
if isinstance(tac.get('rotateLength', 0), str):
print "WARNING: rotateLength is a string, it should be a number"
print "ERROR: rotateLength is a string, it should be a number"
print "ERROR: Please, edit your buildbot.tac file and run again"
print "ERROR: See http://trac.buildbot.net/ticket/2588 for more details"
return False
if isinstance(tac.get('maxRotatedFiles', 0), str):
print "WARNING: maxRotatedFiles is a string, it should be a number"
print "ERROR: maxRotatedFiles is a string, it should be a number"
print "ERROR: Please, edit your buildbot.tac file and run again"
print "ERROR: See http://trac.buildbot.net/ticket/2588 for more details"
return False

return True
Expand Down
6 changes: 5 additions & 1 deletion master/contrib/init-scripts/buildmaster.init.sh
Expand Up @@ -169,8 +169,12 @@ case "$1" in
do_op "master_op" "restart" "Restarting buildmaster" "$2"
exit $?
;;
upgrade)
do_op "master_op" "upgrade-master" "Upgrading buildmaster" "$2"
exit $?
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
echo "Usage: $0 {start|stop|restart|reload|force-reload|upgrade}"
exit 1
;;
esac
Expand Down

0 comments on commit 1cba0fd

Please sign in to comment.