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
all:
hosts:
remote-execution:
ansible_host: test-instance
ansible_user: test # user provided
ansible_ssh_private_key_file: ~/.ssh/id_rsa
$ cat install_receptor.yml
hosts: all
become: yes
tasks:
name: Create the receptor user
user:
name: "{{ receptor_user }}"
shell: /bin/bash
import_role:
name: ansible.receptor.podman
import_role:
name: ansible.receptor.setup
Expected results
The playbook run successfully, and the installation of the execute node was successful.
Actual results
$ ansible-playbook -i inventory.yml install_receptor.yml -vv
ansible-playbook [core 2.17.3]
config file = /home/OS_kkj/.ansible.cfg
configured module search path = ['/home/OS_kkj/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/OS_kkj/.local/lib/python3.12/site-packages/ansible
ansible collection location = /home/OS_kkj/.ansible/collections:/usr/share/ansible/collections
executable location = /home/OS_kkj/.local/bin/ansible-playbook
python version = 3.12.1 (main, Aug 30 2024, 16:00:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/local/bin/python3.12)
jinja version = 3.1.2
libyaml = True
Using /home/OS_kkj/.ansible.cfg as config file
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: install_receptor.yml ***********************************************************************************************************************************************************
1 plays in install_receptor.yml
PLAY [all] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************
task path: /home/gaia_bot/test-instance_install_bundle/install_receptor.yml:2
[WARNING]: Platform linux on host remote-execution is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change
the meaning of that path. See https://docs.ansible.com/ansible-core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [remote-execution]
TASK [ansible.receptor.podman : Run OS-specific tasks] ***********************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/main.yml:7
included: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/setup-RedHat.yml for remote-execution
TASK [ansible.receptor.podman : Install podman packages] *********************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/setup-RedHat.yml:2
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: future feature annotations is not defined
fatal: [remote-execution]: FAILED! => {"changed": false, "module_stderr": "OpenSSH_8.0p1, OpenSSL 1.1.1k FIPS 25 Mar 2021\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug2: checking match for 'final all' host test-instance originally test-instance\r\ndebug2: match not found\r\ndebug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config\r\ndebug1: configuration requests final Match pass\r\ndebug1: re-parsing configuration\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug2: checking match for 'final all' host test-instance originally test-instance\r\ndebug2: match found\r\ndebug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug2: Received exit status from master 1\r\nShared connection to test-instance closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "", line 12, in \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.dnf_payload_8ttprokq/ansible_ansible.legacy.dnf_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Please confirm the following
[email protected]
instead.)Bug Summary
Execution node fails to install on rocky 8.10 OS.
AWX version
24.6.1
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
2.17.3
Operating system
Rocky Linux release 8.10 (Green Obsidian)
Web browser
No response
Steps to reproduce
ansible-playbook -i inventory.yml install_receptor.yml -vvv
$ cat inventory.yml
all:
hosts:
remote-execution:
ansible_host: test-instance
ansible_user: test # user provided
ansible_ssh_private_key_file: ~/.ssh/id_rsa
$ cat install_receptor.yml
become: yes
tasks:
user:
name: "{{ receptor_user }}"
shell: /bin/bash
name: ansible.receptor.podman
name: ansible.receptor.setup
Expected results
The playbook run successfully, and the installation of the execute node was successful.
Actual results
$ ansible-playbook -i inventory.yml install_receptor.yml -vv
ansible-playbook [core 2.17.3]
config file = /home/OS_kkj/.ansible.cfg
configured module search path = ['/home/OS_kkj/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/OS_kkj/.local/lib/python3.12/site-packages/ansible
ansible collection location = /home/OS_kkj/.ansible/collections:/usr/share/ansible/collections
executable location = /home/OS_kkj/.local/bin/ansible-playbook
python version = 3.12.1 (main, Aug 30 2024, 16:00:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/local/bin/python3.12)
jinja version = 3.1.2
libyaml = True
Using /home/OS_kkj/.ansible.cfg as config file
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: install_receptor.yml ***********************************************************************************************************************************************************
1 plays in install_receptor.yml
PLAY [all] *******************************************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************
task path: /home/gaia_bot/test-instance_install_bundle/install_receptor.yml:2
[WARNING]: Platform linux on host remote-execution is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change
the meaning of that path. See https://docs.ansible.com/ansible-core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [remote-execution]
TASK [Create the receptor user] **********************************************************************************************************************************************************
task path: /home/gaia_bot/test-instance_install_bundle/install_receptor.yml:5
ok: [remote-execution] => {"append": false, "changed": false, "comment": "", "group": 1001, "home": "/home/awx", "move_home": false, "name": "awx", "shell": "/bin/bash", "state": "present", "uid": 1001}
TASK [ansible.receptor.podman : Include variables] ***************************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/main.yml:3
included: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/variables.yml for remote-execution
TASK [ansible.receptor.podman : Include OS-specific variables "RedHat"] ******************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/variables.yml:2
ok: [remote-execution] => {"ansible_facts": {"__podman_packages": ["podman", "crun"]}, "ansible_included_var_files": ["/home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/vars/RedHat.yml"], "changed": false}
TASK [ansible.receptor.podman : Define podman_packages] **********************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/variables.yml:7
ok: [remote-execution] => {"ansible_facts": {"podman_packages": ["podman", "crun"]}, "changed": false}
TASK [ansible.receptor.podman : Run OS-specific tasks] ***********************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/main.yml:7
included: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/setup-RedHat.yml for remote-execution
TASK [ansible.receptor.podman : Install podman packages] *********************************************************************************************************************************
task path: /home/OS_kkj/.ansible/collections/ansible_collections/ansible/receptor/roles/podman/tasks/setup-RedHat.yml:2
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SyntaxError: future feature annotations is not defined
fatal: [remote-execution]: FAILED! => {"changed": false, "module_stderr": "OpenSSH_8.0p1, OpenSSL 1.1.1k FIPS 25 Mar 2021\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug2: checking match for 'final all' host test-instance originally test-instance\r\ndebug2: match not found\r\ndebug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config\r\ndebug1: configuration requests final Match pass\r\ndebug1: re-parsing configuration\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug2: checking match for 'final all' host test-instance originally test-instance\r\ndebug2: match found\r\ndebug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug2: Received exit status from master 1\r\nShared connection to test-instance closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "", line 12, in \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.dnf_payload_8ttprokq/ansible_ansible.legacy.dnf_payload.zip/ansible/module_utils/basic.py", line 5\r\nSyntaxError: future feature annotations is not defined\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP *******************************************************************************************************************************************************************************
remote-execution : ok=6 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Additional information
No response
The text was updated successfully, but these errors were encountered: