Bug 1176969 - Users cannot create a PHP application without internet access due to pear channel-update
Summary: Users cannot create a PHP application without internet access due to pear cha...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1176491
TreeView+ depends on / blocked
 
Reported: 2014-12-23 16:34 UTC by Luke Meyer
Modified: 2019-03-22 07:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1176491
Environment:
Last Closed: 2015-03-05 19:56:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1094007 0 low CLOSED Show some warning when install dependency for php app 2021-02-22 00:41:40 UTC

Internal Links: 1094007

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.


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