Bug 1011129

Summary: The OPENSHIFT_MYSQL_* vars are not available in PHP apps
Product: OpenShift Online Reporter: Michal Fojtik <mfojtik>
Component: ContainersAssignee: Vojtech Vitek <vvitek>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: hripps
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-23 16:25:10 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 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.