You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: Compatability issues with RHEL 8 targets after update to SemaphoreUI version 2.11.2 - Problem could be related to ansible version in Semaphore
#2684
After updating SemaphoreUI from V2.10.43 to V2.11.2. I can no longer run ansible playbooks against RHEL 8 targets.
The error I get is this:
fatal: [extest0078.it.rm.dk]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "exception": "Traceback (most recent call last):\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File \"<frozen importlib._bootstrap>\", line 971, in _find_and_load\r\n File \"<frozen importlib._bootstrap>\", line 951, in _find_and_load_unlocked\r\n File \"<frozen importlib._bootstrap>\", line 894, in _find_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1157, in find_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1131, in _get_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1112, in _legacy_get_spec\r\n File \"<frozen importlib._bootstrap>\", line 441, in spec_from_loader\r\n File \"<frozen importlib._bootstrap_external>\", line 544, in spec_from_file_location\r\n File \"/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py\", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "failed": true, "module_stderr": "Shared connection to extest0078.it.rm.dk closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py\", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File \"<frozen importlib._bootstrap>\", line 971, in _find_and_load\r\n File \"<frozen importlib._bootstrap>\", line 951, in _find_and_load_unlocked\r\n File \"<frozen importlib._bootstrap>\", line 894, in _find_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1157, in find_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1131, in _get_spec\r\n File \"<frozen importlib._bootstrap_external>\", line 1112, in _legacy_get_spec\r\n File \"<frozen importlib._bootstrap>\", line 441, in spec_from_loader\r\n File \"<frozen importlib._bootstrap_external>\", line 544, in spec_from_file_location\r\n File \"/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py\", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
fatal: [extest0078.it.rm.dk]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "exception": "Traceback (most recent call last):\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File "", line 971, in _find_and_load\r\n File "", line 951, in _find_and_load_unlocked\r\n File "", line 894, in _find_spec\r\n File "", line 1157, in find_spec\r\n File "", line 1131, in _get_spec\r\n File "", line 1112, in _legacy_get_spec\r\n File "", line 441, in spec_from_loader\r\n File "", line 544, in spec_from_file_location\r\n File "/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "failed": true, "module_stderr": "Shared connection to extest0078.it.rm.dk closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File "", line 971, in _find_and_load\r\n File "", line 951, in _find_and_load_unlocked\r\n File "", line 894, in _find_spec\r\n File "", line 1157, in find_spec\r\n File "", line 1131, in _get_spec\r\n File "", line 1112, in _legacy_get_spec\r\n File "", line 441, in spec_from_loader\r\n File "", line 544, in spec_from_file_location\r\n File "/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
This leads me to believe that it might be a problem with the ansible version in Semaphore, no longer supporting the Python version in RHEL8, which is Python 3.6.8.
Would it be possible to release a version of SemaphoreUI that still supports RHEL 8, or will i effectively be "locked" to SemaphoreUI V2.10.43 untill I no longer have any RHEL 8 systems in my invironment?
The text was updated successfully, but these errors were encountered:
what python version are on the target RHEL8 servers?
I'm using v2.10.35 but it failed against RHEL8 python3.6 servers which worked for months
I upgraded target RHEL8 python from 3.6 to 3.8 and now operational again
what python version are on the target RHEL8 servers? I'm using v2.10.35 but it failed against RHEL8 python3.6 servers which worked for months I upgraded target RHEL8 python from 3.6 to 3.8 and now operational again
On RHEL 7.6 - 7.9 the Python version is 2.7.5
On RHEL 8.7 - 8.10 the python version is 3.6.8
On RHEL 9.4 the Python version is 3.9.18
On RHEL 9.5 the Python version is 3.9.21
We run all these RHEL versions in our environment, and expect to run Ansible against them all. Preferably in SemaphoreUI.
I know we could perhaps just upgrade the python version on some of them, but we really do not want to do that...
Issue
After updating SemaphoreUI from V2.10.43 to V2.11.2. I can no longer run ansible playbooks against RHEL 8 targets.
The error I get is this:
Impact
Ansible (task execution), Docker
Installation method
Docker
Database
Postgres
Browser
Firefox
Semaphore Version
v2.11.2-0e9490c-1735214878
Ansible Version
ansible [core 2.18.1] config file = /tmp/semaphore/repository_1_117/ansible.cfg configured module search path = ['/tmp/semaphore/repository_1_117/library'] ansible python module location = /opt/semaphore/apps/ansible/11.1.0/venv/lib/python3.11/site-packages/ansible ansible collection location = /tmp/semaphore/repository_1_117/collections executable location = /opt/semaphore/apps/ansible/11.1.0/venv/bin/ansible python version = 3.11.11 (main, Dec 6 2024, 11:15:21) [GCC 13.2.1 20231014] (/opt/semaphore/apps/ansible/11.1.0/venv/bin/python3) jinja version = 3.1.5 libyaml = True
Logs & errors
fatal: [extest0078.it.rm.dk]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "exception": "Traceback (most recent call last):\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File "", line 971, in _find_and_load\r\n File "", line 951, in _find_and_load_unlocked\r\n File "", line 894, in _find_spec\r\n File "", line 1157, in find_spec\r\n File "", line 1131, in _get_spec\r\n File "", line 1112, in _legacy_get_spec\r\n File "", line 441, in spec_from_loader\r\n File "", line 544, in spec_from_file_location\r\n File "/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "failed": true, "module_stderr": "Shared connection to extest0078.it.rm.dk closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansibletest/.ansible/tmp/ansible-tmp-1736414213.090755-84-188723330247733/AnsiballZ_setup.py", line 44, in invoke_module\r\n from ansible.module_utils import basic\r\n File "", line 971, in _find_and_load\r\n File "", line 951, in _find_and_load_unlocked\r\n File "", line 894, in _find_spec\r\n File "", line 1157, in find_spec\r\n File "", line 1131, in _get_spec\r\n File "", line 1112, in _legacy_get_spec\r\n File "", line 441, in spec_from_loader\r\n File "", line 544, in spec_from_file_location\r\n File "/tmp/ansible_ansible.legacy.setup_payload_6k7io3wb/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
Manual installation - system information
No response
Configuration
config.json
Additional information
This leads me to believe that it might be a problem with the ansible version in Semaphore, no longer supporting the Python version in RHEL8, which is Python 3.6.8.
Would it be possible to release a version of SemaphoreUI that still supports RHEL 8, or will i effectively be "locked" to SemaphoreUI V2.10.43 untill I no longer have any RHEL 8 systems in my invironment?
The text was updated successfully, but these errors were encountered: