Bug 1045434

Summary: Some environment variable paths in Python 2.7/Postgresql-9.2 app contain double slashes
Product: OpenShift Online Reporter: abbottc
Component: ImageAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: wsun, yadu
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:53:55 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 abbottc 2013-12-20 12:16:01 UTC
Description of problem:
After creating a new Python-2.7 app with Postgresql-9.2, all of the environment variable paths which contain the 'python' or 'postgresql' folders contain a double slash after those particular folders instead of a single slash as a folder separator.

Examples:

PYTHON_EGG_CACHE=/var/lib/openshift/<app_id>/python//virtenv/.python-eggs/
OPENSHIFT_POSTGRESQL_DB_SOCKET=/var/lib/openshift/<app_id>/postgresql//socket/

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

How reproducible:
Always

Steps to Reproduce:
1. rhc app-create test python-2.7
2. rhc cartridge add -c postgresql-9.2 -a test
3. rhc app ssh test
4. env | grep PYTHON_EGG_CACHE
5. env | grep OPENSHIFT_POSTGRESQL_DB_SOCKET

Actual results:
PYTHON_EGG_CACHE=/var/lib/openshift/<app_id>/python//virtenv/.python-eggs/
OPENSHIFT_POSTGRESQL_DB_SOCKET=/var/lib/openshift/<app_id>/postgresql//socket/

Expected results:
PYTHON_EGG_CACHE=/var/lib/openshift/<app_id>/python/virtenv/.python-eggs/
OPENSHIFT_POSTGRESQL_DB_SOCKET=/var/lib/openshift/<app_id>/postgresql/socket/

Additional info:

Comment 1 Jakub Hadvig 2014-01-08 11:34:35 UTC
Hi abbottc,
thank you for this report.
I would like to ask you if you have any personal regards to this issue, because I think thats its just a cosmetic issue.

Thanks 

Jakub

Comment 2 Jakub Hadvig 2014-01-13 08:56:43 UTC
Issue fixed.

PR: https://github.com/openshift/origin-server/pull/4448

Comment 3 Yan Du 2014-01-14 03:04:04 UTC
Test on INT(denvenv_4217)

Issue have been fixed. move to verified.

[py27-111.int.rhcloud.com 52d4a5b203ef6469270004e7]\> env | grep PYTHON_EGG_CACHE
PYTHON_EGG_CACHE=/var/lib/openshift/52d4a5b203ef6469270004e7/python/virtenv/.python-eggs/

[py27-111.int.rhcloud.com 52d4a5b203ef6469270004e7]\> env | grep OPENSHIFT_POSTGRESQL_DB_SOCKET
OPENSHIFT_POSTGRESQL_DB_SOCKET=/var/lib/openshift/52d4a5b203ef6469270004e7/postgresql/socket/