Bug 1615907 - fabric should require python-crypto
Summary: fabric should require python-crypto
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.0.4
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: 3.0.5
: 3.0.x
Assignee: Milan Kubík
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-14 14:02 UTC by Radek Bíba
Modified: 2018-11-06 07:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-05 17:04:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2649 0 None None None 2018-09-05 17:04:51 UTC

Description Radek Bíba 2018-08-14 14:02:26 UTC
Description of problem:
rhui-manager fails to run on RHEL 7.6 Beta 1 after installing and executing rhui-installer:

[root@rhua ~]# rhui-manager 
Traceback (most recent call last):
  File "/bin/rhui-manager", line 9, in <module>
    load_entry_point('rhui-tools==3.0.4', 'console_scripts', 'rhui-manager')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/site-packages/rhui/tools/launcher.py", line 33, in <module>
    from rhui.tools.shell import RhuiShell
  File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 24, in <module>
    from rhui.tools.screens import (
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/home.py", line 15, in <module>
    from rhui.tools.screens import (
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/cds.py", line 2, in <module>
    from rhui.tools.screens.instances import InstanceScreen
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/instances.py", line 12, in <module>
    from fabric.api import sudo, local, put, settings, get, hide, run
  File "/usr/lib/python2.7/site-packages/fabric/api.py", line 11, in <module>
    from fabric.decorators import (hosts, roles, runs_once, with_settings, task,
  File "/usr/lib/python2.7/site-packages/fabric/decorators.py", line 9, in <module>
    from Crypto import Random
ImportError: No module named Crypto

The thing is, fabric (from RHUI 3) requires python-paramiko >= 1.10.0, and python-paramiko in RHUI 3, version 1.15.1-1.el7ui, requires python-crypto >= 2.1. So, previously, fabric-1.8.1-1.el7ui + python-paramiko-1.15.1-1.el7ui + python-crypto-2.6.1-2.el7ui were installed and everything worked. Now, python-paramiko-2.1.1-5.el7 from Beta 1 wins, but it doesn't require python-crypto, so this package doesn't get installed and fabric is unhappy; meaning, rhui-manager crashes.

fabric must be rebuilt with a direct dependency on python-crypto. And this must be done before 7.6 is released.

Comment 5 errata-xmlrpc 2018-09-05 17:04:27 UTC
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/RHBA-2018:2649


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