action #128300
closed[qem][qe-core][sle15sp3] Package ansible-test requires Python2.7
0%
Description
Observation¶
openQA test in scenario sle-15-SP3-Server-DVD-Updates-x86_64-mau-extratests2@64bit fails in
ansible
Test suite description¶
Testsuite maintained at https://gitlab.suse.de/qa-maintenance/qam-openqa-yml. Run console tests against aggregated test repo
Reproducible¶
Fails since (at least) Build 20230425-1
Expected result¶
Last good: 20230424-1 (or more recent)
Further details¶
Always latest result in this scenario: latest
Updated by rfan1 over 1 year ago
- Subject changed from [qem][qe-core]test fails in ansible to [qem][qe-core][sle15sp3]test fails in ansible
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/16933
This new PR installed the package ansible-test
, then I can see the python-base-2.7
is installed due to dependency
(26/46) Installing: python-base-2.7.18-150000.48.1.x86_64 [.................done]
And later, the test failed:
# ansible-playbook -i hosts main.yaml --check ; echo C50rh-$?-
TASK [test : Install ed]
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named xml
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Shared connection to localhost closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/bernhard/.ansible/tmp/ansible-tmp-1682471300.6237023-27986-220514846138454/AnsiballZ_zypper.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/home/bernhard/.ansible/tmp/ansible-tmp-1682471300.6237023-27986-220514846138454/AnsiballZ_zypper.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/bernhard/.ansible/tmp/ansible-tmp-1682471300.6237023-27986-220514846138454/AnsiballZ_zypper.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.packaging.os.zypper', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 188, in run_module\r\n fname, loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\r\n mod_name, mod_fname, mod_loader, pkg_name)\r\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\r\n exec code in run_globals\r\n File \"/tmp/ansible_zypper_payload_32SxkM/ansible_zypper_payload.zip/ansible/modules/packaging/os/zypper.py\", line 195, in <module>\r\nImportError: No module named xml\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Updated by rfan1 over 1 year ago
My suggestion:
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html
Set:
interpreter_python = /usr/bin/python3
in /etc/ansible/ansible.cfg
Updated by rfan1 over 1 year ago
- Status changed from New to In Progress
- Assignee set to rfan1
Updated by rfan1 over 1 year ago
Updated by rfan1 over 1 year ago
A new error seen on sle15sp5:
Updated by pdostal over 1 year ago
Updated by pdostal over 1 year ago
Updated by pdostal over 1 year ago
- Subject changed from [qem][qe-core][sle15sp3]test fails in ansible to [qem][qe-core][sle15sp3] Package ansible-test requires Python2.7
- Status changed from In Progress to Resolved