Bug 1034645

Summary: [fork]Environment variable OPENSHIFT_ZEND_PATH_ELEMENT is missing for zend-6.1
Product: OpenShift Online Reporter: Qiushui Zhang <qiuzhang>
Component: ImageAssignee: Vojtech Vitek <vvitek>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: hripps, vvitek, xtian
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: 2014-01-30 00:51:03 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:

Description Qiushui Zhang 2013-11-26 09:34:35 UTC
Description of problem:
On a zend-6.1 application, checking the environment variables.
[zd1-qiuzhang.dev.rhcloud.com 5294422ccdfdbc6465000028]\> env |grep -i path
LD_LIBRARY_PATH=/var/lib/openshift/5294422ccdfdbc6465000028/zend/php-5.4/lib:/opt/rh/ruby193/root/usr/lib64
PATH=:/bin:/usr/bin:/usr/sbin

No zend cartridge path like zend-5.6:
zend56-walter.dev.rhcloud.com 5294641ff27d2c2e77000007]\> env |grep -i path
OPENSHIFT_ZEND_PATH_ELEMENT=/usr/local/zend/bin
PATH=/usr/local/zend/bin:/usr/local/zend/bin::/bin:/usr/bin:/usr/sbin

Version-Release number of selected component (if applicable):
vvitek-Zend-QE-preserve

How reproducible:
always

Steps to Reproduce:
1. Create an zend-6.1 application
rhc app create zd1 zend-6.1
2. SSH to the gear and check the env variables
env |grep -i path
3.

Actual results:
Env variable OPENSHIFT_ZEND_PATH_ELEMENT is missing for zend-6.1
[zd1-qiuzhang.dev.rhcloud.com 5294422ccdfdbc6465000028]\> env |grep -i path
LD_LIBRARY_PATH=/var/lib/openshift/5294422ccdfdbc6465000028/zend/php-5.4/lib:/opt/rh/ruby193/root/usr/lib64
PATH=:/bin:/usr/bin:/usr/sbin

Expected results:
Cartridge path like zend-5.6 should be added.
zend56-walter.dev.rhcloud.com 5294641ff27d2c2e77000007]\> env |grep -i path
OPENSHIFT_ZEND_PATH_ELEMENT=/usr/local/zend/bin
PATH=/usr/local/zend/bin:/usr/local/zend/bin::/bin:/usr/bin:/usr/sbin

Additional info:

Comment 1 Vojtech Vitek 2013-11-26 14:09:53 UTC
Already addressed in https://github.com/openshift/li/pull/2187.

Comment 2 Qiushui Zhang 2013-11-27 02:25:03 UTC
Tested on devenv_4076.

[zd1-qiuzhang.dev.rhcloud.com 5295574115d5b55e1d000007]\> env |grep -i path
OPENSHIFT_ZEND_PATH_ELEMENT=/var/lib/openshift/5295574115d5b55e1d000007/zend/php-5.4/bin
LD_LIBRARY_PATH=/var/lib/openshift/5295574115d5b55e1d000007/zend/php-5.4/lib
PATH=/var/lib/openshift/5295574115d5b55e1d000007/zend/php-5.4/bin:/var/lib/openshift/5295574115d5b55e1d000007/zend/php-5.4/bin::/bin:/usr/bin:/usr/sbin

Mark the bug as verified.