Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/orders db init failure #185

Conversation

jeevanjoseph
Copy link
Member

This is a bug for the orders DB initialization failing when manually setting up ATP.

The root cause of the issue is that #169 changed the way TNS configuration was done. The goal was to remove the dependency on the instant client version from everywhere except application build (build.gradle/pom.xml). However the change did not account for the fact that the the DB init job uses the instant client, which still expects the old configuration.

This PR effectively creates a mount for the same wallet secret for the DB tools container, but mounted on the path that the location it expects. Alternatively it should be sufficient to set the TNS_ADMIN env var for the dbtools container, however, it does not seem to respect an alternate TNS_ADMIN

{{- define "orders.mount.init.wallet" -}}
# for init container
- name: wallet
mountPath: /usr/lib/oracle/19.3/client64/lib/network/admin/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a workaround. We should review to fix the issue #138

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - absolutely.

@jeevanjoseph jeevanjoseph merged commit 49327cb into oracle-quickstart:master Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants