Original Message:
Sent: Mon July 28, 2025 03:31 AM
From: Joerg Kauke
Subject: Problems with salt minion after python3 updates
Not a single idea?
So we will try and build venv for Python with the old modules.
Thanks to all who looked into it.
Kind regards
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
Original Message:
Sent: Tue July 22, 2025 04:45 AM
From: Joerg Kauke
Subject: Problems with salt minion after python3 updates
Dear team,
dear community.
We are planning to update our environment to AIX 7.3 TL3 and all RPM's to the newest level. For this I have a bunch of test systems for trying.
Unfortunately, after update all RPM's from the toolbox incl. python3.9 and its python crypto modul, we are facing following errors with salt:
salt-call state.highstate[ERROR ] Failed to import module tls, this is due most likely to a syntax error:Traceback (most recent call last): File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 766, in _load_module mod = self.run(spec.loader.load_module) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1201, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1216, in _run_as return _func_or_method(*args, **kwargs) File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1029, in load_module File "<frozen importlib._bootstrap_external>", line 854, in load_module File "<frozen importlib._bootstrap>", line 274, in _load_module_shim File "<frozen importlib._bootstrap>", line 711, in _load File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/opt/freeware/lib/python3.9/site-packages/salt/modules/tls.py", line 122, in <module> import OpenSSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1579, in <module> class X509StoreFlags(object): File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1598, in X509StoreFlags NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICYAttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'[ERROR ] Failed to import module travisci, this is due most likely to a syntax error:Traceback (most recent call last): File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 766, in _load_module mod = self.run(spec.loader.load_module) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1201, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1216, in _run_as return _func_or_method(*args, **kwargs) File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1029, in load_module File "<frozen importlib._bootstrap_external>", line 854, in load_module File "<frozen importlib._bootstrap>", line 274, in _load_module_shim File "<frozen importlib._bootstrap>", line 711, in _load File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/opt/freeware/lib/python3.9/site-packages/salt/modules/travisci.py", line 13, in <module> import OpenSSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1579, in <module> class X509StoreFlags(object): File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1598, in X509StoreFlags NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICYAttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'[ERROR ] Failed to import module x509, this is due most likely to a syntax error:Traceback (most recent call last): File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 766, in _load_module mod = self.run(spec.loader.load_module) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1201, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/opt/freeware/lib/python3.9/site-packages/salt/loader/lazy.py", line 1216, in _run_as return _func_or_method(*args, **kwargs) File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1029, in load_module File "<frozen importlib._bootstrap_external>", line 854, in load_module File "<frozen importlib._bootstrap>", line 274, in _load_module_shim File "<frozen importlib._bootstrap>", line 711, in _load File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/opt/freeware/lib/python3.9/site-packages/salt/modules/x509.py", line 38, in <module> import OpenSSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1579, in <module> class X509StoreFlags(object): File "/opt/freeware/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1598, in X509StoreFlags NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICYAttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
I tried to downgrade salt and the python crypto modul with no success.
The salt highstate seems to run successfully even with that error, but it would look better without.
Do you have any idea?
Thanks for your time in advance.
kind regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------