Red Hat Bugzilla – Bug 1559133
Missing requirements in python-paramiko
Last modified: 2018-03-26 10:46:06 EDT
Description of problem: When using python-paramiko to build openstack-sahara-tests in RDO, we find following error: Failed to import test module: sahara_tests.unit.scenario.test_base Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name __import__(name) File "sahara_tests/unit/scenario/test_base.py", line 30, in <module> from sahara_tests.scenario import base File "sahara_tests/scenario/base.py", line 29, in <module> from tempest.lib.common import ssh as connection File "/usr/lib/python2.7/site-packages/tempest/lib/common/ssh.py", line 30, in <module> import paramiko File "/usr/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in <module> from paramiko.transport import SecurityOptions, Transport File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 37, in <module> from paramiko.auth_handler import AuthHandler File "/usr/lib/python2.7/site-packages/paramiko/auth_handler.py", line 44, in <module> from paramiko.ssh_gss import GSSAuth File "/usr/lib/python2.7/site-packages/paramiko/ssh_gss.py", line 42, in <module> from pyasn1.type.univ import ObjectIdentifier ImportError: No module named pyasn1.type.univ Looking at code and spec file, it seems package is missing some requirements as python-pyasn1. Version-Release number of selected component (if applicable): python-paramiko-2.1.1-2.el7 How reproducible: always Additional info: Note that, with the version of python-cryptography-1.7.2-1.el7_4.1 depends on python-pyasn1 so, python-paramiko get it installed indirectly, but newer vrsions of cryptography removed that dependency so python-paramiko is broken and needs to explicitely depend on it.
rpm -qp --requires python-paramiko-2.1.1-4.el7.noarch.rpm python(abi) = 2.7 python-cryptography python2-pyasn1 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
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://access.redhat.com/errata/RHSA-2018:0591