kostiantyn-nemchenko / ansible-role-patroni

:elephant: Ansible Role for Patroni
https://galaxy.ansible.com/kostiantyn-nemchenko/patroni
MIT License
68 stars 44 forks source link

Patroni is not running #46

Closed varmaraju closed 5 years ago

varmaraju commented 5 years ago

Hi Sir,

I am trying to setup patroni on 2 servers. ETCD cluster is showing healthy. Even Patroni play book also not shown any issues. But Patroni is not up and running. I am facing below issues. With the same play book when I have setup with 3 nodes/servers, its working fine. Can you please help me to fix this issue.

2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): return self.post_bootstrap() 2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): File "/usr/local/lib/python2.7/dist-packages/patroni/ha.py", line 1079, in post_bootstrap 2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): self.cancel_initialization() 2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): File "/usr/local/lib/python2.7/dist-packages/patroni/ha.py", line 1074, in cancel_initialization 2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): raise PatroniException('Failed to bootstrap cluster') 2018-12-25T23:13:24-08:00 daemon:info [1e] patroni (31544): patroni.exceptions.PatroniException: 'Failed to bootstrap cluster' 2018-12-25T23:13:24-08:00 daemon:notice [1d] systemd (1): patroni.service: Main process exited, code=exited, status=1/FAILURE 2018-12-25T23:13:24-08:00 daemon:notice [1d] systemd (1): patroni.service: Unit entered failed state. 2018-12-25T23:13:24-08:00 daemon:warning [1c] systemd (1): patroni.service: Failed with result 'exit-code'.

varmaraju commented 5 years ago

I have fix this issue. But I have found one issue, when ever I have used hostnames, its not working. when ever I have given IP address its working fine Please let me know is there any issue with hostnames?

kostiantyn-nemchenko commented 5 years ago

Could you post the patroni configuration file created by this role?

kostiantyn-nemchenko commented 5 years ago

Closed due to inactivity.