postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

pgpool password doesnt work

Open k1ng440 opened this issue 8 years ago • 5 comments

I'm submitting a ...

  • [x] bug report

Do you want to request a feature or report a bug? report a bug

What is the current behavior? pgpool users are not being created on cluster creation.

If the current behavior is a bug, please provide the steps to reproduce: pgo create cluster test --pgpool

cluster : ticker psql -p 5432 -h 10.11.252.55 -U postgres postgres is Working psql -p 5432 -h 10.11.252.55 -U primaryuser postgres is Working psql -p 5432 -h 10.11.252.55 -U testuser userdb is Working psql -p 5432 -h 10.11.243.157 -U postgres postgres is NOT working psql -p 5432 -h 10.11.243.157 -U primaryuser postgres is NOT working psql -p 5432 -h 10.11.243.157 -U testuser userdb is NOT working

What is the expected behavior? pgpool should be working

What is the motivation or use case for changing the behavior?

Other information (e.g. detailed explanation, related issues, suggestions how to fix, etc)

Please tell us about your environment:

  • Operating System: Ubuntu
  • Container Image Tag: centos7-3.2.0
  • Operator Version: 3.2.0
  • PostgreSQL Version: 10
  • Platform (Docker, Kubernetes, OpenShift): Kubernetes
  • Platform Version: Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.7-gke.5", GitCommit:"9b635efce81582e1da13b35a7aa539c0ccb32987", GitTreeState:"clean", BuildDate:"2018-08-02T23:42:40Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}

k1ng440 avatar Sep 10 '18 23:09 k1ng440

Only the testuser is being configured with pgpool. I tested the creation of a cluster with pgpool and it was working for me for the testuser.

Steps I used to try and reproduce:

pgo create cluster pooltest --pgpool pgo show cluster pooltest

cluster : pooltest (centos7-10.5-2.1.0) deployment : pooltest deployment : pooltest-pgpool service : pooltest - ClusterIP (10.3.253.58) service : pooltest-pgpool - ClusterIP (10.3.250.191) labels : pgpool-secret= pgo-backrest=false pgo-version=3.2 crunchy-pgbadger=false crunchy-pgpool=true crunchy_collect=false name=pooltest pg-cluster=pooltest primary=true archive=false archive-timeout=60 pgo test pooltest

cluster : pooltest psql -p 5432 -h 10.3.253.58 -U postgres postgres is Working psql -p 5432 -h 10.3.253.58 -U primaryuser postgres is Working psql -p 5432 -h 10.3.253.58 -U testuser userdb is Working psql -p 5432 -h 10.3.250.191 -U postgres postgres is NOT working psql -p 5432 -h 10.3.250.191 -U primaryuser postgres is NOT working psql -p 5432 -h 10.3.250.191 -U testuser userdb is Working

My guess is that this is related to your issue 355, and the secrets were never cleaned up properly since the cluster name "test" is the same. What type of storage are you using? Can you either try again with a cleaned up test cluster. Let me know what happens.

cahoonpwork avatar Sep 11 '18 13:09 cahoonpwork

Hello, Yes i have cleaned up and tested but same for some time and then it worked after redeploy. i know its strange but i did something to fix it but no idea what.

how do i add users to pgpool?

old version of pgpool used to have a password file that sits along pgpool.conf does not exist anymore

k1ng440 avatar Sep 12 '18 21:09 k1ng440

We have an issue for updating operator to handle this: https://github.com/CrunchyData/postgres-operator/issues/156

cahoonpwork avatar Sep 13 '18 14:09 cahoonpwork

Fixed in #156 , released in https://github.com/CrunchyData/postgres-operator/tree/3.3.0-rc3

KrzysztofWloch avatar Sep 25 '18 11:09 KrzysztofWloch

should be fixed with the 3.3.0 release.

jmccormick2001 avatar Oct 12 '18 22:10 jmccormick2001