Bug 1004515

Summary: Python 2.7 default application template has references to python-2.6
Product: OpenShift Online Reporter: Mrunal Patel <mpatel>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, chunchen, mfisher
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: 2013-09-19 16:49:12 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 Mrunal Patel 2013-09-04 19:53:07 UTC
Description of problem:
[mrunal@localhost py1]$ head wsgi/application 
#!/usr/bin/python
import os

virtenv = os.environ['OPENSHIFT_PYTHON_DIR'] + '/virtenv/'
os.environ['PYTHON_EGG_CACHE'] = os.path.join(virtenv, 'lib/python2.6/site-packages')
virtualenv = os.path.join(virtenv, 'bin/activate_this.py')
try:
    execfile(virtualenv, dict(__file__=virtualenv))
except IOError:
    pass
[mrunal@localhost py1]$ 


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


How reproducible:
Always


Steps to Reproduce:
1. Create a python 2.7 application.
2. See the contents of wsgi/application file.


Actual results:
os.environ['PYTHON_EGG_CACHE'] = os.path.join(virtenv, 'lib/python2.6/site-packages')


Expected results:
There should be no reference to python-2.6

Comment 1 Rob Millner 2013-09-05 19:21:26 UTC
Pull request:
https://github.com/openshift/origin-server/pull/3555

Comment 2 openshift-github-bot 2013-09-05 21:15:41 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/03f2b6d89689da976045d94b3740022abf83f2ae
Bug 1004515 - PYTHON_EGG_CACHE is passed in from the environment and does not need to hardcode.

Comment 3 chunchen 2013-09-06 03:26:50 UTC
The issue is reproduced on devenv_3749.

Comment 4 chunchen 2013-09-06 07:49:25 UTC
Checked this issue on devenv_3752 again, it's fixed,so change the stauts to ON_QA -> VERIFIED.