Bug 869970

Summary: Can't find env OPENSHIFT_MONGODB_DB_SOCKET in app that embed with mongodb-2.2
Product: OKD Reporter: Rony Gong 🔥 <qgong>
Component: ContainersAssignee: Paul Morie <pmorie>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: mpatel, pmorie, 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: 2012-11-06 18:50:24 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 Rony Gong 🔥 2012-10-25 09:14:25 UTC
Description of problem:
Can't find env OPENSHIFT_MONGODB_DB_SOCKET for app that embed with mongodb-2.2,
and other db_socket env could be found.

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

How reproducible:
always

Steps to Reproduce:
1.Create non-scalable app and embed mongodb 
2.ssh into this app, then type: env|grep OPENSHIFT_MONGODB_DB_SOCKET
3.Create scalable app and embed mongodb 
4.ssh into the mongodb gear, then type: env|grep OPENSHIFT_MONGODB_DB_SOCKET
  
Actual results:
Can't find the env OPENSHIFT_MONGODB_DB_SOCKET
in app gear for non_calable app
Can't find the env OPENSHIFT_MONGODB_DB_SOCKET
in db gear for scalable app


Expected results:
Could find the env OPENSHIFT_MONGODB_DB_SOCKET

Additional info:

Comment 1 Paul Morie 2012-11-05 16:50:51 UTC
Reproducing in devenv now.

Comment 2 Paul Morie 2012-11-05 17:07:02 UTC
The value you're looking for is OPENSHIFT_MONGODB_DB_PORT, which is present in the env.

Comment 3 Mrunal Patel 2012-11-05 18:29:55 UTC
We don't have OPENSHIFT_MONGODB_DB_SOCKET and that is expected behavior.

Comment 4 Rony Gong 🔥 2012-11-06 02:30:23 UTC
Verified on devenv_2430, no exist of OPENSHIFT_MONGODB_DB_SOCKET  any more
[qphp-qgong1.dev.rhcloud.com ~]\> env|grep MONGO
OPENSHIFT_MONGODB_DB_USERNAME=admin
OPENSHIFT_MONGODB_DB_LOG_DIR=/var/lib/openshift/6d0e708d77514b8497e6ec02c1de9c04//mongodb-2.2/log
OPENSHIFT_MONGODB_DB_PASSWORD=Tv-vqY88vAvW
OPENSHIFT_MONGODB_DB_HOST=127.0.251.129
OPENSHIFT_MONGODB_DB_PORT=27017
OPENSHIFT_MONGODB_DB_URL=mongodb://admin:Tv-vqY88vAvW.251.129:27017/