Page MenuHomeSoftware Heritage

Deploy swh-vault workers v1.4.2 on prod and staging
Closed, MigratedEdits Locked

Description

you just need to make sure the swh-storage api the workers query have version >=v0.43.0

plan (staging then prod):

  • check the python3-swh.storage version (of the api used by the workers)
  • Upgrade storage module on storage server (if required)
  • Upgrade python3-swh.vault on vault workers (bump swh.model as welll if required)
  • Restart swh-worker@vault_cooker
  • Upgrade workers to latest python3-swh.vault version
  • Check cooking is still ok

Event Timeline

vlorentz triaged this task as Normal priority.Feb 8 2022, 11:53 AM
vlorentz created this task.
ardumont changed the task status from Open to Work in Progress.Feb 8 2022, 1:53 PM
ardumont updated the task description. (Show Details)
ardumont moved this task from Weekly backlog to in-progress on the System administration board.
  • Check storage server api version:
ardumont@vault:~% hostname -f
vault.internal.staging.swh.network
ardumont@vault:~% sudo grep 5003 /etc/softwareheritage/vault/server.yml
    url: http://storage1.internal.staging.swh.network:5003/
ssh storage1.internal.staging.swh.network dpkg -l python3-swh.storage | grep ii
ii  python3-swh.storage 0.43.0-1~swh1~bpo10+1 all          Software Heritage storage utilities
  • Might as well upgrade the storage to the latest version
root@storage1:~# dpkg -l python3-swh.storage | grep ii
ii  python3-swh.storage 0.43.1-1~swh1~bpo10+1 all          Software Heritage storage utilities
root@storage1:~# systemctl reload-or-restart gunicorn-swh-storage.service
  • Check vault version:
ardumont@vault:~% dpkg -l python3-swh.vault | grep ii
ii  python3-swh.vault 1.3.0-1~swh1~bpo10+1 all          Software Heritage Vault
root@vault:~# apt upgrade -y
...
Setting up python3-swh.vault (1.4.2-1~swh1~bpo10+1) ...
...
root@vault:~# dpkg -l python3-swh.vault | grep ii
ii  python3-swh.vault 1.4.2-1~swh1~bpo10+1 all          Software Heritage Vault
root@vault:~# systemctl reload-or-restart gunicorn-swh-vault.service
root@vault:~#
ardumont renamed this task from Deploy swh-vault v1.4.2 on prod and staging to Deploy swh-vault workers v1.4.2 on prod and staging.Feb 8 2022, 2:36 PM
ardumont updated the task description. (Show Details)

In the end, the plan is more simple

14:44 <+ardumont> so only (cooker) workers need an upgrade of the vault package (and the storage api they use need at least v0.43) right?
14:45 <+vlorentz> yes

ongoing upgrade for production workers.