Bug 1011129 - The OPENSHIFT_MYSQL_* vars are not available in PHP apps
Summary: The OPENSHIFT_MYSQL_* vars are not available in PHP apps
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-23 16:20 UTC by Michal Fojtik
Modified: 2015-05-14 23:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 16:25:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michal Fojtik 2013-09-23 16:20:53 UTC
Description of problem:

The OPENSHIFT_MYSQL* var are not available in PHP applications, because the passenv is not being updated when the mysql cartridge is added to the gear. This would most probably happen for other Apache based cartridges.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. rhc app create php01 php-5.3
2. rhc add-cartridge mysql --app php01
3. rhc ssh --app php01
4. cat php/configuration/etc/conf.d/passenv.conf  | grep MYSQL

Actual results:

There are no OPENSHIFT_MYSQL_* vars.

Expected results:

OPENSHIFT_MYSQL_* variables should be available for the PHP applications.

Additional info:

Comment 1 Jhon Honce 2013-09-23 16:25:10 UTC
You need to restart the application between step #2 and #3.


Note You need to log in before you can comment on or make changes to this bug.