$ 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)
Check the new visit-stats table is populated along the way
$ psql service=swh-scheduler -c 'select now() , count(*) from origin_visit_stats'; now | count-------------------------------+------- 2021-01-26 13:27:37.053621+00 | 12682(1 row)$ psql service=swh-scheduler -c 'select now() , count(*) from origin_visit_stats'; now | count------------------------------+------- 2021-01-26 13:27:40.89528+00 | 12719(1 row)
Antoine R. Dumontmarked the checklist item Create consumer group swh.scheduler.journal_client so it starts at the end of the topics as completed
marked the checklist item Create consumer group swh.scheduler.journal_client so it starts at the end of the topics as completed
Antoine R. Dumontmarked the checklist item Deploy a new scheduler journal-client service on saatchi (which must start at the end of the topic) as completed
marked the checklist item Deploy a new scheduler journal-client service on saatchi (which must start at the end of the topic) as completed
getty: Update swh dependencies (storage upgrade for the backfiller)
apt ...
Install backfill.sh with the right configuration backfill.yml and logging.yml (migrated/migration$924)
Trigger backfill
root@getty:/srv/softwareheritage/backfill-2021-01# ./backfill.shStarting origin_visit_status backfill for range 0 -> 10000000Starting origin_visit_status backfill for range 10000000 -> 20000000Starting origin_visit_status backfill for range 20000000 -> 30000000Starting origin_visit_status backfill for range 30000000 -> 40000000Starting origin_visit_status backfill for range 40000000 -> 50000000Starting origin_visit_status backfill for range 50000000 -> 60000000Starting origin_visit_status backfill for range 60000000 -> 70000000Starting origin_visit_status backfill for range 70000000 -> 80000000Starting origin_visit_status backfill for range 80000000 -> 90000000Starting origin_visit_status backfill for range 90000000 -> 100000000Starting origin_visit_status backfill for range 100000000 -> 110000000Starting origin_visit_status backfill for range 110000000 -> 120000000Starting origin_visit_status backfill for range 120000000 -> 130000000Starting origin_visit_status backfill for range 130000000 -> 140000000Starting origin_visit_status backfill for range 140000000 -> 150000000Starting origin_visit_status backfill for range 150000000 -> 1600000002021-01-26T13:47:28 INFO swh.storage.backfill Processing origin_visit_status range 100000000 to 1000010002021-01-26T13:47:28 INFO swh.storage.backfill Processing origin_visit_status range 140000000 to 1400010002021-01-26T13:47:28 INFO swh.storage.backfill Processing origin_visit_status range 120000000 to 1200010002021-01-26T13:47:28 INFO swh.storage.backfill Processing origin_visit_status range 110000000 to 110001000...