Changes
Page history
more forgotten reboot job renames
authored
Dec 04, 2024
by
anarcat
Show whitespace changes
Inline
Side-by-side
howto/upgrades.md
View page @
b3e446c7
...
@@ -384,14 +384,14 @@ If this is only a virtual machine, and the only one affected, it can
...
@@ -384,14 +384,14 @@ If this is only a virtual machine, and the only one affected, it can
be rebooted directly. This can be done with the
`fabric-tasks`
task
be rebooted directly. This can be done with the
`fabric-tasks`
task
`fleet.reboot-host`
:
`fleet.reboot-host`
:
fab -H test-01.torproject.org,test-02.torproject.org reboot-host
fab -H test-01.torproject.org,test-02.torproject.org
fleet.
reboot-host
By default, the script will wait 2 minutes before hosts: that should
By default, the script will wait 2 minutes before hosts: that should
be changed to
*30 minutes*
if the hosts are part of a mirror network
be changed to
*30 minutes*
if the hosts are part of a mirror network
to give the monitoring systems (
`mini-nag`
) time to rotate the hosts
to give the monitoring systems (
`mini-nag`
) time to rotate the hosts
in and out of DNS:
in and out of DNS:
fab -H mirror-01.torproject.org,mirror-02.torproject.org reboot-host --delay-hosts 1800
fab -H mirror-01.torproject.org,mirror-02.torproject.org
fleet.
reboot-host --delay-hosts 1800
If the host has an encrypted filesystem and is hooked up with Mandos, it
If the host has an encrypted filesystem and is hooked up with Mandos, it
will return automatically. Otherwise it might need a password to be
will return automatically. Otherwise it might need a password to be
...
@@ -435,10 +435,10 @@ This routine should be able to reboot all hosts with a `rebootPolicy`
...
@@ -435,10 +435,10 @@ This routine should be able to reboot all hosts with a `rebootPolicy`
defined to
`justdoit`
or
`rotation`
:
defined to
`justdoit`
or
`rotation`
:
echo "rebooting 'justdoit' hosts with a 10-minute delay, every 2 minutes...."
echo "rebooting 'justdoit' hosts with a 10-minute delay, every 2 minutes...."
fab -H $(ssh db.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b ou=hosts,dc=torproject,dc=org -LLL "(rebootPolicy=justdoit)" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort -R' | sed 's/ /,/g') reboot-host --delay-shutdown=10 --delay-hosts=120
fab -H $(ssh db.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b ou=hosts,dc=torproject,dc=org -LLL "(rebootPolicy=justdoit)" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort -R' | sed 's/ /,/g')
fleet.
reboot-host --delay-shutdown=10 --delay-hosts=120
echo "rebooting 'rotation' hosts with a 10-minute delay, every 30 minutes...."
echo "rebooting 'rotation' hosts with a 10-minute delay, every 30 minutes...."
fab -H $(ssh db.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b ou=hosts,dc=torproject,dc=org -LLL "(rebootPolicy=rotation)" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort -R' | sed 's/ /,/g') reboot-host --delay-shutdown=10 --delay-hosts=1800
fab -H $(ssh db.torproject.org 'ldapsearch -H ldap://db.torproject.org -x -ZZ -b ou=hosts,dc=torproject,dc=org -LLL "(rebootPolicy=rotation)" hostname | awk "\$1 == \"hostname:\" {print \$2}" | sort -R' | sed 's/ /,/g')
fleet.
reboot-host --delay-shutdown=10 --delay-hosts=1800
Another example, this will reboot all hosts running Debian
`bookworm`
,
Another example, this will reboot all hosts running Debian
`bookworm`
,
in random order:
in random order:
...
...
...
...