staging: Upgrade postgresql server
What? Current version in staging is 12.
Why?
-
This is behind the current version in production (16).
-
We start having errors due to no longer supported version (see check-version init container for the webapps in staging) [2]
How? Upgrading documentation [1] (and then updates in puppet).
Or? Migrate to kubernetes [3] (we already have all we need in swh-charts).
Since it was simpler to do than migrating the overall postgresql db, & the dbs were not critical, the following were migrated within kubernetes to solve immediate issues (follow the breadcrumb in the issue for details):
- swh-web
- swh-deposit
[2]
2024-08-12T16:03:02.621450630Z do-migration raise NotSupportedError(
2024-08-12T16:03:02.621457164Z do-migration django.db.utils.NotSupportedError: PostgreSQL 13 or later is required (found 12.20).