Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1176491 - Users cannot create a PHP application without internet access due to pear channel-update
Users cannot create a PHP application without internet access due to pear cha...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
2.2.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Luke Meyer
libra bugs
: Upstream
Depends On: 1176969
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-22 01:21 EST by Kenjiro Nakayama
Modified: 2015-02-12 08:09 EST (History)
9 users (show)

See Also:
Fixed In Version: openshift-origin-cartridge-php-1.31.0.1-1
Doc Type: Bug Fix
Doc Text:
Cause: The PHP cartridge attempts to update PHP Pear channels on application deployment. Consequence: Nodes that cannot reach PHP Pear channels would fail to deploy PHP applications. Fix: PHP Pear channel updates are no longer treated as critical errors blocking deployment. Result: Nodes that cannot reach PHP Pear channels now deploy PHP applications.
Story Points: ---
Clone Of:
: 1176969 (view as bug list)
Environment:
Last Closed: 2015-02-12 08:09:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0220 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.2.4 bug fix and enhancement update 2015-02-12 13:08:20 EST

  None (edit)
Description Kenjiro Nakayama 2014-12-22 01:21:26 EST
Description of problem:

With bz1094007, the line:

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

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

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


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

OSE 2.2 


Additional info:

- OSE commmit
 5b7ea7711dfd2490b60e30efb2d5652ffa45c762

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

- bz1094007
 https://bugzilla.redhat.com/show_bug.cgi?id=1094007
Comment 2 Luke Meyer 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 9 Gaoyun Pei 2015-01-26 01:56:53 EST
Verified this bug with openshift-origin-cartridge-php-1.31.0.1-1

Change pear.php.net to an invalid address in line 38 of /usr/libexec/openshift/cartridges/php/bin/install, and remove "|| true". 

Try to create a php app.
[root@broker ~]# rhc app create test2 php-5.4 -g medium
Application Options
-------------------
Domain:     123
Cartridges: php-5.4
...
config-set succeeded
Cannot open invalid.net
Unable to complete the requested operation due to: An invalid exit code (157) was returned from the server
node1.ose22-manual.com.cn.  This indicates an unexpected problem during the execution of your request.
Reference ID: 92ec332eef98c1acacf7472845f53042

Add "|| true" back to the file. 
php app could be created successfully.
Comment 11 errata-xmlrpc 2015-02-12 08:09:49 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0220.html

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