-
Notifications
You must be signed in to change notification settings - Fork 645
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
Unable to set custom postgres_image #1793
Comments
we expose the postgres image and version in the operator, but we still expect the image to be postgres 15 under the hood. There might be some tolerance for older postgres, but it is not supported and you'll be on your own to get that working. You probably will want to use an external database if you are not using the official image, as there seems to be postgres-15 specific logic in the ansible installer playbooks if you are using an operator managed database. |
Hi Seth.
Thank you for the reply.
It is running on an external db (awx with operator in an aks cluster
connected to an external Postgres as a service using the required db
secrets).
The addition of the postgres 13 was more of a hope from my side that it
would be a workaround to complete the postgres-pod startup and go to the
next stage of the operator tasks, but that did not work.
The latest changes stops the operator from going past that stage and
therefore the rest does not get created as it loops and fails om the
postgres fields.
Not going through the the postgres-Pod creating tasks at all given the
pointer to another host would be the best option, but I'm not sure if that
is possible as of now.
Great project btw, you guys do amazing work!!
…On Wed, Mar 27, 2024, 16:33 Seth Foster ***@***.***> wrote:
we expose the postgres image and version in the operator, but we still
expect the image to be postgres 15 under the hood. There might be some
tolerance for older postgres, but it is not supported and you'll be on your
own to get that working.
You probably will want to use an external database if you are not using
the official image, as there seems to be postgres-15 specific logic in the
ansible installer playbooks if you are using an operator managed database.
—
Reply to this email directly, view it on GitHub
<#1793 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGKKOYRSYEB23PNAQDBVUATY2LREJAVCNFSM6AAAAABFHXCBK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTGA3TMMRQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@Raptus1 I am a bit confused. You mentioned that you have an external database configured for you AWX instance, but I do not see a custom If you want to use PostgreSQL 13, I would recommend using https://quay.io/repository/sclorg/postgresql-13-c8s (quay.io/sclorg/postgresql-13-c8s) and configuring it as an external database. For a fresh installation, if you wanted to have your external (not managed by the awx-operator) pg13 instance in your k8s cluster, you could create a postgresql statful set and service using the pg13 image, then create a k8s secret containing your postgresql configuration (username, host, port, password, database, type: unmanaged) and specify the name of that secret on the AWX I would recommend taking an AWXBackup before trying this out. |
Apologies for the misunderstanding. I have updated the spec together with the secret in OP now. It is not the complete spec though, but I did not feel the need for sharing the full spec with limit an all. Still should have included the secret reference. Thanks. |
@rooftopcellist is the expectation that if secret has |
I have been on vacation so have not been able to follow this up, but will a potential fix (if @fosterseth is correct on the expectation) be added to a incoming tag? |
Please confirm the following
Bug Summary
When adding the spec postgres_image and postegres_image_version i expected to be able to keep postgres on version 13 instead of the operator updating to postgres 15, but that seems to not be the case as the tasks are nowhere to be found in the operator logs
As you can read, it goes from the task on line 28, and skipped all the tasks inbetween and then goes to create the new database config as if postgres_image and postgres_image_version is not set or as if the tasks are not even there.
Am I missing to change some other default variable or config setting?
AWX Operator version
2.13.1
AWX version
24.0.0
Kubernetes platform
kubernetes
Kubernetes/Platform version
1.28.5
Modifications
no
Steps to reproduce
Secret:
Expected results
For the operator to set and respect the fact that I set and want to use postgres 13 instead of the latest 15
Actual results
postgres_image is not pushed into fact and therefore it will use _postgres_image defaults instead using the newly added postgres 15
Additional information
No response
Operator Logs
The text was updated successfully, but these errors were encountered: