Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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.
DescriptionAlfredo Moralejo
2018-03-21 18:30:02 UTC
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.
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
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.