Skip to content

modules.postgres: pass waldir to init - #57770

Merged
Ch3LL merged 6 commits into
saltstack:masterfrom
moench-tegeder:modules_postgres_initdb_pass_waldir
Feb 22, 2021
Merged

modules.postgres: pass waldir to init#57770
Ch3LL merged 6 commits into
saltstack:masterfrom
moench-tegeder:modules_postgres_initdb_pass_waldir

Conversation

@moench-tegeder

Copy link
Copy Markdown
Contributor

Since 2019.2.0 postgres.datadir_init() takes a 'waldir' keyword
argument to specify a location for an external wal directory -
but this parameter is not passed to _run_initdb (l. 3596),
rendering 'waldir' effectively nonfunctional.
The fix is obvious - pass the parameter. The unit test is
being modified to at least catch 'waldir' set to None (unset).
Testing the generated initdb command line or even final data
directory properties would be desirable, but seems to be much
more invasive and thus not that suitable for a "small bugfix".

Fixes: #57769

Since 2016.3.0 postgres.datadir_init() takes a 'waldir' keyword
argument to specify a location for an external wal directory -
but this parameter is not passed to _run_initdb (l. 3596),
rendering 'waldir' effectively nonfunctional.
The fix is obvious - pass the parameter. The unit test is
being modified to at least catch 'waldir' set to None (unset).
Testing the generated initdb command line or even final data
directory properties would be desirable, but seems to be much
more invasive and thus not that suitable for a "small bugfix".
@moench-tegeder
moench-tegeder requested a review from a team as a code owner June 23, 2020 21:11
@ghost
ghost requested review from twangboy and removed request for a team June 23, 2020 21:12
@moench-tegeder

Copy link
Copy Markdown
Contributor Author

do I need to do anything to get this backpatched to older (supported) releases?

@sagetherage
sagetherage requested review from garethgreenaway and removed request for twangboy July 10, 2020 21:32
@moench-tegeder

moench-tegeder commented Sep 21, 2020

Copy link
Copy Markdown
Contributor Author

Oh cool, I never got the mail with the changes.
Anyways, both failed tests were infra failures:

09:21:11  ERROR: Maximum checkout retry attempts reached, aborting
09:21:11  Finished: FAILURE

And whatever that gitlab pipeline is doing.
Let's pull this up to speed and try again.

@sagetherage sagetherage added the Aluminium Release Post Mg and Pre Si label Oct 8, 2020
@Ch3LL
Ch3LL merged commit 847fc6f into saltstack:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Aluminium Release Post Mg and Pre Si

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] postgres.datadir_init parameter "waldir" nonfunctional

5 participants