Bug 1651716

Summary: python-eventlet is missing requires on dns, monotonic and six
Product: [Fedora] Fedora Reporter: Alfredo Moralejo <amoralej>
Component: python-eventletAssignee: Kevin Fenzi <kevin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, igor.raits, kevin, shamardin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-20 17:08:40 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:
Embargoed:

Description Alfredo Moralejo 2018-11-20 16:02:25 UTC
Description of problem:

After 0.24.0, eventlet is not longer bundling dns, monotonic and six and they have been added as dependencies in https://github.com/eventlet/eventlet/commit/53b63c66f0d9a7d6ba9182a207529ebd949e95f3 so they need to be added ad requires in python-eventlet package.

Version-Release number of selected component (if applicable):

python-eventlet-0.24.1-1.fc30

How reproducible:

Always.

Steps to Reproduce:
1. dnf install python-eventlet
2. python
3. >>> from eventlet import greenpool


Actual results:

>>> from eventlet import greenpool
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/eventlet/__init__.py", line 10, in <module>
    from eventlet import convenience
  File "/usr/lib/python2.7/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/lib/python2.7/site-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", line 62, in <module>
    dns = import_patched('dns')
  File "/usr/lib/python2.7/site-packages/eventlet/support/greendns.py", line 59, in import_patched
    return patcher.import_patched(module_name, **modules)
  File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line 120, in import_patched
    *additional_modules + tuple(kw_additional_modules.items()))
  File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line 94, in inject
    module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
ImportError: No module named dns
>>> 

Expected results:

Module should not fail to load.

Additional info:

Comment 1 Alfredo Moralejo 2018-11-20 16:14:57 UTC
Sent PR in https://src.fedoraproject.org/rpms/python-eventlet/pull-request/3

Comment 2 Igor Raits 2018-11-20 16:36:56 UTC
I've created PR which deals with it better -- https://src.fedoraproject.org/rpms/python-eventlet/pull-request/4

Comment 3 Igor Raits 2018-11-20 17:08:40 UTC
Fixed in rawhide.