Bug 1004515 - Python 2.7 default application template has references to python-2.6
Summary: Python 2.7 default application template has references to python-2.6
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-04 19:53 UTC by Mrunal Patel
Modified: 2015-05-14 23:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 16:49:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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