Bug 1172055
Summary: | Can not install dependency by composer in php gear due to missing '$OPENSHIFT_PHP_DIR/usr/bin' in $OPENSHIFT_PHP_PATH_ELEMENT after upgrade from OSE 2.1->2.2 | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ma xiaoqiang <xiama> |
Component: | Cluster Version Operator | Assignee: | Brenton Leanhardt <bleanhar> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.2.0 | CC: | adellape, bleanhar, hripps, jokerman, libra-onpremise-devel, mmccomas, tiwillia, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-php-1.33.1.1-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
The openshift-origin-cartridge-php upgrade script previously did not properly upgrade existing cartridges to allow for Composer to be used. As a result, any cartridges with a version greater than 0.0.17 was not properly upgraded with Composer functionality; the Composer directory was not created, breaking composer functionality. This bug fix updates the upgrade script to perform Composer migration steps on any cartridge with a version less than that used in OpenShift Enterprise release 2.2.6 (0.0.26.1). As a result, PHP cartridges existing before Composer features were added are able to use Composer after an upgrade.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-21 19:11:57 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
Ma xiaoqiang
2014-12-09 10:12:29 UTC
Check on puddle [2.2.6/2015-05-11.1] 1. Create some php apps(php-5.4,php-5.3), update the env 2. Add use_composer marker , composer.json and replace the index.php file in repo # touch .openshift/markers/use_composer # cat composer.json { "require": { "pear-pear.php.net/Mail": "*", "pear-pear.php.net/xml_serializer": "*" }, "repositories": [ { "type": "pear", "url": "http://pear.php.net" } ] } 3. deploy the app remote: Installing dependencies (including require-dev) remote: - Installing pear-pear.php.net/mail (1.2.0) remote: Downloading remote: Writing lock file remote: Generating optimized autoload files remote: Preparing build for deployment Can download and install dependency. 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-1463.html |