Comment 8 for bug 1996090

Revision history for this message
Seth Tanner (sjtanner) wrote :

It looks like this may still be a problem in 18.04
Currently running snapd 2.58+18.04

when attempting to upgrade from maas 3.2.6 to maas 3.3

sudo snap refresh --channel=3.3 maas
2023-02-09T22:34:01Z INFO Waiting for "snap.maas.supervisor.service" to stop.
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
  File "/snap/maas/25850/bin/maas", line 5, in <module>
    from maascli import main
  File "/snap/maas/25850/lib/python3.10/site-packages/maascli/__init__.py", line 10, in <module>
    from maascli.parser import get_deepest_subparser, prepare_parser
  File "/snap/maas/25850/lib/python3.10/site-packages/maascli/parser.py", line 11, in <module>
    from maascli import api
  File "/snap/maas/25850/lib/python3.10/site-packages/maascli/api.py", line 27, in <module>
    from maascli import utils
  File "/snap/maas/25850/lib/python3.10/site-packages/maascli/utils.py", line 15, in <module>
    from OpenSSL import crypto
  File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 17, in <module>
    from OpenSSL._util import (
  File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 189, in <module>
    Binding.init_static_locks()
  File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 163, in init_static_locks
    cls._ensure_ffi_initialized()
  File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 151, in _ensure_ffi_initialized
    _openssl_assert(
  File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 77, in _openssl_assert
    raise InternalError(
cryptography.exceptions.InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=126615813, lib=15, reason=786693, reason_text=b'error:078C0105:common libcrypto routines::init fail')])
-----)