| Summary: | python-urllib3 missing ssl_match_hostname dependancy | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Britt Houser <bhouser> |
| Component: | python-urllib3 | Assignee: | Mike Burns <mburns> |
| Status: | CLOSED ERRATA | QA Contact: | Shai Revivo <srevivo> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 (Liberty) | CC: | apevec, chricker, editucci, lhh, lruzicka, mburns, nlevinki, srevivo |
| Target Milestone: | async | Keywords: | Triaged, ZStream |
| Target Release: | 8.0 (Liberty) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-urllib3-1.10.4-8.el7ost | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-01 14:17:16 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: | |||
| Bug Blocks: | 1191185 | ||
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-0228.html |
Description of problem: The OSP8 version of python-urllib3 has a missing dependency in its RPM definition. The OSP7 version includes python-backports-ssl_match_hostname as a dependancy, but the OSP8 version does not. The results is a traceback when I try to import docker.client. Version-Release number of selected component (if applicable): python-urllib3-1.10.4-7.el7ost.noarch.rpm How reproducible: Start with a fresh install (no previous OSP7 packages installed). Install python-urllib3. Then in a python script, try to import docker.client. Steps to Reproduce: 1. yum install -y python-urllib3 2. python -c 'docker.client' Actual results: # python -c 'import docker.client' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/site-packages/docker/__init__.py", line 20, in <module> from .client import Client, AutoVersionClient # flake8: noqa File "/usr/lib/python2.7/site-packages/docker/client.py", line 23, in <module> from . import clientbase File "/usr/lib/python2.7/site-packages/docker/clientbase.py", line 4, in <module> import requests File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module> from . import utils File "/usr/lib/python2.7/site-packages/requests/utils.py", line 26, in <module> from .compat import parse_http_list as _parse_list_header File "/usr/lib/python2.7/site-packages/requests/compat.py", line 7, in <module> from .packages import chardet File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 3, in <module> from . import urllib3 File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/__init__.py", line 10, in <module> from .connectionpool import ( File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 29, in <module> from .packages.ssl_match_hostname import CertificateError File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/packages/__init__.py", line 3, in <module> from . import ssl_match_hostname ImportError: cannot import name ssl_match_hostname Expected results: # python -c 'import docker.client' # Additional info: Dependency list from OSP7 and OSP8 versions: # rpm -qRp python-urllib3-1.10.4-1.20150503gita91975b.el7ost.noarch.rpm ca-certificates python(abi) = 2.7 python-backports-ssl_match_hostname python-six rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 # rpm -qRp python-urllib3-1.10.4-7.el7ost.noarch.rpm ca-certificates python(abi) = 2.7 python-six rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1