Package: python-cryptography
Version: 1.5.3-1
Severity: critical
Justification: breaks unrelated software

Upgrading python-cryptography from 1.5.2-1 to 1.5.3-1 renders ansible unusable:

$ ansible-playbook -vvv playbook.yml
ERROR! Unexpected Exception: 'module' object has no attribute 'SSL_ST_INIT'
the full traceback was:

Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 103, in <module>
    exit_code = cli.run()
  File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 159, in 
run
    results = pbex.run()
  File 
"/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 
89, in run
    self._tqm.load_callbacks()
  File 
"/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py", line 
177, in load_callbacks
    for callback_plugin in callback_loader.all(class_only=True):
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py", line 
394, in all
    self._module_cache[path] = self._load_module_source(name, path)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/__init__.py", line 
324, in _load_module_source
    module = imp.load_source(name, path, module_file)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py", 
line 32, in <module>
    from ansible.module_utils.urls import open_url
  File "/usr/lib/python2.7/dist-packages/ansible/module_utils/urls.py", line 
150, in <module>
    from urllib3.contrib.pyopenssl import ssl_wrap_socket
  File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 
47, in <module>
    import OpenSSL.SSL
  File "/home/pjs/.local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 
8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/home/pjs/.local/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 python-cryptography to 1.5.2-1 fixes the issue:

$ sudo dpkg -i /var/cache/apt/archives/python-cryptography_1.5.2-1_amd64.deb 
dpkg: warning: downgrading python-cryptography from 1.5.3-1 to 1.5.2-1
(Reading database ... 575660 files and directories currently installed.)
Preparing to unpack .../python-cryptography_1.5.2-1_amd64.deb ...
Unpacking python-cryptography (1.5.2-1) over (1.5.3-1) ...
Setting up python-cryptography (1.5.2-1) ...

$ ansible-playbook -vvv playbook.yml
PLAYBOOK: playbook.yml *********************************************************
(...)

-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'oldstable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-cryptography depends on:
ii  libc6                        2.24-8
ii  libssl1.1                    1.1.0c-2
ii  python                       2.7.11-2
pn  python-cffi-backend-api-max  <none>
pn  python-cffi-backend-api-min  <none>
ii  python-enum34                1.1.6-1
ii  python-idna                  2.1-1
ii  python-ipaddress             1.0.17-1
ii  python-pyasn1                0.1.9-2
ii  python-setuptools            28.7.1-1
ii  python-six                   1.10.0-3
pn  python:any                   <none>

python-cryptography recommends no packages.

Versions of packages python-cryptography suggests:
pn  python-cryptography-doc      <none>
ii  python-cryptography-vectors  1.5.3-1

-- no debconf information

Reply via email to