Bug 1045434 - Some environment variable paths in Python 2.7/Postgresql-9.2 app contain double slashes
Summary: Some environment variable paths in Python 2.7/Postgresql-9.2 app contain doub...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-20 12:16 UTC by abbottc
Modified: 2014-01-30 00:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:53:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

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/


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