ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpk7x13fer executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file 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: _backup.yml ********************************************************** 1 plays in /tmp/tmpdb8ajfhr/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:6 Wednesday 03 August 2022 15:21:06 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659540064.8659303, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540064.865, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539613.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072843962377", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. TASK [Check if system files exist] ********************************************* task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:13 Wednesday 03 August 2022 15:21:06 +0000 (0:00:00.458) 0:00:00.476 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-6.qcow2.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': 'e', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659539613.0, 'block_size': 4096, 'inode': 260120, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744072843962377', 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'writeable': True, 'mimetype': 'text/plain', 'blocks': 8, 'xoth': False, 'islnk': False, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/resolv.conf', 'xusr': False, 'atime': 1659540064.8659303, 'isdir': False, 'ctime': 1659540064.865, 'isblk': False, 'wgrp': False, 'checksum': '2c55cc8324e731161638aa365379c1c147546a87', 'dev': 64513, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': ['extents']}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659540064.8659303, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540064.865, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539613.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072843962377", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:19 Wednesday 03 August 2022 15:21:06 +0000 (0:00:00.035) 0:00:00.512 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003998", "end": "2022-08-03 11:21:06.362359", "rc": 0, "start": "2022-08-03 11:21:06.358361" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:21:07 +0000 (0:00:00.385) 0:00:00.897 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.46s /tmp/tmpdb8ajfhr/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.39s /tmp/tmpdb8ajfhr/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpdb8ajfhr/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmpdb8ajfhr/tests/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:3 Wednesday 03 August 2022 15:21:07 +0000 (0:00:00.016) 0:00:00.914 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:6 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.925) 0:00:01.839 ****** included: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml for /cache/rhel-6.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.028) 0:00:01.868 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.021) 0:00:01.890 ****** included: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml for /cache/rhel-6.qcow2.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.032) 0:00:01.922 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.022) 0:00:01.945 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.021) 0:00:01.967 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.021) 0:00:01.988 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "4bafddfe7badb0971135c888f25df1308b193622", "dest": "/etc/yum.repos.d/epel.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/epel.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 155, "state": "file", "uid": 0 } TASK [Install dependencies] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:8 Wednesday 03 August 2022 15:21:08 +0000 (0:00:00.654) 0:00:02.643 ****** failed: [/cache/rhel-6.qcow2.snap] (item=NetworkManager-libnm) => { "ansible_loop_var": "item", "changed": false, "item": "NetworkManager-libnm" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python2-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python2-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python3-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python3-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python2-mock) => { "ansible_loop_var": "item", "changed": false, "item": "python2-mock" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again ...ignoring META: ran handlers META: ran handlers PLAY [execute python unit tests] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:21 Wednesday 03 August 2022 15:21:11 +0000 (0:00:02.750) 0:00:05.393 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:25 Wednesday 03 August 2022 15:21:12 +0000 (0:00:00.689) 0:00:06.083 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_G_cOay", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:31 Wednesday 03 August 2022 15:21:12 +0000 (0:00:00.396) 0:00:06.479 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest__gg6o4vb.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:38 Wednesday 03 August 2022 15:21:12 +0000 (0:00:00.205) 0:00:06.684 ****** included: /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml for /cache/rhel-6.qcow2.snap TASK [set collection paths] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 15:21:12 +0000 (0:00:00.033) 0:00:06.718 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpk7x13fer", "/tmp/tmpk7x13fer" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 15:21:13 +0000 (0:00:00.048) 0:00:06.767 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "module_utils_search_path": [ "../../module_utils", "../module_utils", "/root/.ansible/plugins/module_utils", "/usr/share/ansible/plugins/module_utils" ], "modules_search_path": [ "../../library", "../library", "/root/.ansible/plugins/modules", "/usr/share/ansible/plugins/modules" ] }, "changed": false } TASK [find parent directory and path of modules] ******************************* task path: /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 15:21:13 +0000 (0:00:00.083) 0:00:06.851 ****** ok: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules; do\n if [ -f \"$dir/network_connections.py\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer; do\n if [ ! -d \"$dir\" ]; then continue; fi\n cd \"$dir\"\n for subdir in ansible_collections/*/*/plugins/modules; do\n if [ -f \"$subdir/network_connections.py\" ]; then\n echo \"$dir\"\n echo \"$subdir\"\n exit 0\n fi\n done\ndone\necho network_connections.py not found\nexit 1\n", "delta": "0:00:00.007018", "end": "2022-08-03 15:21:13.279680", "rc": 0, "start": "2022-08-03 15:21:13.272662" } STDOUT: /tmp/tmpdb8ajfhr library STDERR: + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f ../../library/network_connections.py ']' + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f ../library/network_connections.py ']' ++ dirname ../library + readlink -f .. + basename ../library + exit 0 TASK [find parent directory and path of module_utils] ************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 15:21:13 +0000 (0:00:00.227) 0:00:07.079 ****** ok: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils; do\n if [ -d \"$dir/network_lsr\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer; do\n if [ ! -d \"$dir\" ]; then continue; fi\n cd \"$dir\"\n for subdir in ansible_collections/*/*/plugins/module_utils; do\n if [ -d \"$subdir/network_lsr\" ]; then\n echo \"$dir\"\n echo \"$subdir\"\n exit 0\n fi\n done\ndone\necho network_lsr not found\nexit 1\n", "delta": "0:00:00.006728", "end": "2022-08-03 15:21:13.505204", "rc": 0, "start": "2022-08-03 15:21:13.498476" } STDOUT: /tmp/tmpdb8ajfhr module_utils STDERR: + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d ../../module_utils/network_lsr ']' + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d ../module_utils/network_lsr ']' ++ dirname ../module_utils + readlink -f .. + basename ../module_utils + exit 0 TASK [Create Tar file] ********************************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:44 Wednesday 03 August 2022 15:21:13 +0000 (0:00:00.255) 0:00:07.334 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest__gg6o4vb.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmpdb8ajfhr", "library", "-C", "/tmp/tmpdb8ajfhr", "module_utils" ], "delta": "0:00:00.004471", "end": "2022-08-03 15:21:13.746113", "rc": 0, "start": "2022-08-03 15:21:13.741642" } STDOUT: library/ library/__init__.py library/network_connections.py library/network_state.py module_utils/ module_utils/network_lsr/ module_utils/network_lsr/__init__.py module_utils/network_lsr/argument_validator.py module_utils/network_lsr/ethtool.py module_utils/network_lsr/myerror.py module_utils/network_lsr/nm/ module_utils/network_lsr/nm/__init__.py module_utils/network_lsr/nm/active_connection.py module_utils/network_lsr/nm/client.py module_utils/network_lsr/nm/connection.py module_utils/network_lsr/nm/error.py module_utils/network_lsr/nm/provider.py module_utils/network_lsr/nm_provider.py module_utils/network_lsr/utils.py TASK [Copy testrepo.tar to the remote system] ********************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:54 Wednesday 03 August 2022 15:21:13 +0000 (0:00:00.204) 0:00:07.539 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "fd7ba2e37de343982d8ba79b73017aedc9ed3238", "dest": "/tmp/lsrtest_G_cOay/lsrtest__gg6o4vb.tar", "gid": 0, "group": "root", "md5sum": "e7b531d7651dbff5235830e6760ca1fb", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659540073.819575-306741-258708632742623/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:60 Wednesday 03 August 2022 15:21:14 +0000 (0:00:00.794) 0:00:08.333 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest__gg6o4vb.tar" ], "delta": "0:00:00.004758", "end": "2022-08-03 11:21:14.084425", "rc": 0, "start": "2022-08-03 11:21:14.079667" } STDOUT: library/ library/__init__.py library/network_connections.py library/network_state.py module_utils/ module_utils/network_lsr/ module_utils/network_lsr/__init__.py module_utils/network_lsr/argument_validator.py module_utils/network_lsr/ethtool.py module_utils/network_lsr/myerror.py module_utils/network_lsr/nm/ module_utils/network_lsr/nm/__init__.py module_utils/network_lsr/nm/active_connection.py module_utils/network_lsr/nm/client.py module_utils/network_lsr/nm/connection.py module_utils/network_lsr/nm/error.py module_utils/network_lsr/nm/provider.py module_utils/network_lsr/nm_provider.py module_utils/network_lsr/utils.py TASK [Create /tmp/lsrtest_G_cOay/ansible/module_utils] ************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:65 Wednesday 03 August 2022 15:21:14 +0000 (0:00:00.285) 0:00:08.619 ****** changed: [/cache/rhel-6.qcow2.snap] => (item=/tmp/lsrtest_G_cOay/ansible) => { "ansible_loop_var": "item", "changed": true, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_G_cOay/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_G_cOay/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [/cache/rhel-6.qcow2.snap] => (item=/tmp/lsrtest_G_cOay/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_G_cOay/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_G_cOay/ansible/module_utils", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Move module_utils to ansible directory] ********************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:74 Wednesday 03 August 2022 15:21:15 +0000 (0:00:00.630) 0:00:09.250 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_G_cOay/module_utils ]; then\n mv /tmp/lsrtest_G_cOay/module_utils /tmp/lsrtest_G_cOay/ansible\nfi\n", "delta": "0:00:00.004408", "end": "2022-08-03 11:21:14.985072", "rc": 0, "start": "2022-08-03 11:21:14.980664" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:80 Wednesday 03 August 2022 15:21:15 +0000 (0:00:00.269) 0:00:09.519 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_G_cOay -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.007826", "end": "2022-08-03 11:21:15.256485", "rc": 0, "start": "2022-08-03 11:21:15.248659" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:88 Wednesday 03 August 2022 15:21:16 +0000 (0:00:00.269) 0:00:09.788 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_G_cOay/test_network_connections.py", "gid": 0, "group": "root", "md5sum": "d6ec79ab07e96a6b7e58442a6e4de723", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 188004, "src": "/root/.ansible/tmp/ansible-tmp-1659540076.0727844-306853-52368264258521/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:94 Wednesday 03 August 2022 15:21:16 +0000 (0:00:00.714) 0:00:10.503 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_G_cOay/library:/tmp/lsrtest_G_cOay/ansible/module_utils:/tmp/lsrtest_G_cOay/module_utils:/tmp/lsrtest_G_cOay" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_G_cOay] ****************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:106 Wednesday 03 August 2022 15:21:16 +0000 (0:00:00.033) 0:00:10.536 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_G_cOay" ], "delta": "0:00:00.005581", "end": "2022-08-03 11:21:16.297593", "rc": 0, "start": "2022-08-03 11:21:16.292012" } STDOUT: /tmp/lsrtest_G_cOay: total 452 drwxr-xr-x. 2 root root 4096 Aug 3 11:12 library/ -rw-------. 1 root root 256000 Aug 3 11:21 lsrtest__gg6o4vb.tar -rw-r--r--. 1 root root 0 Aug 3 11:21 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:21 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 11:21 test_network_connections.py drwx------. 4 root root 4096 Aug 3 11:21 ./ drwxrwxrwt. 5 root root 4096 Aug 3 11:21 ../ /tmp/lsrtest_G_cOay/library: total 112 -rw-r--r--. 1 root root 2211 Aug 3 11:12 network_state.py -rw-r--r--. 1 root root 101576 Aug 3 11:12 network_connections.py -rw-r--r--. 1 root root 0 Aug 3 11:12 __init__.py drwxr-xr-x. 2 root root 4096 Aug 3 11:12 ./ drwx------. 4 root root 4096 Aug 3 11:21 ../ /tmp/lsrtest_G_cOay/ansible: total 12 -rw-r--r--. 1 root root 0 Aug 3 11:21 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:21 ./ drwxr-xr-x. 3 root root 4096 Aug 3 11:21 module_utils/ drwx------. 4 root root 4096 Aug 3 11:21 ../ /tmp/lsrtest_G_cOay/ansible/module_utils: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 11:12 network_lsr/ drwxr-xr-x. 3 root root 4096 Aug 3 11:21 ../ -rw-r--r--. 1 root root 0 Aug 3 11:21 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:21 ./ /tmp/lsrtest_G_cOay/ansible/module_utils/network_lsr: total 140 -rw-r--r--. 1 root root 11351 Aug 3 11:12 utils.py -rw-r--r--. 1 root root 1594 Aug 3 11:12 nm_provider.py drwxr-xr-x. 2 root root 4096 Aug 3 11:12 nm/ -rw-r--r--. 1 root root 190 Aug 3 11:12 myerror.py -rw-r--r--. 1 root root 0 Aug 3 11:12 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 11:12 ethtool.py -rw-r--r--. 1 root root 105942 Aug 3 11:12 argument_validator.py drwxr-xr-x. 3 root root 4096 Aug 3 11:12 ./ drwxr-xr-x. 3 root root 4096 Aug 3 11:21 ../ /tmp/lsrtest_G_cOay/ansible/module_utils/network_lsr/nm: total 32 -rw-r--r--. 1 root root 3154 Aug 3 11:12 provider.py -rw-r--r--. 1 root root 343 Aug 3 11:12 __init__.py -rw-r--r--. 1 root root 175 Aug 3 11:12 error.py -rw-r--r--. 1 root root 3546 Aug 3 11:12 connection.py -rw-r--r--. 1 root root 2834 Aug 3 11:12 client.py -rw-r--r--. 1 root root 4012 Aug 3 11:12 active_connection.py drwxr-xr-x. 3 root root 4096 Aug 3 11:12 ../ drwxr-xr-x. 2 root root 4096 Aug 3 11:12 ./ TASK [debug] ******************************************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:108 Wednesday 03 August 2022 15:21:17 +0000 (0:00:00.297) 0:00:10.833 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: path /tmp/lsrtest_G_cOay/library:/tmp/lsrtest_G_cOay/ansible/module_utils:/tmp/lsrtest_G_cOay/module_utils:/tmp/lsrtest_G_cOay TASK [Check if python2 is available] ******************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:111 Wednesday 03 August 2022 15:21:17 +0000 (0:00:00.031) 0:00:10.865 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003480", "end": "2022-08-03 11:21:16.600812", "rc": 0, "start": "2022-08-03 11:21:16.597332" } STDERR: Python 2.6.6 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:117 Wednesday 03 August 2022 15:21:17 +0000 (0:00:00.268) 0:00:11.133 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_G_cOay/test_network_connections.py", "--verbose" ], "delta": "0:00:00.038937", "end": "2022-08-03 11:21:16.911640", "rc": 1, "start": "2022-08-03 11:21:16.872703" } STDERR: Traceback (most recent call last): File "/tmp/lsrtest_G_cOay/test_network_connections.py", line 15, in import mock ImportError: No module named mock MSG: non-zero return code TASK [remove local tar file] *************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:151 Wednesday 03 August 2022 15:21:17 +0000 (0:00:00.319) 0:00:11.452 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest__gg6o4vb.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_unit.yml:157 Wednesday 03 August 2022 15:21:17 +0000 (0:00:00.204) 0:00:11.657 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "path": "/tmp/lsrtest_G_cOay", "state": "absent" } PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=29 changed=14 unreachable=0 failed=1 skipped=4 rescued=0 ignored=1 Wednesday 03 August 2022 15:21:18 +0000 (0:00:00.266) 0:00:11.923 ****** =============================================================================== Install dependencies ---------------------------------------------------- 2.75s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:8 --------------------------------------- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.79s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:54 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.71s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:88 -------------------------------------- Gathering Facts --------------------------------------------------------- 0.69s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:21 -------------------------------------- Enable EPEL 6 ----------------------------------------------------------- 0.65s /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:26 ------------------------------- Create /tmp/lsrtest_G_cOay/ansible/module_utils ------------------------- 0.63s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:65 -------------------------------------- Get stats of system files ----------------------------------------------- 0.46s /tmp/tmpdb8ajfhr/tests/_backup.yml:6 ------------------------------------------ create tempdir for code to test ----------------------------------------- 0.40s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:25 -------------------------------------- Back up system files ---------------------------------------------------- 0.39s /tmp/tmpdb8ajfhr/tests/_backup.yml:19 ----------------------------------------- Run python2 unit tests -------------------------------------------------- 0.32s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:117 ------------------------------------- ls -alrtFR /tmp/lsrtest_G_cOay ------------------------------------------ 0.30s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:106 ------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.29s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:60 -------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.27s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:80 -------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.27s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:74 -------------------------------------- Check if python2 is available ------------------------------------------- 0.27s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:111 ------------------------------------- remove tempdir ---------------------------------------------------------- 0.27s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:157 ------------------------------------- find parent directory and path of module_utils -------------------------- 0.26s /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:69 --------------- find parent directory and path of modules ------------------------------- 0.23s /tmp/tmpdb8ajfhr/tests/tasks/get_modules_and_utils_paths.yml:42 --------------- get tempfile for tar ---------------------------------------------------- 0.21s /tmp/tmpdb8ajfhr/tests/tests_unit.yml:31 -------------------------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpk7x13fer executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file 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: _backup.yml ********************************************************** 1 plays in /tmp/tmptjr_ga81/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:6 Wednesday 03 August 2022 15:29:56 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659540595.6435804, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540595.643, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659540132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072091885407", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. TASK [Check if system files exist] ********************************************* task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:13 Wednesday 03 August 2022 15:29:57 +0000 (0:00:00.481) 0:00:00.499 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-6.qcow2.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': 'e', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659540132.0, 'block_size': 4096, 'inode': 260120, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744072091885407', 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'writeable': True, 'mimetype': 'text/plain', 'blocks': 8, 'xoth': False, 'islnk': False, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/resolv.conf', 'xusr': False, 'atime': 1659540595.6435804, 'isdir': False, 'ctime': 1659540595.643, 'isblk': False, 'wgrp': False, 'checksum': '2c55cc8324e731161638aa365379c1c147546a87', 'dev': 64513, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': ['extents']}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659540595.6435804, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540595.643, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659540132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072091885407", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:19 Wednesday 03 August 2022 15:29:57 +0000 (0:00:00.035) 0:00:00.534 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004821", "end": "2022-08-03 11:29:57.127872", "rc": 0, "start": "2022-08-03 11:29:57.123051" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:29:57 +0000 (0:00:00.394) 0:00:00.929 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.48s /tmp/tmptjr_ga81/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.40s /tmp/tmptjr_ga81/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmptjr_ga81/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmptjr_ga81/tests/network/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:3 Wednesday 03 August 2022 15:29:57 +0000 (0:00:00.017) 0:00:00.946 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:6 Wednesday 03 August 2022 15:29:58 +0000 (0:00:00.965) 0:00:01.912 ****** included: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml for /cache/rhel-6.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:29:58 +0000 (0:00:00.029) 0:00:01.942 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:29:58 +0000 (0:00:00.022) 0:00:01.964 ****** included: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml for /cache/rhel-6.qcow2.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:29:58 +0000 (0:00:00.032) 0:00:01.997 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:29:58 +0000 (0:00:00.022) 0:00:02.020 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:29:59 +0000 (0:00:00.021) 0:00:02.041 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:29:59 +0000 (0:00:00.021) 0:00:02.063 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "4bafddfe7badb0971135c888f25df1308b193622", "dest": "/etc/yum.repos.d/epel.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/epel.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 155, "state": "file", "uid": 0 } TASK [Install dependencies] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:8 Wednesday 03 August 2022 15:29:59 +0000 (0:00:00.644) 0:00:02.708 ****** failed: [/cache/rhel-6.qcow2.snap] (item=NetworkManager-libnm) => { "ansible_loop_var": "item", "changed": false, "item": "NetworkManager-libnm" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python2-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python2-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python3-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python3-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python-gobject-base" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again failed: [/cache/rhel-6.qcow2.snap] (item=python2-mock) => { "ansible_loop_var": "item", "changed": false, "item": "python2-mock" } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again ...ignoring META: ran handlers META: ran handlers PLAY [execute python unit tests] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:21 Wednesday 03 August 2022 15:30:02 +0000 (0:00:02.689) 0:00:05.398 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:25 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.671) 0:00:06.069 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_Za8SHt", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:31 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.377) 0:00:06.446 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_dv6_wgml.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:38 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.202) 0:00:06.649 ****** included: /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml for /cache/rhel-6.qcow2.snap TASK [set collection paths] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.033) 0:00:06.682 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpk7x13fer", "/tmp/tmpk7x13fer" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.052) 0:00:06.735 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "module_utils_search_path": [ "../../module_utils", "../module_utils", "/root/.ansible/plugins/module_utils", "/usr/share/ansible/plugins/module_utils" ], "modules_search_path": [ "../../library", "../library", "/root/.ansible/plugins/modules", "/usr/share/ansible/plugins/modules" ] }, "changed": false } TASK [find parent directory and path of modules] ******************************* task path: /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 15:30:03 +0000 (0:00:00.096) 0:00:06.831 ****** ok: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules; do\n if [ -f \"$dir/network_connections.py\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer; do\n if [ ! -d \"$dir\" ]; then continue; fi\n cd \"$dir\"\n for subdir in ansible_collections/*/*/plugins/modules; do\n if [ -f \"$subdir/network_connections.py\" ]; then\n echo \"$dir\"\n echo \"$subdir\"\n exit 0\n fi\n done\ndone\necho network_connections.py not found\nexit 1\n", "delta": "0:00:00.004151", "end": "2022-08-03 15:30:03.998860", "rc": 0, "start": "2022-08-03 15:30:03.994709" } STDOUT: /tmp/tmpk7x13fer ansible_collections/fedora/linux_system_roles/plugins/modules STDERR: + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f ../../library/network_connections.py ']' + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f ../library/network_connections.py ']' + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f /root/.ansible/plugins/modules/network_connections.py ']' + for dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f /usr/share/ansible/plugins/modules/network_connections.py ']' + for dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer + '[' '!' -d /tmp/tmpk7x13fer ']' + cd /tmp/tmpk7x13fer + for subdir in ansible_collections/*/*/plugins/modules + '[' -f ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ']' + echo /tmp/tmpk7x13fer + echo ansible_collections/fedora/linux_system_roles/plugins/modules + exit 0 TASK [find parent directory and path of module_utils] ************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 15:30:04 +0000 (0:00:00.226) 0:00:07.058 ****** ok: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils; do\n if [ -d \"$dir/network_lsr\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer; do\n if [ ! -d \"$dir\" ]; then continue; fi\n cd \"$dir\"\n for subdir in ansible_collections/*/*/plugins/module_utils; do\n if [ -d \"$subdir/network_lsr\" ]; then\n echo \"$dir\"\n echo \"$subdir\"\n exit 0\n fi\n done\ndone\necho network_lsr not found\nexit 1\n", "delta": "0:00:00.004241", "end": "2022-08-03 15:30:04.222735", "rc": 0, "start": "2022-08-03 15:30:04.218494" } STDOUT: /tmp/tmpk7x13fer ansible_collections/fedora/linux_system_roles/plugins/module_utils STDERR: + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d ../../module_utils/network_lsr ']' + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d ../module_utils/network_lsr ']' + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d /root/.ansible/plugins/module_utils/network_lsr ']' + for dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d /usr/share/ansible/plugins/module_utils/network_lsr ']' + for dir in /tmp/tmpk7x13fer /tmp/tmpk7x13fer + '[' '!' -d /tmp/tmpk7x13fer ']' + cd /tmp/tmpk7x13fer + for subdir in ansible_collections/*/*/plugins/module_utils + '[' -d ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr ']' + echo /tmp/tmpk7x13fer + echo ansible_collections/fedora/linux_system_roles/plugins/module_utils + exit 0 TASK [Create Tar file] ********************************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:44 Wednesday 03 August 2022 15:30:04 +0000 (0:00:00.223) 0:00:07.281 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_dv6_wgml.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmpk7x13fer", "ansible_collections/fedora/linux_system_roles/plugins/modules", "-C", "/tmp/tmpk7x13fer", "ansible_collections/fedora/linux_system_roles/plugins/module_utils" ], "delta": "0:00:00.005015", "end": "2022-08-03 15:30:04.436118", "rc": 0, "start": "2022-08-03 15:30:04.431103" } STDOUT: ansible_collections/fedora/linux_system_roles/plugins/modules/ ansible_collections/fedora/linux_system_roles/plugins/modules/__init__.py ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ansible_collections/fedora/linux_system_roles/plugins/modules/network_state.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/__init__.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/argument_validator.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/ethtool.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/myerror.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/__init__.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/active_connection.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/client.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/connection.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/error.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/provider.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm_provider.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/utils.py TASK [Copy testrepo.tar to the remote system] ********************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:54 Wednesday 03 August 2022 15:30:04 +0000 (0:00:00.208) 0:00:07.490 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "d3a85ff862c2b604c402ab53a92d9b45d8a28c01", "dest": "/tmp/lsrtest_Za8SHt/lsrtest_dv6_wgml.tar", "gid": 0, "group": "root", "md5sum": "18fb1302d6c61e41d5cda8471da538a3", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659540604.5381956-326024-210663351970811/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:60 Wednesday 03 August 2022 15:30:05 +0000 (0:00:00.820) 0:00:08.311 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_dv6_wgml.tar" ], "delta": "0:00:00.005152", "end": "2022-08-03 11:30:04.802713", "rc": 0, "start": "2022-08-03 11:30:04.797561" } STDOUT: ansible_collections/fedora/linux_system_roles/plugins/modules/ ansible_collections/fedora/linux_system_roles/plugins/modules/__init__.py ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ansible_collections/fedora/linux_system_roles/plugins/modules/network_state.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/__init__.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/argument_validator.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/ethtool.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/myerror.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/ ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/__init__.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/active_connection.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/client.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/connection.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/error.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm/provider.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm_provider.py ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/utils.py TASK [Create /tmp/lsrtest_Za8SHt/ansible/module_utils] ************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:65 Wednesday 03 August 2022 15:30:05 +0000 (0:00:00.289) 0:00:08.601 ****** changed: [/cache/rhel-6.qcow2.snap] => (item=/tmp/lsrtest_Za8SHt/ansible) => { "ansible_loop_var": "item", "changed": true, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_Za8SHt/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_Za8SHt/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [/cache/rhel-6.qcow2.snap] => (item=/tmp/lsrtest_Za8SHt/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_Za8SHt/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_Za8SHt/ansible/module_utils", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Move module_utils to ansible directory] ********************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:74 Wednesday 03 August 2022 15:30:06 +0000 (0:00:00.628) 0:00:09.229 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_Za8SHt/module_utils ]; then\n mv /tmp/lsrtest_Za8SHt/module_utils /tmp/lsrtest_Za8SHt/ansible\nfi\n", "delta": "0:00:00.003331", "end": "2022-08-03 11:30:05.707745", "rc": 0, "start": "2022-08-03 11:30:05.704414" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:80 Wednesday 03 August 2022 15:30:06 +0000 (0:00:00.273) 0:00:09.503 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_Za8SHt -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.013302", "end": "2022-08-03 11:30:06.008285", "rc": 0, "start": "2022-08-03 11:30:05.994983" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:88 Wednesday 03 August 2022 15:30:06 +0000 (0:00:00.302) 0:00:09.805 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_Za8SHt/test_network_connections.py", "gid": 0, "group": "root", "md5sum": "d6ec79ab07e96a6b7e58442a6e4de723", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 188004, "src": "/root/.ansible/tmp/ansible-tmp-1659540606.8305202-326136-76628567204689/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:94 Wednesday 03 August 2022 15:30:07 +0000 (0:00:00.705) 0:00:10.511 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_Za8SHt/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_Za8SHt" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_Za8SHt] ****************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:98 Wednesday 03 August 2022 15:30:07 +0000 (0:00:00.034) 0:00:10.546 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_Za8SHt" ], "delta": "0:00:00.005011", "end": "2022-08-03 11:30:07.027072", "rc": 0, "start": "2022-08-03 11:30:07.022061" } STDOUT: /tmp/lsrtest_Za8SHt: total 452 -rw-------. 1 root root 256000 Aug 3 11:30 lsrtest_dv6_wgml.tar -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ansible/ drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ansible_collections/ -rw-r--r--. 1 root root 188004 Aug 3 11:30 test_network_connections.py drwx------. 4 root root 4096 Aug 3 11:30 ./ drwxrwxrwt. 5 root root 4096 Aug 3 11:30 ../ /tmp/lsrtest_Za8SHt/ansible: total 12 drwxr-xr-x. 2 root root 4096 Aug 3 11:30 module_utils/ -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ./ drwx------. 4 root root 4096 Aug 3 11:30 ../ /tmp/lsrtest_Za8SHt/ansible/module_utils: total 8 -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ../ drwxr-xr-x. 2 root root 4096 Aug 3 11:30 ./ /tmp/lsrtest_Za8SHt/ansible_collections: total 12 -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ./ drwxr-xr-x. 3 root root 4096 Aug 3 11:30 fedora/ drwx------. 4 root root 4096 Aug 3 11:30 ../ /tmp/lsrtest_Za8SHt/ansible_collections/fedora: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ../ -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ./ drwxr-xr-x. 3 root root 4096 Aug 3 11:30 linux_system_roles/ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ../ -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ./ drwxr-xr-x. 4 root root 4096 Aug 3 11:30 plugins/ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins: total 16 drwxr-xr-x. 2 root root 4096 Aug 3 11:12 modules/ drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ../ -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 4 root root 4096 Aug 3 11:30 ./ drwxr-xr-x. 3 root root 4096 Aug 3 11:30 module_utils/ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/modules: total 112 -rw-r--r--. 1 root root 2211 Aug 3 11:12 network_state.py -rw-r--r--. 1 root root 0 Aug 3 11:12 __init__.py drwxr-xr-x. 2 root root 4096 Aug 3 11:12 ./ -rw-r--r--. 1 root root 101852 Aug 3 11:12 network_connections.py drwxr-xr-x. 4 root root 4096 Aug 3 11:30 ../ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/module_utils: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 11:12 network_lsr/ drwxr-xr-x. 4 root root 4096 Aug 3 11:30 ../ -rw-r--r--. 1 root root 0 Aug 3 11:30 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ./ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr: total 140 drwxr-xr-x. 2 root root 4096 Aug 3 11:12 nm/ -rw-r--r--. 1 root root 190 Aug 3 11:12 myerror.py -rw-r--r--. 1 root root 0 Aug 3 11:12 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 11:12 ethtool.py drwxr-xr-x. 3 root root 4096 Aug 3 11:12 ./ -rw-r--r--. 1 root root 11397 Aug 3 11:12 utils.py -rw-r--r--. 1 root root 1640 Aug 3 11:12 nm_provider.py -rw-r--r--. 1 root root 106034 Aug 3 11:12 argument_validator.py drwxr-xr-x. 3 root root 4096 Aug 3 11:30 ../ /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm: total 36 -rw-r--r--. 1 root root 175 Aug 3 11:12 error.py drwxr-xr-x. 3 root root 4096 Aug 3 11:12 ../ drwxr-xr-x. 2 root root 4096 Aug 3 11:12 ./ -rw-r--r--. 1 root root 3292 Aug 3 11:12 provider.py -rw-r--r--. 1 root root 389 Aug 3 11:12 __init__.py -rw-r--r--. 1 root root 3638 Aug 3 11:12 connection.py -rw-r--r--. 1 root root 2880 Aug 3 11:12 client.py -rw-r--r--. 1 root root 4104 Aug 3 11:12 active_connection.py TASK [debug] ******************************************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:100 Wednesday 03 August 2022 15:30:07 +0000 (0:00:00.274) 0:00:10.820 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: path /tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_Za8SHt/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_Za8SHt/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_Za8SHt TASK [Check if python2 is available] ******************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:103 Wednesday 03 August 2022 15:30:07 +0000 (0:00:00.031) 0:00:10.852 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003574", "end": "2022-08-03 11:30:07.329450", "rc": 0, "start": "2022-08-03 11:30:07.325876" } STDERR: Python 2.6.6 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:109 Wednesday 03 August 2022 15:30:08 +0000 (0:00:00.271) 0:00:11.124 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_Za8SHt/test_network_connections.py", "--verbose" ], "delta": "0:00:00.042030", "end": "2022-08-03 11:30:07.658030", "rc": 1, "start": "2022-08-03 11:30:07.616000" } STDERR: Traceback (most recent call last): File "/tmp/lsrtest_Za8SHt/test_network_connections.py", line 15, in import mock ImportError: No module named mock MSG: non-zero return code TASK [remove local tar file] *************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:143 Wednesday 03 August 2022 15:30:08 +0000 (0:00:00.336) 0:00:11.460 ****** changed: [/cache/rhel-6.qcow2.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest_dv6_wgml.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_unit.yml:149 Wednesday 03 August 2022 15:30:08 +0000 (0:00:00.214) 0:00:11.674 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "path": "/tmp/lsrtest_Za8SHt", "state": "absent" } PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=29 changed=14 unreachable=0 failed=1 skipped=4 rescued=0 ignored=1 Wednesday 03 August 2022 15:30:08 +0000 (0:00:00.268) 0:00:11.943 ****** =============================================================================== Install dependencies ---------------------------------------------------- 2.69s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:8 ------------------------------- Gathering Facts --------------------------------------------------------- 0.97s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.82s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:54 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.71s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:88 ------------------------------ Gathering Facts --------------------------------------------------------- 0.67s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:21 ------------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.64s /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:26 ----------------------- Create /tmp/lsrtest_Za8SHt/ansible/module_utils ------------------------- 0.63s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:65 ------------------------------ Get stats of system files ----------------------------------------------- 0.48s /tmp/tmptjr_ga81/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.40s /tmp/tmptjr_ga81/tests/network/_backup.yml:19 --------------------------------- create tempdir for code to test ----------------------------------------- 0.38s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:25 ------------------------------ Run python2 unit tests -------------------------------------------------- 0.34s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:109 ----------------------------- Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:80 ------------------------------ Untar testrepo.tar ------------------------------------------------------ 0.29s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:60 ------------------------------ ls -alrtFR /tmp/lsrtest_Za8SHt ------------------------------------------ 0.27s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:98 ------------------------------ Move module_utils to ansible directory ---------------------------------- 0.27s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:74 ------------------------------ Check if python2 is available ------------------------------------------- 0.27s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:103 ----------------------------- remove tempdir ---------------------------------------------------------- 0.27s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:149 ----------------------------- find parent directory and path of modules ------------------------------- 0.23s /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:42 ------- find parent directory and path of module_utils -------------------------- 0.22s /tmp/tmptjr_ga81/tests/network/tasks/get_modules_and_utils_paths.yml:69 ------- remove local tar file --------------------------------------------------- 0.21s /tmp/tmptjr_ga81/tests/network/tests_unit.yml:143 -----------------------------