Bug 1176969

Summary: Users cannot create a PHP application without internet access due to pear channel-update
Product: OpenShift Online Reporter: Luke Meyer <lmeyer>
Component: ImageAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jdetiber, jialiu, jokerman, knakayam, libra-bugs, libra-onpremise-devel, lmeyer, mmccomas, wzheng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1176491 Environment:
Last Closed: 2015-03-05 19:56: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:
Bug Depends On:    
Bug Blocks: 1176491    

Description Luke Meyer 2014-12-23 16:34:39 UTC
+++ This bug was initially created as a clone of Bug #1176491 +++

Description of problem:

With bug 1094007, the line:

  php_context "pear -c ${OPENSHIFT_HOMEDIR}.pearrc channel-update pear.php.net"

is inserted to cartridges/openshift-origin-cartridge-php/bin/install. 

This means users have to connet internet. OSE user don't want to access internet.

Additional info:

- Origin commit 
 https://github.com/openshift/origin-server/pull/5609

- bz1094007
 https://bugzilla.redhat.com/show_bug.cgi?id=1094007

--- Additional comment from Luke Meyer on 2014-12-23 11:31:26 EST ---

For most cartridges, it will be difficult to accomplish much without access to the internet for downloading dependencies.

Nonetheless, it does seem reasonable that this particular failure to reach the internet should not block app creation. The change for bug 1094007 was made in order to resolve a warning message; I expect we could just return to showing warning messages if the channel-update didn't work out.

Comment 1 Luke Meyer 2015-01-05 13:54:10 UTC
https://github.com/openshift/origin-server/pull/6030 should address this.

Comment 2 Wenjing Zheng 2015-01-06 08:42:26 UTC
Verified on devenv_5376.
Mannually change the pear.php.net to an invalid one in online server and delete the fix "|| true", php cannot be created with errors like "Cannot open pear.php.net123"; But if add the fix "|| true", app can be created successfully.