| Summary: | pip permission error prevents installing on python-2.7 cartridge | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rory Thrasher <rthrashe> |
| Component: | ImageStreams | Assignee: | Vu Dinh <vdinh> |
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.2.0 | CC: | aos-bugs, gpei, haggardii, haowang, jialiu, jlucky, jokerman, mmccomas, vdinh, xiuwang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openshift-origin-cartridge-python-1.34.4.1-1.el6op | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
The new version of PIP (7.1.0) no longer accepted insecure (http) mirror. Also, pip attempted to create and then write files into .cache directory which users don't have permission to create post-installation.
Consequence:
Python dependencies failed to be installed.
Fix:
The default PyPi mirror URL is updated to use secure connection (https). The directory .cache is created during installation in advance so it can be used later by PIP.
Result:
Python dependencies can be fetched from PyPi mirror and installed properly.
|
Story Points: | --- |
| Clone Of: | 1361755 | Environment: | |
| Last Closed: | 2017-01-04 20:23:25 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: | |
| Bug Depends On: | 1361755 | ||
| Bug Blocks: | |||
|
Description
Rory Thrasher
2016-12-02 21:56:18 UTC
Verify this bug with puddle 2.2/2016-12-12.1 1. rhc app-create py27 python-2.7 2. cd py27 3. echo click==6.6 > requirements.txt 4. git add . 5. git commit -a -m "click6.6" 6. git push [root@broker py27]# git push ... remote: Checking for pip dependency listed in requirements.txt file.. remote: You are using pip version 7.1.0, however version 9.0.1 is available. remote: You should consider upgrading via the 'pip install --upgrade pip' command. remote: Collecting click==6.6 (from -r /var/lib/openshift/5850b88382611d5be4000017/app-root/runtime/repo/requirements.txt (line 1)) remote: Downloading click-6.6-py2.py3-none-any.whl (71kB) remote: Installing collected packages: click remote: Successfully installed click-6.6 ... 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-2017-0017.html |