This focuses on migrating the release of the (db) nodes from buster to bullseye.
This does not migrate the postgresql version in itself. This is another dedicated task [1].
[1] T2581
Servers to migrate:
- db1.internal.staging.swh.network
- belvedere.internal.softwareheritage.org
- somerset.internal.softwareheritage.org
Plan:
staging:
Moved to this subtask T3813
Production:
- upgrade somerset
- switch the webapp to belvedere
- on somerset
- disable puppet
- stop and disable postgresql
- perform the last buster upgrade
-
reboot(restarted recently) - perform the bullseye upgrade
- reboot
- restart and enable postgresql
- check the replication with belvedere is ok
- switch back the webapp to somerset
- upgrade of belvedere
- add a notification in the status.io page
A database upgrade is scheduled the XXXX-XX-XX between XX:XX and XX:XX Some service disruptions can occur during this period Impacted services: - archive.softwareheritage.org - Save code now - Source code crawler - deposit
- connect to the idrac: https://swh9-adm.inria.fr/
- stop the loaders and listers workers
- stop the indexers
- stop the scheduler runners + those in the tmux in saatchi
- ensure the provenance experiment is stopped
- on belvedere:
- stop puppet
-
stop and disable postgresqls (to avoid the restarts after the server reboots)can be ignored -
perform the last upgrade of buster -
reboot - upgrade to bullseye
- reboot
- check everything is going well after the reboot
-
start and enable the postgresql servers - check the replication to somerset is ok
- reactivate puppet
- restart stopped services