Confirmed users
4,293
edits
No edit summary |
(→By script: Streamline docs for running on buildduty-tools) |
||
| Line 19: | Line 19: | ||
= By script = | = By script = | ||
The above actions have been encapsulated into a script: https://hg.mozilla.org/build/tools/file/default/buildfarm/maintenance/restart_masters.py | The above actions have been encapsulated into a script: https://hg.mozilla.org/build/tools/file/default/buildfarm/maintenance/restart_masters.py. The script is setup to run on <tt>buildduty-tools.srv.releng.usw2.mozilla.com</tt>, located at <tt>/home/buildduty/restart_masters/</tt> under buildduty's account. | ||
The script | The wrapper script <tt>/home/buildduty/restart_masters.sh</tt> is used to update repositories and call restart_masters.py. The latter will prompt for the usernames and passwords it needs (ldap for slavealloc, cltbld and root for ssh). | ||
Here is an example invocation: | Here is an example invocation: | ||
# buildduty-tools | # buildduty@buildduty-tools | ||
$ screen -R restart_masters | $ screen -R restart_masters | ||
$ | $ /home/buildduty/restart_masters.sh | ||
The logs go to [https://papertrailapp.com/systems/255918104/events?q=restart_masters papertrail], outputting a progress report every 60 minutes. You can send a SIGUSR1 to restart_masters.py to prompt an extra progress report; allow time for the current status check to complete first. | |||
= Automated = | = Automated = | ||
The above script requires sensitive credentials that shouldn't be stored on disk. For now, we're still running this script by hand. | The above script requires sensitive credentials that shouldn't be stored on disk. For now, we're still running this script by hand. | ||