When connecting Aries Askar (tested and reproducible on v0.3.2) to a Postgres Database cluster via a connection pooler such as PGPool-II or AWS RDS Proxy, bootstrapping/provisioning the Database fails.
We have replicated this issue in both PGPool-II and AWS RDS Proxy.
When connecting Aries Askar (tested and reproducible on
v0.3.2
) to a Postgres Database cluster via a connection pooler such as PGPool-II or AWS RDS Proxy, bootstrapping/provisioning the Database fails.We have replicated this issue in both PGPool-II and AWS RDS Proxy.
For testing and reproducing, I've been leveraging Kubernetes in Docker (Kind).
How to reproduce:
Step 1: Bring up a Postgres Cluster. Install
bitnami/postgresql-ha
:Validate expected DBs and Roles are present:
Step 2: Port-forward to Postgres (not PGPool)
Step 3: Run Askar Storage
postgres::db_import
test to validate everything is workingValidate expected
askar
Database now existsStep 4: Delete the
askar
DatabaseStep 5: Port-forward to PGPool
Step 6: Re-run the same
postgres::db_import
test and see failure:Ideal outcome
Ideally, Askar should be able to provision the DB via the PGPool/Proxy service.
Provision DB via PGPool/Proxy service:
Validate DB exists