Bug 1032901

Summary: Packages installed via Jenkins builds fail to take effect for Perl apps
Product: OpenShift Online Reporter: Zhe Wang <zhewang>
Component: ImageAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfojtik, xtian
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-24 03: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:

Description Zhe Wang 2013-11-21 08:27:49 UTC
Description of problem:
Given a Perl-5.10 app with a Jenkins-client added, when trying to install a package to this app, the package fails to take effect with Jenkins build even though no error is reported during the installation. Moreover, a page referencing this package shows 500 error when accessing it. On the other hand, there is no such problem without Jenkins builds.

Version-Release number of selected component (if applicable):
devenv_4057
INT(devenv_4052)
devenv-stage_582

How reproducible:
always

Steps to Reproduce:
1. create a Perl-5.10 app with a Jenkins-client added
rhc app create prl perl-5.10 --enable-jenkins

2. add a package to deplist.txt, for example, 
echo "Plack" > deplist.txt

3. create a new page with the following code under $APP_REPO/perl/:

<--------test.pl-------->
use Plack;

print "Succeed to install Plack!"

<----------------------->

4. push the change and trigger a Jenkins build

5. access the $APP_DNS/test.pl

6. create another Perl-5.10 app WITHOUT adding a Jenkins-client

7. repeat step 2 ~ 5

Actual results:
In Step 5, the test.pl page returns "Internal Server Error", while the page returns the expected string without Jenkins build.

Expected results:
The Perl package should take effect after a Jenkins build.

Additional info:

Comment 1 Zhe Wang 2013-11-21 09:19:00 UTC
Further debugging:

The bug only happens when installing a non-system-supported package, and it goes away when trying to install a system-supported one, like YAML.

Comment 2 Michal Fojtik 2013-11-21 10:18:21 UTC
The problem seems to be that Jenkins install all dependencies to OPENSHIFT_DEPENDENCY_DIR but the PERL5LIB is not set to look into this directory...

Comment 3 Michal Fojtik 2013-11-21 16:52:47 UTC
Pull request:

https://github.com/openshift/origin-server/pull/4219

Comment 4 openshift-github-bot 2013-11-22 14:04:38 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/a873404e93304f46a21f5a042d6d87b7044be61a
Bug 1032901 - Removed perl5lib folder from GIT and added to dependency_dirs

Comment 5 Zhe Wang 2013-11-25 03:04:54 UTC
Verified in devenv_4067.