Project 'infra/sysadm-environment' was moved to 'swh/infra/sysadm-environment'. Please update any links and bookmarks that may still have the old path.
$ clush -b -w @swh-workers 'puppet agent --disable "Deploy new storage version"; cd /etc/systemd/system/multi-user.target.wants; for unit in swh-worker@*; do systemctl disable $unit; done; systemctl stop swh-worker@*'
Upgrade saam backend to latest storage/model/scheduler versions:
# apt ...# dpkg -l python3-swh.model python3-swh.storage python3-swh.scheduler python3-swh.journalDesired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name Version Architecture Description+++-=====================-=====================-============-===================================ii python3-swh.journal 0.6.2-1~swh1~bpo10+1 all Software Heritage Journal utilitiesii python3-swh.model 0.11.0-1~swh1~bpo10+1 all Software Heritage data modelii python3-swh.scheduler 0.9.2-1~swh1~bpo10+1 all Software Heritage Schedulerii python3-swh.storage 0.21.0-1~swh1~bpo10+1 all Software Heritage storage utilities
Upgrade db from 164 to 166:
$ psql service=swhsoftwareheritage=> \conninfoYou are connected to database "softwareheritage" as user "swhstorage" on host "belvedere.internal.softwareheritage.org" (address "192.168.100.210") at port "5432".SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)softwareheritage=> select dbversion from dbversion order by dbversion desc limit 3; dbversion---------------------------------------------------------- (166,"2021-01-26 09:28:10.658088+00","Work In Progress") (165,"2021-01-26 09:28:10.658088+00","Work In Progress") (164,"2020-11-04 14:00:07.29092+00","Work In Progress")
Ensure replication is fine
$ psql service=mirror-swhsoftwareheritage=> \conninfoYou are connected to database "softwareheritage" as user "guest" on host "somerset.internal.softwareheritage.org" (address "192.168.100.103") at port "5432".SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)softwareheritage=> select dbversion from dbversion order by dbversion desc limit 3; dbversion--------------------------------------------------------- (166,"2021-01-26 09:43:57.94437+00","Work In Progress") (165,"2021-01-26 09:43:10.95685+00","Work In Progress") (164,"2020-12-02 10:17:09.47653+00","Work In Progress")
Upgrade swh-workers with latest swh versions.
Restart those
(break, deposit meeting ;)
Antoine R. Dumontmarked the checklist item Stop the loaders (so they won't fail and consume too much messages once the storage is stopped) as completed
marked the checklist item Stop the loaders (so they won't fail and consume too much messages once the storage is stopped) as completed
Antoine R. Dumontmarked the checklist item Stop the storage service as completed
marked the checklist item Stop the storage service as completed
Antoine R. Dumontmarked the checklist item Upgrade the storage storage server to last version of swh-storage/swh-model/swh-journal as completed
marked the checklist item Upgrade the storage storage server to last version of swh-storage/swh-model/swh-journal as completed
Antoine R. Dumontmarked the checklist item Upgrade the storage database model as completed
marked the checklist item Upgrade the storage database model as completed
Antoine R. Dumontmarked the checklist item Start the storage service as completed
marked the checklist item Start the storage service as completed
Antoine R. Dumontmarked the checklist item Upgrade the replica db model so replication continues as completed
marked the checklist item Upgrade the replica db model so replication continues as completed
Antoine R. Dumontmarked the checklist item Upgrade and start the loaders as completed
marked the checklist item Upgrade and start the loaders as completed
Antoine R. Dumontmarked the checklist item Upgrade scheduler stack to last versions created during the sprint as completed
marked the checklist item Upgrade scheduler stack to last versions created during the sprint as completed
softwareheritage-scheduler=> \conninfoYou are connected to database "softwareheritage-scheduler" as user "swhscheduler" on host "belvedere.internal.softwareheritage.org" (address "192.168.100.210") at port "5432".SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)softwareheritage-scheduler=> select dbversion from dbversion order by dbversion desc limit 8; dbversion--------------------------------------------------------- (25,"2021-01-26 11:42:29.918304+00","Work In Progress") (24,"2021-01-26 11:42:15.917849+00","Work In Progress") (23,"2021-01-26 11:42:05.066391+00","Work In Progress") (20,"2021-01-26 11:41:02.493991+00","Work In Progress") (19,"2021-01-26 11:40:39.74381+00","Work In Progress") (18,"2021-01-26 11:40:32.628425+00","Work In Progress") (17,"2021-01-26 11:30:31.575419+00","Work In Progress") (16,"2020-06-22 18:00:33.852039+00","Work In Progress")(8 rows)