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
fix: enforce postgres.auto.conf to rw before run rewind #3728
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
b219cb3
to
96f4833
Compare
E2E tests running on EDB fork https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/7667599740 |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
/ok-to-merge E2E green |
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
I started another E2e run: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/7694371143 |
/ok-to-merge E2E green |
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit 9ff7942)
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit 9ff7942)
pg_rewind needs to be able to write all the files in the PostgreSQL data directory. For this reason, we always set `postgresql.auto.conf` mode to 600 before running it. After the PostgreSQL data directory is ready to be used, we revert the permission to be coherent with what the user specified in the `enableAlterSystem` configuration parameter. Closes: #3698 Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> (cherry picked from commit 9ff7942)
pg_rewind needs to be able to write to all the files in the PostgreSQL data
directory. For this reason, we always set
postgresql.auto.conf
mode to 600before running it.
After the PostgreSQL data directory is ready to be used, we revert the
permission to be coherent with what the user specified in the
enableAlterSystem
configuration parameter.
Closes: #3698