View Issue Details

IDProjectCategoryView StatusLast Update
0000759pgpoolAdminBugpublic2022-06-30 14:44
Reporterarihant.joshi@infoworks.io Assigned To 
PrioritynormalSeverityblockReproducibilitysometimes
Status closedResolutionopen 
Product Version4.2.0 
Summary0000759: pcp_attach_node gives a successful output, however fails to actually attach
DescriptionPGPool Version-4.2.6, Postgres Version-13.7
This is a fully HA Kubernetes Environment - 2 postgres and 2 pgpool pods.

After letting this environment run for a while, we notice the failover in the postgres standby.
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ pcp_node_info -h localhost -p 9898 -U admin -n 1
Password:
pgpool-postgresql-db-1.postgresql-db-headless.pgpool.svc.cluster.local 5432 3 0.500000 down standby 31227816 2022-06-28 07:24:52

To re-attach
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ pcp_attach_node -h localhost -p 9898 -U admin -n 1
Password:
pcp_attach_node -- Command Successful

However, its still detached
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ pcp_node_info -h localhost -p 9898 -U admin -n 1
Password:
pgpool-postgresql-db-1.postgresql-db-headless.pgpool.svc.cluster.local 5432 3 0.500000 down standby 31250560 2022-06-28 07:26:10

This is a blocker issue for us adapting the HA setup for postgres.

Additional Note:
The given pgpool pod is the leader-


The postgres pods are reachable using the given host values-
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ pcp_watchdog_info -h localhost -p 9898 -U admin
Password:
2 YES pgpool-postgresql-ha-pgpool-0.postgresql.pgpool.svc.cluster.local:5432 Linux pgpool-postgresql-ha-pgpool-0 pgpool-postgresql-ha-pgpool-0.postgresql.pgpool.svc.cluster.local

pgpool-postgresql-ha-pgpool-0.postgresql.pgpool.svc.cluster.local:5432 Linux pgpool-postgresql-ha-pgpool-0 pgpool-postgresql-ha-pgpool-0.postgresql.pgpool.svc.cluster.local 5432 9000 4 LEADER
pgpool-postgresql-ha-pgpool-1.postgresql.pgpool.svc.cluster.local:5432 Linux pgpool-postgresql-ha-pgpool-1 pgpool-postgresql-ha-pgpool-1.postgresql.pgpool.svc.cluster.local 5432 9000 7 STANDBY

Also, both pods are reachable using the given DNS
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ curl http://pgpool-postgresql-db-1.postgresql-db-headless.pgpool.svc.cluster.local:5432
curl: (52) Empty reply from server
I have no name!@pgpool-postgresql-ha-pgpool-0:/$ curl http://pgpool-postgresql-db-0.postgresql-db-headless.pgpool.svc.cluster.local:5432
curl: (52) Empty reply from server
Steps To ReproduceThis issue is seen intermittently.
TagsNo tags attached.

Activities

pengbo

2022-06-30 11:55

developer   ~0004087

Because it isn't a pgpoolAdmin issue, could you close this issue and open a new issue with "Project:Pgpool-II"?
When you open a issue, please select project "Pgpool-II".

arihant.joshi@infoworks.io

2022-06-30 14:25

reporter   ~0004088

@pengbo I wish I could, but I'm not seeing any buttons/menus that would let me close/delete/archive this issue. I think on mantisBT you can disable "close" issue even from the reporter. Can an admin close this?
https://mantisbt.org/forums/viewtopic.php?t=23955

pengbo

2022-06-30 14:44

developer   ~0004089

Sure.
Close issue.

Issue History

Date Modified Username Field Change
2022-06-28 16:31 arihant.joshi@infoworks.io New Issue
2022-06-30 11:55 pengbo Note Added: 0004087
2022-06-30 14:25 arihant.joshi@infoworks.io Note Added: 0004088
2022-06-30 14:44 pengbo Status new => closed
2022-06-30 14:44 pengbo Note Added: 0004089