• Bug#1064812: barbican: FTBFS: AttributeError: module 'OpenSSL.crypto' h

    From Lucas Nussbaum@21:1/5 to All on Mon Feb 26 09:20:02 2024
    Source: barbican
    Version: 1:17.0.0-2
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240226 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):
    ======================================================================
    FAIL: barbican.tests.plugin.test_snakeoil_ca.SnakeoilCAPluginTestCase.test_create_ca
    barbican.tests.plugin.test_snakeoil_ca.SnakeoilCAPluginTestCase.test_create_ca
    ---------------------------------------------------------------------- testtools.testresult.real._StringException: Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/barbican/tests/plugin/test_snakeoil_ca.py", line 367, in test_create_ca
    pkcs7 = crypto.load_pkcs7_data(crypto.FILETYPE_PEM, intermediates)
    ^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/cryptography/utils.py", line 71, in __getattr__
    obj = getattr(self._module, attr)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: module 'OpenSSL.crypto' has no attribute 'load_pkcs7_data'


    ----------------------------------------------------------------------
    Ran 1506 tests in 52.123s

    FAILED (failures=1, skipped=56)
    + echo ======> STESTR TEST SUITE FAILED FOR python3.12: displaying pip3 freeze output...
    ======> STESTR TEST SUITE FAILED FOR python3.12: displaying pip3 freeze output...
    + [ -x /usr/bin/pip3 ]
    + pip3 freeze
    alabaster==0.7.12
    alembic==1.13.1.dev0
    amqp==5.2.0
    anyjson==0.3.3
    appdirs==1.4.4
    attrs==23.2.0
    autopage==0.4.0
    Babel==2.10.3
    bandit==1.6.2
    barbican==17.0.0
    bcrypt==3.2.2
    beautifulsoup4==4.12.3
    blinker==1.7.0
    blockdiag==3.0.0
    cachetools==5.3.0
    cairocffi==1.6.1
    CairoSVG==2.7.1
    castellan==4.3.0
    cbor2==5.6.1
    certifi==2023.11.17
    cffi==1.16.0
    chardet==5.2.0
    charset-normalizer==3.3.2
    cliff==4.3.0
    cmd2==2.4.3+ds
    colorama==0.4.6
    confluent-kafka==1.7.0
    coverage==7.2.7
    cryptography==41.0.7
    cssselect2==0.7.0
    ddt==1.6.0
    debtcollector==2.5.0
    decorator==5.1.1
    defusedxml==0.7.1
    deprecation==2.0.7
    dnspython==2.6.1
    docutils==0.20.1
    dogpile.cache==1.1.8
    dulwich==0.21.6
    editables==0.5
    eventlet==0.0.0
    extras==1.0.0
    falcon==3.1.1
    fasteners==0.18
    fixtures==4.0.1
    flake8==6.1.0
    freetype-py==2.4.0
    funcparserlib==1.0.0
    futurist==2.4.1
    gabbi==2.4.0
    gevent==23.9.1
    gitdb==4.0.11
    GitPython==3.1.37
    greenlet==3.0.1
    hacking==4.1.0
    hatch-vcs==0.4.0
    hatchling==1.21.0
    httplib2==0.20.4
    idna==3.6
    imagesize==1.4.1
    importlib-metadata==4.12.0
    iniconfig==1.1.1
    iso8601==1.0.2
    jaraco.classes==3.2.1
    jeepney==0.8.0
    Jinja2==3.1.2
    jmespath==1.0.1
    jsonpatch==1.32
    jsonpath-rw==1.4.0
    jsonpath-rw-ext==1.2.2
    jsonpointer==2.3
    jsonschema==4.19.2
    jsonschema-specifications==2023.12.1
    keyring==24.3.0
    keystoneauth1==5.3.0
    keystonemiddleware==10.4.1
    kombu==5.3.5
    ldap3==2.9.1
    logutils==0.3.5
    lxml==5.1.0
    Mako==1.3.2.dev0
    MarkupSafe==2.1.5
    mccabe==0.7.0
    microversion-parse==1.0.1
    monotonic==1.6
    more-itertools==10.2.0
    msgpack==1.0.3
    netaddr==0.8.0
    netifaces==0.11.0
    oauthlib==3.2.2
    openstackdocstheme==3.2.0
    openstacksdk==1.5.0
    os-api-ref==2.3.0
    os-client-config==2.1.0
    os-service-types==1.7.0
    os-testr==3.0.0
    oslo.cache==3.5.0
    oslo.concurrency==5.2.0
    oslo.config==9.2.0
    oslo.context==5.2.0
    oslo.db==14.1.0
    oslo.i18n==6.1.0
    oslo.log==5.3.0
    oslo.messaging==14.4.1
    oslo.metrics==0.7.0
    oslo.middleware==5.2.0
    oslo.policy==4.2.1
    oslo.serialization==5.2.0
    oslo.service==3.2.0
    oslo.upgradecheck==2.2.0
    oslo.utils==6.2.1
    oslo.versionedobjects==3.2.0
    oslosphinx==4.18.0
    oslotest==4.5.0
    packaging==23.2
    paramiko==2.12.0
    Paste==3.7.1
    PasteDeploy==3.1.0
    pathspec==0.12.1
    pbr==6.0.0
    pecan==1.4.2
    pep8==1.7.1
    pillow==10.2.0
    pluggy==1.4.0
    ply==3.11
    prettytable==3.6.0
    prometheus-client==0.19.0
    psycopg2==2.9.9
    py==1.11.0
    pyasn1==0.4.8
    pyasyncore==1.0.2
    pycadf==3.1.1
    pycairo==1.25.1
    pycodestyle==2.11.1
    pycparser==2.21
    pyflakes==3.1.0
    Pygments==2.17.2
    pyinotify==0.9.6
    PyJWT==2.7.0
    PyKMIP==0.10.0
    PyMySQL==1.0.2
    PyNaCl==1.5.0
    pyOpenSSL==24.0.0
    pyparsing==3.1.1
    pyperclip==1.8.2
    pytest==7.4.4
    python-barbicanclient==5.6.1
    python-binary-memcached==0.31.1
    python-dateutil==2.8.2
    python-keystoneclient==5.2.0
    python-memcached==1.58
    python-mimeparse==1.6.0
    python-rapidjson==1.4
    python-subunit==1.4.2
    python-swiftclient==4.4.0
    pytz==2024.1
    PyYAML==6.0.1
    pyzmq==24.0.1
    referencing==0.31.0
    reportlab==4.1.0
    repoze.lru==0.7
    requests==2.31.0
    requestsexceptions==1.4.0
    rfc3986==2.0.0
    rlPyCairo==0.3.0
    roman==3.3
    Routes==2.5.1
    rpds-py==0.12.0
    SecretStorage==3.3.3
    setuptools-scm==8.0.4
    simplegeneric==0.8.1
    six==1.16.0
    smmap==6.0.0
    snowballstemmer==2.2.0
    soupsieve==2.5
    Sphinx==7.2.6
    sphinxcontrib-blockdiag==2.0.0
    sphinxcontrib-httpdomain==1.8.0
    sphinxcontrib-svg2pdfconverter==1.2.2
    SQLAlchemy==1.4.50
    statsd==4.0.1
    stestr==4.1.0
    stevedore==5.1.0
    tempest==36.0.0
    Tempita==0.5.2
    tenacity==8.2.3
    testrepository==0.0.20
    testresources==2.0.1
    testscenarios==0.5.0
    testtools==2.7.1
    tinycss2==1.2.1
    tomlkit==0.12.3
    trove-classifiers==2024.1.31
    typing_extensions==4.9.0
    uhashring==2.3
    unittest2==1.1.0
    urllib3==1.26.18
    vine==5.0.0
    voluptuous==0.14.2
    waitress==2.1.2
    wcwidth==0.2.5
    webcolors==1.11.1
    webencodings==0.5.1
    WebOb==1.8.6
    WebTest==3.0.0
    wrapt==1.15.0
    wsgi-intercept==1.9.3
    xcffib==0.11.1
    yappi==1.4.0
    zipp==1.0.0
    zope.event==5.0
    zope.interface==6.1
    + exit 1
    make[1]: *** [debian/rules:35: override_dh_install] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/02/26/barbican_17.0.0-2_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240226;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240226&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)