Bug 1392570

Summary: python2-cryptography-1.5.3-1.fc26 breaks fedpkg
Product: [Fedora] Fedora Reporter: Kevin Fenzi <kevin>
Component: pyOpenSSLAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: itamar, jlieskov, manisandro, mcepl, mcepl, nick, npmccallum, terrycwk1994, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pyOpenSSL-16.2.0-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-08 08:00:18 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 Kevin Fenzi 2016-11-07 19:20:17 UTC
On upgrading to python2-cryptography-1.5.3-1.fc26, fedpkg clone now gives me: 

% fedpkg clone certbot
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 13, in <module>
    from fedpkg.__main__ import main
  File "/usr/lib/python2.7/site-packages/fedpkg/__init__.py", line 12, in <module>
    import pyrpkg
  File "/usr/lib/python2.7/site-packages/pyrpkg/__init__.py", line 24, in <module>
    import koji
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 51, in <module>
    import ssl.SSLCommon
  File "/usr/lib/python2.7/site-packages/koji/ssl/SSLCommon.py", line 18, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 124, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Downgrading to python2-cryptography-1.3.1-4.fc25 everything works again.

Comment 1 Nathaniel McCallum 2016-11-07 19:36:17 UTC
https://github.com/pyca/pyopenssl/issues/525

This is fixed in a newer pyOpenSSL.

Comment 2 Kevin Fenzi 2016-11-07 22:50:17 UTC
I can confirm that this is fixed with newer pyOpenSSL. ;) 

Happy to push an update if you would like...

Comment 3 Nathaniel McCallum 2016-11-09 22:06:13 UTC
*** Bug 1393579 has been marked as a duplicate of this bug. ***