You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating the Patroni-Config on a running cluster it exit with code 1 and the following messages:
$ patroni --validate-config /etc/patroni/patroni.yml ; echo $?
restapi.listen 0.0.0.0:8008 didn't pass validation: Port 8008 is already in use.
postgresql.listen 0.0.0.0:5432 didn't pass validation: Port 5432 is already in use.
1
This makes it not possible to validate the config prior to a restart, for example within an ansible-template using validate:
What happened?
It's not a Bug but a Feature-Request.
When validating the Patroni-Config on a running cluster it exit with code 1 and the following messages:
This makes it not possible to validate the config prior to a restart, for example within an ansible-template using validate:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html#parameter-validate
It would be pretty good to have a check/validate mode like nginx -t or haproxy -c that could be integrated into automation-tools.
How can we reproduce it (as minimally and precisely as possible)?
Just validate the config of an already running cluster
What did you expect to happen?
exit with 0 if config is valid
Patroni/PostgreSQL/DCS version
Patroni configuration file
n/a
patronictl show-config
n/a
Patroni log files
PostgreSQL log files
Have you tried to use GitHub issue search?
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: