Bug 1071807

Summary: Failed to add postgresql-9.2 or Jenkins-clients-1 to zend-6.1.
Product: OpenShift Online Reporter: Wenjing Zheng <wzheng>
Component: ImageAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: dmcphers, vvitek, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-09 15:19:48 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 Wenjing Zheng 2014-03-03 08:27:24 UTC
Description of problem:
a. Cannot add cartridge postgresql-9.2 to zend-6.1 with errors like below:
Failed to execute: 'control start' for /var/lib/openshift/53141c8e5599cdc7c7000045/postgresql
pg_ctl: symbol lookup error: /lib64/libldap_r-2.4.so.2: undefined symbol: ber_sockbuf_io_udp
b. Error message when add Jenkins-client-1 to zend-6.1:
Could not add job 'zend61-build' in Jenkins server:
   create_job status: 000
You'll need to correct this error before attempting to embed the Jenkins client again.
c. Below output returns if execute get_gear_ld_library_path:
/var/lib/openshift/53141c8e5599cdc7c7000045/zend/php-5.4/lib

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

How reproducible:
always

Steps:
1. Create a zend-6.1 app;
2. Add postgresql-9.2 or Jenkins-client-1 to the app

Actual result:
Please refer to the description

Expected result:
It should succeed.

Acctional info:
The issue is limited to zend-6.1 and postgresql-9.2/Jenkins-client-1, it succeeds with zend-6.1(postgresql-8.4), python-3.3(postgresql-9.2) and Jenkins-client-1 with PHP, Ruby or Python.

Comment 1 Michal Fojtik 2014-03-04 14:30:44 UTC
A PR that reverts the LD_LIBRARY_PATH_ELEMENT code from Zend until the bundled libraries are not removed/rebuilded:

https://github.com/openshift/li/pull/2439

Comment 2 Michal Fojtik 2014-03-04 14:52:16 UTC
Being merged now...

Comment 3 Wenjing Zheng 2014-03-05 01:59:00 UTC
Change back to ASSIGNED(devenv_4463):
Postgresql-9.2 and Jenkins-client-1 can be added to zend-6.1 successfully now; 

However, there is no LD path for zend after exetuting get_gear_ld_library_path(only below path returns):
/opt/rh/postgresql92/root/usr/lib64
Like for Python-2.7, below returns as expected:
/opt/rh/postgresql92/root/usr/lib64:/opt/rh/python27/root/usr/lib64

Comment 4 Wenjing Zheng 2014-03-05 08:47:44 UTC
Verified on devenv_4464:
Confirmed with Michal that there is no way how to fix the postgresql undefined symbol error, so it's correct when there is no zend ld path returns after executing get_gear_ld_library_path.