Skip to content

Replica not starting with pgpool or pgbouncer #641

@domcar

Description

@domcar

Describe the bug
If I create a cluster with flag pgpool or pgbouncer the replica cannot connect to DB

To Reproduce
./pgo-mac.3.5.1 create cluster tre --pgpool=true --password=ciaociao --replica-count=1

Screenshots

postgres-operator-pgo-6f9886f76d-7t757   3/3       Running   0          2h
tre-5b6df6764d-zjxc8                     2/2       Running   0          13m
tre-cxem-76bff775b7-ck6bc                1/2       Running   0          13m

Logs from the replica k logs tre-cxem-76bff775b7-ck6bc -c database

Mon Mar 18 14:47:56 UTC 2019 INFO: Setting PGROOT to /usr/pgsql-11.
Mon Mar 18 14:47:56 UTC 2019 INFO: The PGUSER secret exists.
Mon Mar 18 14:47:57 UTC 2019 INFO: The PGROOT secret exists.
Mon Mar 18 14:47:57 UTC 2019 INFO: The PGPRIMARY secret exists.
Mon Mar 18 14:47:57 UTC 2019 INFO: Cleaning up the old postmaster.pid file..
Mon Mar 18 14:47:57 UTC 2019 INFO: User ID is set to uid=26(postgres) gid=26(postgres) groups=26(postgres).
Mon Mar 18 14:47:57 UTC 2019 INFO: Setting LOG_MIN_DURATION_STATEMENT to 60000.
Mon Mar 18 14:47:57 UTC 2019 INFO: Setting LOG_STATEMENT to none.
Mon Mar 18 14:47:57 UTC 2019 INFO: Working on replica..
Mon Mar 18 14:47:57 UTC 2019 INFO: Initializing the replica.
Mon Mar 18 14:47:57 UTC 2019 INFO: Waiting to allow the primary database time to successfully start before performing the initial backup..
tre:5432 - no response
tre:5432 - no response
tre:5432 - no response
tre:5432 - no response
tre:5432 - no response
tre:5432 - no response
tre:5432 - no response

Please tell us about your environment:

  • Operating System: MacOS
  • Where is this running ( Local, Cloud Provider): on GCP
  • Storage being used (NFS, Hostpath, Gluster, etc): GCE
  • Container Image Tag: centos7-3.5.1
  • PostgreSQL Version: centos7-11.2-2.3.1
  • Platform (Docker, Kubernetes, OpenShift): K8S
  • Platform Version: k8s 1.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions