Bug 810366

Summary: env var for python cartridge
Product: OKD Reporter: David Blado <dblado>
Component: PodAssignee: Ram Ranganathan <ramr>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, mfisher, mpatel
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-13 18:30:35 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 David Blado 2012-04-05 18:40:17 UTC
Description of problem:
after activating the virtual environment, I attempted to run the django syncdb script and received:

[Errno 13] Permission denied: '/var/lib/stickshift/e1ff4f1c78894db7833479734fd33bcc/.python-eggs'


The fix is to

export PYTHON_EGG_CACHE=/var/lib/stickshift/e1ff4f1c78894db7833479734fd33bcc/tinsley/virtenv/lib/python2.6/site-packages/


Would it be possible to have PYTHON_EGG_CACHE=$OPENSHIFT_GEAR_DIR/virtenv/lib/python2.6/site-packages by default for python apps?

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ram Ranganathan 2012-04-11 18:35:03 UTC
Fixed with git commits 9f102353ec5c8d74e8af8512e0f9fbd9d7a5c448 and 3fe92d29562bb7dea1d2e04060d2909ccb5c0043.

The PYTHON_EGG_CACHE variable is now set to the app's .python-eggs directory.
($OPENSHIFT_GEAR_DIR/.python-eggs/).

Comment 2 Meng Bo 2012-04-12 07:53:43 UTC
checked on devenv-stage_166 with cartridge-python-3.2-0.89.5-1.git.0.1053381.el6_2.noarch,
var PYTHON_EGG_CACHE has value "$OPENSHIFT_GEAR_DIR/.python-eggs/"