Bug 1032901 - Packages installed via Jenkins builds fail to take effect for Perl apps
Summary: Packages installed via Jenkins builds fail to take effect for Perl apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 08:27 UTC by Zhe Wang
Modified: 2015-05-15 00:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:30:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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