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
Describe the bug
Epiphany assumes and requires for PostgreSQL cluster that the first inventory host is always primary node and the second standby. If roles are switched, it fails with error:
TASK [postgresql : Register primary with repmgr]
skipping: [ec2-54-208-80-28.compute-1.amazonaws.com]
fatal: [ec2-54-172-24-132.compute-1.amazonaws.com]: FAILED! => {"changed": true, "cmd": "/usr/bin/repmgr primary register -f /etc/postgresql/10/main/repmgr.conf --force --superuser=epi_repmgr_admin", "delta": "0:00:00.047723", "end": "2020-11-12 14:20:29.793961", "msg": "non-zero return code", "rc": 1, "start": "2020-11-12 14:20:29.746238", "stderr": "ERROR: server is in standby mode and cannot be registered as a primary", "stderr_lines": ["ERROR: server is in standby mode and cannot be registered as a primary"], "stdout": "", "stdout_lines": []}
To Reproduce
Steps to reproduce the behavior:
Create cluster with PostgreSQL replication enabled.
Describe the bug
Epiphany assumes and requires for PostgreSQL cluster that the first inventory host is always primary node and the second standby. If roles are switched, it fails with error:
To Reproduce
Steps to reproduce the behavior:
epicli apply
again (the same config as in step 1).Expected behavior
epicli apply
should not fail and allow to have switched roles.Config files
n/a
OS (please complete the following information):
Cloud Environment (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: