This would allow to test migration ahead of actual deployments.
But without actually deploying the staging instance (if something is wrong
for example).
plan:
swh-site/swh-private-data: create db on db1.staging
Dump (pg_dump) the db1.staging swh-web instance
Restore the dump on the new swh-web-next-version db instance
k8s-private-data: adapt the secrets to reference the access credentials
Adapt the chart to use that new instance
Fix permission issue
✓
6 of 6 checklist items completed
· Edited
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Running in circle currently, i'm able to set the password from the psql command [1] (and then i can connect to the db from my machine or elsewhere).
If I make the puppet agent run, it just resets the password (supposedly the right password according to notice output [2]) but then i can't log anymore
Either way, i can connect with the guest user though.
[1]
postgres=# ALTER USER "swh-web" WITH ENCRYPTED PASSWORD '<redacted-clear-pass-properly-referneced-in-private-data-and-so-the-debug-log-confirms-it>';ALTER ROLE
[2]
Notice: type: webapp-next-version name: swh-web-next-version, user: swh-web, password: redacted-by-me-plain-good-passNotice: /Stage[main]/Profile::Postgresql::Server/Notify[Debug log for db webapp-next-version]/message: defined 'message' as 'type: webapp-next-version name: swh-web-next-version, user: swh-web, password: redacted-by-me-plain-good-pass'Notice: /Stage[main]/Profile::Postgresql::Server/Postgresql::Server::Db[swh-web]/Postgresql::Server::Role[swh-web]/Postgresql_psql[ALTER ROLE swh-web ENCRYPTED PASSWORD ****]/command: changed [redacted-by-puppet] to [redacted-by-puppet]
From a recent new swh-web release which trigger the webapp running in swh-cassandra-next-version
(nothing to do but the migration performed nonetheless without any sort of issue)
Operations to perform: Apply all migrations: admin, auth, contenttypes, sessions, swh_web_add_forge_now, swh_web_auth, swh_web_mailmap, swh_web_save_code_nowRunning migrations: No migrations to apply.Stream closed EOF for swh-cassandra-next-version/web-56f4d89f9b-lhbvj (do-migration)