Bug 969930 - The PHPRC environment variable in rockmongo is not created as raw value format
Summary: The PHPRC environment variable in rockmongo is not created as raw value format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-03 05:52 UTC by Jianwei Hou
Modified: 2015-05-14 23:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:15:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jianwei Hou 2013-06-03 05:52:47 UTC
Description of problem:
Create an application with mongodb-2.2 and rockmongo-1.1 added. The content of "PHPRC" created under ~/rockmongo/env is still using the "export key=value" format. Maybe it should only store the raw value to be consistent with the other environment variables.

Version-Release number of selected component (if applicable):
On STG(devenv-stage_356), devenv-stage_356

How reproducible:
Always

Steps to Reproduce:
1. Create an app with mongodb-2.2 and rockmongo-1.1
rhc app create php1 php-5.3 mongodb-2.2 rockmongo-1.1
2. SSH into app
rhc app-ssh php1
3. Check the value for PHPRC in rhcsh

Actual results:
The PHPRC still exports the environment variable the old fashioned way. However, the value can be correctly sourced.
[php1-jhou6.dev.rhcloud.com env]\> pwd
/var/lib/openshift/716232416361372832497664/rockmongo/env
[php1-jhou6.dev.rhcloud.com env]\> cat PHPRC 
export PHPRC="/var/lib/openshift/716232416361372832497664/rockmongo/etc/conf/php.ini"
[php1-jhou6.dev.rhcloud.com env]\> echo $PHPRC
/var/lib/openshift/716232416361372832497664/php//configuration/etc/php.ini

Expected results:
PHPRC should store a raw value
eg: 
[php1-jhou6.dev.rhcloud.com env]\> cat PHPRC 
/var/lib/openshift/716232416361372832497664/rockmongo/etc/conf/php.ini

Additional info:

Comment 1 Paul Morie 2013-06-03 14:25:32 UTC
PR submitted to master

Comment 3 Paul Morie 2013-06-03 18:05:48 UTC
PRs merged to master and stage.

Comment 4 Jianwei Hou 2013-06-04 01:50:54 UTC
Verified on STG
Add rockmongo cartridge to an application, check the value of PHPRC, now it is raw value format

[as1-sprint25.stg.rhcloud.com env]\> echo $PHPRC
/var/lib/openshift/5153f657dbd93c5bcc0000c7/rockmongo/etc/conf/php.ini
[as1-sprint25.stg.rhcloud.com env]\> cat PHPRC 
/var/lib/openshift/5153f657dbd93c5bcc0000c7/rockmongo/etc/conf/php.ini


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