Bug 1258033
Summary: | Allow the override of pre-defined function for database connections | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Eric Rich <erich> |
Component: | Containers | Assignee: | Abhishek Gupta <abhgupta> |
Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.2.0 | CC: | aos-bugs, erich, jialiu, jokerman, mmccomas, rthrashe, tiwillia |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-openshift-origin-node-1.38.7.1-1.el6op | Doc Type: | Enhancement |
Doc Text: |
Feature: Allow the provided database connection helper functions mysql(), psql(), and mongo() to be overwritten.
Reason: This change allows users to overwrite the helper functions to easily connect to external databases.
Result: Users can now define mysql(), psql(), and mongo() functions in their $OPENSHIFT_DATA_DIR/.bash_profile, which can be used within an ssh connection to a gear.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-04 20:23:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eric Rich
2015-08-28 17:32:44 UTC
This relates to https://github.com/openshift/origin-server/pull/6227 Re-opening this bug since the fix finally merged. The fix originally was meant to be merged but appears to have hit an issue with our automation and took ~8 months to merge: https://github.com/openshift/origin-server/pull/6227 Verify this bug with puddle 2.2/2016-12-12.1 1. Create an app 2. Log into the gear and modify ~/app-root/data/.bash_profile file with the following contents: function mongo() { echo "mongo replaced!" } function mysql() { echo "mysql replaced!" } function psql() { echo "psql replaced!" } 3. Log into it again and run `mysql`, `mongo`, and `psql` [app3-yes.ose22-auto.com.cn 5850b7ad82611d5be4000001]\> mysql mysql replaced! [app3-yes.ose22-auto.com.cn 5850b7ad82611d5be4000001]\> mongo mongo replaced! [app3-yes.ose22-auto.com.cn 5850b7ad82611d5be4000001]\> psql psql replaced! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0017.html |