Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1559133 - Missing requirements in python-paramiko
Missing requirements in python-paramiko
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-paramiko (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Pavel Cahyna
Leos Pol
: Extras
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-21 14:30 EDT by Alfredo Moralejo
Modified: 2018-03-26 10:46 EDT (History)
6 users (show)

See Also:
Fixed In Version: python-paramiko-2.1.1-4.el7
Doc Type: Bug Fix
Doc Text:
python-paramiko has been using the python2-pyasn1 package, but did not depend on it. With new versions of python2-cryptography, python2-pyasn1 was not getting installed and this caused python-paramiko to malfunction. This bug was fixed by making python-paramiko depend on python2-pyasn1 explicitly.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-26 10:45:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0591 None None None 2018-03-26 10:46 EDT

  None (edit)
Description Alfredo Moralejo 2018-03-21 14:30:02 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.
Comment 5 Leos Pol 2018-03-22 12:27:33 EDT
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
Comment 8 errata-xmlrpc 2018-03-26 10:45:39 EDT
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

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