molecule jobs failing with AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Rabi Mishra |
Bug Description
Looks like it's due to the lastest cryptography[1] with is causing the issue.
[1] https:/
2022-11-03 11:34:13.930275 | centos-9-stream |
2022-11-03 11:34:13.930291 | centos-9-stream | TASK [test_deps : Install selinux python libs] *******
2022-11-03 11:34:13.930308 | centos-9-stream | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: module 'lib' has no attribute 'X509_V_
2022-11-03 11:34:13.930333 | centos-9-stream | fatal: [localhost]: FAILED! => changed=false
2022-11-03 11:34:13.930351 | centos-9-stream | module_stderr: |-
2022-11-03 11:34:13.930367 | centos-9-stream | Traceback (most recent call last):
2022-11-03 11:34:13.930383 | centos-9-stream | File "/home/
2022-11-03 11:34:13.930414 | centos-9-stream | _ansiballz_main()
2022-11-03 11:34:13.930435 | centos-9-stream | File "/home/
2022-11-03 11:34:13.930452 | centos-9-stream | invoke_
2022-11-03 11:34:13.930468 | centos-9-stream | File "/home/
2022-11-03 11:34:13.930484 | centos-9-stream | runpy.run_
2022-11-03 11:34:13.930500 | centos-9-stream | File "/usr/lib64/
2022-11-03 11:34:13.930516 | centos-9-stream | return _run_module_
2022-11-03 11:34:13.930532 | centos-9-stream | File "/usr/lib64/
2022-11-03 11:34:13.930548 | centos-9-stream | _run_code(code, mod_globals, init_globals,
2022-11-03 11:34:13.930564 | centos-9-stream | File "/usr/lib64/
2022-11-03 11:34:13.930579 | centos-9-stream | exec(code, run_globals)
2022-11-03 11:34:13.930596 | centos-9-stream | File "/tmp/ansible_
2022-11-03 11:34:13.930613 | centos-9-stream | File "<frozen importlib.
2022-11-03 11:34:13.930629 | centos-9-stream | File "<frozen importlib.
2022-11-03 11:34:13.930644 | centos-9-stream | File "<frozen importlib.
2022-11-03 11:34:13.930660 | centos-9-stream | File "<frozen importlib.
2022-11-03 11:34:13.930677 | centos-9-stream | File "<frozen zipimport>", line 259, in load_module
2022-11-03 11:34:13.930693 | centos-9-stream | File "/tmp/ansible_
2022-11-03 11:34:13.930709 | centos-9-stream | File "/home/
2022-11-03 11:34:13.930725 | centos-9-stream | import OpenSSL.SSL
2022-11-03 11:34:13.930741 | centos-9-stream | File "/usr/lib/
2022-11-03 11:34:13.930757 | centos-9-stream | from OpenSSL import crypto, SSL
2022-11-03 11:34:13.930773 | centos-9-stream | File "/usr/lib/
2022-11-03 11:34:13.930789 | centos-9-stream | class X509StoreFlags(
2022-11-03 11:34:13.930805 | centos-9-stream | File "/usr/lib/
2022-11-03 11:34:13.930821 | centos-9-stream | CB_ISSUER_CHECK = _lib.X509_
2022-11-03 11:34:13.930837 | centos-9-stream | AttributeError: module 'lib' has no attribute 'X509_V_
2022-11-03 11:34:13.930853 | centos-9-stream | module_stdout: ''
2022-11-03 11:34:13.930869 | centos-9-stream | msg: |-
2022-11-03 11:34:13.930885 | centos-9-stream | MODULE FAILURE
2022-11-03 11:34:13.930901 | centos-9-stream | See stdout/stderr for the exact error
Changed in tripleo: | |
milestone: | none → antelope-1 |
Changed in tripleo: | |
status: | Triaged → In Progress |
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/863508 /opendev. org/openstack/ tripleo- ansible/ commit/ 0e0a80a8ab56b5b d6903a8b169d058 b352843f2a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 0e0a80a8ab56b5b d6903a8b169d058 b352843f2a
Author: rabi <email address hidden>
Date: Thu Nov 3 16:45:57 2022 +0530
Fix molecule jobs broken with latest cryptography
Pin cryptography to < 37.0.0[1].
Also, changes tripleo_ keystone_ resources role to use
centos:stream9 image.
[1] https:/ /github. com/pyca/ cryptography/ issues/ 7126
Closes-Bug: #1995608 cf2cac44a80b3a4 91db1996d9f
Change-Id: I6852de27f68f4d