Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Action For Solaris 10 Playbook Check Is Not Working #3610

Closed
steelhead31 opened this issue Jun 19, 2024 · 1 comment · Fixed by #3608
Closed

Github Action For Solaris 10 Playbook Check Is Not Working #3610

steelhead31 opened this issue Jun 19, 2024 · 1 comment · Fixed by #3608
Assignees
Labels
ansible ghActions GitHub Actions

Comments

@steelhead31
Copy link
Contributor

steelhead31 commented Jun 19, 2024

The Github Action For Solaris 10 Playbook Check Is Not Working, due to a compatibility issue, with the ubuntu-latest ( Ubuntu 24.04 ) github runner, the version of python on the controller, the version of python on the remote ( Solaris 10 Vagrant Box ), and the version of Ansible.

The following error is seen:

fatal: [127.0.0.1]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"exception": "Traceback (most recent call last):\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 44, in invoke_module\r\n    from ansible.module_utils import basic\r\n  File \"/tmp/ansible_ansible.legacy.setup_payload_JZmkAc/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py\", line 17\r\n    msg=f\"ansible-core requires a minimum of Python version {'.'.join(map(str, _PY_MIN))}. Current version: {''.join(sys.version.splitlines())}\",\r\n                                                                                                                                               ^\r\nSyntaxError: invalid syntax\r\n", "failed": true, "module_stderr": "Shared connection to 127.0.0.1 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 107, in <module>\r\n    _ansiballz_main()\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 99, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/export/home/local/vagrant/.ansible/tmp/ansible-tmp-1718722998.3428314-15639-254420188666236/AnsiballZ_setup.py\", line 44, in invoke_module\r\n    from ansible.module_utils import basic\r\n  File \"/tmp/ansible_ansible.legacy.setup_payload_JZmkAc/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py\", line 17\r\n    msg=f\"ansible-core requires a minimum of Python version {'.'.join(map(str, _PY_MIN))}. Current version: {''.join(sys.version.splitlines())}\",\r\n                                                                                                                                               ^\r\nSyntaxError: invalid syntax\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
@steelhead31 steelhead31 self-assigned this Jun 19, 2024
@steelhead31 steelhead31 added ansible ghActions GitHub Actions labels Jun 19, 2024
@steelhead31
Copy link
Contributor Author

Having done some investigation, reverting the runner to Ubuntu 22.04, installing Python 2, and ansible via pip seems to allow the check to run normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible ghActions GitHub Actions
Projects
Status: Done
1 participant