DIGIT-2.9LTS-URBAN - birth-death-services db-migration not working in the default setup #821
subhashchandrab
started this conversation in
Local Governance
Replies: 1 comment 2 replies
-
@subhashchandrab Please apply this fix and and then redeploy the services which are failing due to flyway issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Deployed the DIGIT Platform with helmfile approach(as per the doc https://core.digit.org/guides/installation-guide/digit-deployment/full-deployment-beta) and followed all the bootstrap steps. Used the postgresql from kubernetes(by enabling the built-in helm chart) and the default database postgres. In this setup, I noticed that the db-migration container logic is not working properly. If we inspect the logs of the db-migration container of birth-death-services, it shows only the below.
k logs birth-death-services-8f49b84df-566jr -c db-migration -n egov
After noticing the logic in https://github.com/egovernments/URBAN/blob/urban_v2.9/birth-death-services/src/main/resources/db/migrate.sh, I realized that without passing the environment variable SCHEMA_NAME, the db migration is not executing in the default setup.
In the k8s hosted postgres, the default database name is posgtgres and below is the configuration in env.yaml file
Noticed the similar behavior in other services like hrms as well.
The helm charts have the below condition. Just wanted to understand whether the default helm chart values are meant to work with k8s hosted postgres automatically or do we need to update the values.
Are we expected to create a schema upfront and pass the name as SCHEMA_NAME for the db-migration init container to successfully execute?
Beta Was this translation helpful? Give feedback.
All reactions