# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_ssh_wrapper.yml ************************************************ 3 plays in /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml PLAY [Create static inventory from hostvars] *********************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:2 Saturday 17 February 2024 08:11:49 +0000 (0:00:00.012) 0:00:00.012 ***** ok: [sut] META: ran handlers TASK [Create temporary file] *************************************************** task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:7 Saturday 17 February 2024 08:11:51 +0000 (0:00:01.886) 0:00:01.899 ***** changed: [sut -> localhost] => { "changed": true, "gid": 1001, "group": "jenkins", "mode": "0600", "owner": "jenkins", "path": "/tmp/ansible.zn3yjmzc.inventory.yaml", "size": 0, "state": "file", "uid": 1000090000 } TASK [Create static inventory from hostvars] *********************************** task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:14 Saturday 17 February 2024 08:11:51 +0000 (0:00:00.148) 0:00:02.047 ***** changed: [sut -> localhost] => { "changed": true, "checksum": "3ca2c4d0a679ae660ed861cb026bc54de6bc4d2f", "dest": "/tmp/ansible.zn3yjmzc.inventory.yaml", "gid": 1001, "group": "jenkins", "md5sum": "12e972005480905d96038262c4ba7fef", "mode": "0644", "owner": "jenkins", "size": 51430, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1708157511.767026-4710-97804749473148/source", "state": "file", "uid": 1000090000 } META: ran handlers META: ran handlers PLAY [Ensure that the rule runs with ssh] ************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:2 Saturday 17 February 2024 08:11:52 +0000 (0:00:00.419) 0:00:02.466 ***** ok: [sut] META: ran handlers TASK [Gather facts from sut] *************************************************** task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:59 Saturday 17 February 2024 08:11:53 +0000 (0:00:01.405) 0:00:03.871 ***** ok: [sut -> sut] TASK [Print message that this test is skipped on EL 6] ************************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:64 Saturday 17 February 2024 08:11:54 +0000 (0:00:00.695) 0:00:04.567 ***** ok: [sut] => {} MSG: Skipping the test on EL 6 when storing logs over ssh to localhost META: ending play for sut PLAY [Run tests_ssh.yml in check_mode] ***************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:27 Saturday 17 February 2024 08:11:54 +0000 (0:00:00.021) 0:00:04.588 ***** ok: [sut] META: ran handlers TASK [Run ansible-playbook with tests_ssh.yml in check mode] ******************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:34 Saturday 17 February 2024 08:11:54 +0000 (0:00:00.683) 0:00:05.272 ***** fatal: [sut -> localhost]: FAILED! => { "changed": false, "cmd": [ "ansible-playbook", "-vvv", "-i", "/tmp/ansible.zn3yjmzc.inventory.yaml", "--check", "tests_ssh.yml" ], "delta": "0:00:00.885383", "end": "2024-02-17 08:11:56.005003", "rc": 2, "start": "2024-02-17 08:11:55.119620" } STDOUT: ansible-playbook [core 2.14.7] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/gluetool/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cibue29psj/.collection executable location = /opt/gluetool/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/gluetool/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file host_list declined parsing /tmp/ansible.zn3yjmzc.inventory.yaml as it did not pass its verify_file() method script declined parsing /tmp/ansible.zn3yjmzc.inventory.yaml as it did not pass its verify_file() method Parsed /tmp/ansible.zn3yjmzc.inventory.yaml inventory source with yaml plugin Skipping callback 'debug', as we already have a stdout callback. 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: tests_ssh.yml ******************************************************** 1 plays in tests_ssh.yml PLAY [Ensure that the rule runs with ssh] ************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:2 Saturday 17 February 2024 08:11:55 +0000 (0:00:00.027) 0:00:00.027 ***** Attempting python interpreter discovery <10.31.9.84> ESTABLISH SSH CONNECTION FOR USER: root <10.31.9.84> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'ControlPath="/home/jenkins/.ansible/cp/0f93074b96"' 10.31.9.84 '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'python3.11'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.10'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.9'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.8'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"'' <10.31.9.84> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python\nENDFOUND\n', b'') <10.31.9.84> ESTABLISH SSH CONNECTION FOR USER: root <10.31.9.84> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'ControlPath="/home/jenkins/.ansible/cp/0f93074b96"' 10.31.9.84 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"'' <10.31.9.84> (0, b'{"osrelease_content": null, "platform_dist_result": ["redhat", "6.10", "Santiago"]}\n', b'') Using module file /opt/gluetool/lib/python3.9/site-packages/ansible/modules/setup.py Pipelining is enabled. <10.31.9.84> ESTABLISH SSH CONNECTION FOR USER: root <10.31.9.84> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o 'ControlPath="/home/jenkins/.ansible/cp/0f93074b96"' 10.31.9.84 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"'' <10.31.9.84> (1, b'\n{"failed": true, "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.5. Current version: 2.6.6 (r266:84292, Jun 11 2019, 11:01:44) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}\n', b'') <10.31.9.84> Failed to connect to the host via ssh: fatal: [sut]: FAILED! => { "ansible_facts": {}, "changed": false, "failed_modules": { "ansible.legacy.setup": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "failed": true, "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.5. Current version: 2.6.6 (r266:84292, Jun 11 2019, 11:01:44) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]" } } } MSG: The following modules failed to execute: ansible.legacy.setup to retry, use: --limit @/tmp/tests_ssh.retry PLAY RECAP ********************************************************************* sut : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 Saturday 17 February 2024 08:11:55 +0000 (0:00:00.320) 0:00:00.347 ***** =============================================================================== Gathering Facts --------------------------------------------------------- 0.32s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:2 -------------------------- STDERR: [DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. MSG: non-zero return code to retry, use: --limit @/tmp/tests_ssh_wrapper.retry PLAY RECAP ********************************************************************* sut : ok=7 changed=2 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 Saturday 17 February 2024 08:11:56 +0000 (0:00:01.040) 0:00:06.312 ***** =============================================================================== Gathering Facts --------------------------------------------------------- 1.89s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:2 ------------------ Gathering Facts --------------------------------------------------------- 1.41s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:2 -------------------------- Run ansible-playbook with tests_ssh.yml in check mode ------------------- 1.04s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:34 ----------------- Gather facts from sut --------------------------------------------------- 0.70s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:59 ------------------------- Gathering Facts --------------------------------------------------------- 0.68s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:27 ----------------- Create static inventory from hostvars ----------------------------------- 0.42s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:14 ----------------- Create temporary file --------------------------------------------------- 0.15s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh_wrapper.yml:7 ------------------ Print message that this test is skipped on EL 6 ------------------------- 0.02s /WORKDIR/git-weekly-cibue29psj/tests/tests_ssh.yml:64 ------------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---