-
Notifications
You must be signed in to change notification settings - Fork 637
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
postgres_data_path not respected by postgres-15 causing data lost #1790
Comments
I have the same issue. In the postgres-15 image, the $PGDATA is hard coded, as like followed then the $PGDATA variable from postgres-15 pod set in postgres-15 container env. as intended (like "PGDATA=/var/lib/pgsql/data/pgdata" , BUT in the image the $PGDATA does NOT set as intended. So, |
In short, PSQL from sclorg does not support changing data path by This issue needs to be corrected, but care should be taken to ensure that users who have already changed |
@TheRealHaoLiu we probably need to come up with solution for this... |
@fosterseth Users using PSQL15 (Operator 2.13+) with a customized This is a bit out-of-topic, but I honestly disagree with the decision to keep the release cadence while inheriting a bug without any warnings that risks data loss 😞 |
@kurokobo yes, I think we should move forward with hardcoding the For users that have a customized This is a truly unfortunate bug.. I will edit the 2.13.1 and 2.14.0 release text now to add a warning for users upgrading who have a custom |
for people that read this in the future, we deprecated and removed |
Please confirm the following
Bug Summary
Since awx-postgres-15
postgres_data_path
variable is not respected and default/var/lib/pgsql/
is used.Snippet from pod:
Even PGDATA is set properly as
/data/awx/postgres
and directory is mounted as/data/awx
from PV, it's empty:In fact database files are not in persistent volume and will be lost on restart:
AWX Operator version
2.13.1
AWX version
24.0.0
Kubernetes platform
other (please specify in additional information)
Kubernetes/Platform version
k3s version v1.28.7+k3s1
Modifications
no
Steps to reproduce
Upgrade or install from scratch
Expected results
postgres to store data in PV
Actual results
postgres data is not in PV
Additional information
No response
Operator Logs
No response
The text was updated successfully, but these errors were encountered: