-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to postgres:15 #14230
Upgrade to postgres:15 #14230
Conversation
42cfe50
to
fba41aa
Compare
Should this be considered an X version release since it can't be directly upgraded to? @shanemcd @AlanCoding et. al. |
I wouldn't say that we support docker-compose upgrades to begin with. |
Agreed, and the operator deployments will work because there is migration logic built in. |
fba41aa
to
51caaa0
Compare
51caaa0
to
c82743b
Compare
We are holding off merging this to coordinate with other related PR's. This may be a couple of weeks. Sorry for the delay. If anyone needs to start using pg 15 before this merges, you can modify the following variables on your spec to override the postgres images:
|
blocked
c82743b
to
738f907
Compare
This PR is ready for final review, I rebased and addressed all remaining comments. |
* Upgrade to postgres:15 * Changed postgres:15 to quay.io/sclorg/postgresql-15-c9s
* Upgrade to postgres:15 * Changed postgres:15 to quay.io/sclorg/postgresql-15-c9s
SUMMARY
Upgrade from using postgres 12 to postgres 15.
Postgres 15 is not able to load a postgres 12 database directly. So we have modified the docker volume name to help distinguish the two version. However, please note that docker-compose will attempt to use the old volume if the
tools_postgres_1
container already exists. If this happens you will see an error in the logs like:First, remove the container with
docker container rm tools_postgres_1
. If you then start the containers again you will get a fresh install of AWX.If you want to migrate your existing docker-compose development installation do the following:
make docker-compose
.docker exec -it -u postgres tools_postgres_1 pg_dumpall --database awx -U awx > awx_dump.sql
docker container rm tools_postgres_1
.make docker-compose-sources
to upgrade the docker-compose.yml file.docker-compose -f tools/docker-compose/_sources/docker-compose.yml up postgres
to start up the new version of the container.docker cp awx_dump.sql tools_postgres_1:/tmp
to copy the backup file into the new postgres container.docker exec -it tools_postgres_1 /usr/bin/psql -U awx -f /tmp/awx_dump.sql
to restore your old data into the new postgres 15 database.docker-compose up
and start the full environment withmake docker-compose
.I did simple testing with the keycloak integration (which uses the postgres container) and it works fine. There did not seems to be a compatibility matrix for keycloak and postgres but I did find one doc indicating that it worked with pg 15 (but that was likely intended for the latest version 20 and we are on 15).
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION