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/tmpb95mhbnh 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/tmp2w2t0usz/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp2w2t0usz/tests/_backup.yml:6 Wednesday 03 August 2022 16:54:30 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-6.qcow2c.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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659545668.71674, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659545668.716, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545178.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "1928927856", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. 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/tmp2w2t0usz/tests/_backup.yml:13 Wednesday 03 August 2022 16:54:31 +0000 (0:00:00.484) 0:00:00.503 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-6.qcow2c.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': 1659545178.0, 'block_size': 4096, 'inode': 25, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '1928927856', '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': 1659545668.71674, 'isdir': False, 'ctime': 1659545668.716, '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": 1659545668.71674, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659545668.716, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545178.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "1928927856", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp2w2t0usz/tests/_backup.yml:19 Wednesday 03 August 2022 16:54:31 +0000 (0:00:00.036) 0:00:00.540 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004685", "end": "2022-08-03 16:54:30.264765", "rc": 0, "start": "2022-08-03 16:54:30.260080" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:54:31 +0000 (0:00:00.417) 0:00:00.957 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.48s /tmp/tmp2w2t0usz/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.42s /tmp/tmp2w2t0usz/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp2w2t0usz/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmp2w2t0usz/tests/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:3 Wednesday 03 August 2022 16:54:31 +0000 (0:00:00.017) 0:00:00.975 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:6 Wednesday 03 August 2022 16:54:32 +0000 (0:00:01.031) 0:00:02.007 ****** included: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml for /cache/centos-6.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:54:32 +0000 (0:00:00.029) 0:00:02.037 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "checksum": "b0aa488e4736bbd208461d247c4869d2ba0c95cd", "dest": "/etc/yum.repos.d/CentOS-Base.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/CentOS-Base.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 480, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.671) 0:00:02.708 ****** included: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml for /cache/centos-6.qcow2c.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.032) 0:00:02.741 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.021) 0:00:02.762 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.023) 0:00:02.785 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.022) 0:00:02.808 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/tests_unit.yml:8 Wednesday 03 August 2022 16:54:33 +0000 (0:00:00.522) 0:00:03.331 ****** failed: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/tmp2w2t0usz/tests/tests_unit.yml:21 Wednesday 03 August 2022 16:54:37 +0000 (0:00:03.249) 0:00:06.581 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:25 Wednesday 03 August 2022 16:54:37 +0000 (0:00:00.725) 0:00:07.306 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_sTdmPn", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:31 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.430) 0:00:07.737 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_p9kiyxqa.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:38 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.203) 0:00:07.940 ****** included: /tmp/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml for /cache/centos-6.qcow2c.snap TASK [set collection paths] **************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.032) 0:00:07.973 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpb95mhbnh", "/tmp/tmpb95mhbnh" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.071) 0:00:08.044 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.084) 0:00:08.128 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh /tmp/tmpb95mhbnh; 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.007902", "end": "2022-08-03 16:54:38.817752", "rc": 0, "start": "2022-08-03 16:54:38.809850" } STDOUT: /tmp/tmp2w2t0usz 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/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 16:54:38 +0000 (0:00:00.222) 0:00:08.351 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh /tmp/tmpb95mhbnh; 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.008025", "end": "2022-08-03 16:54:39.047034", "rc": 0, "start": "2022-08-03 16:54:39.039009" } STDOUT: /tmp/tmp2w2t0usz 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/tmp2w2t0usz/tests/tests_unit.yml:44 Wednesday 03 August 2022 16:54:39 +0000 (0:00:00.233) 0:00:08.584 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_p9kiyxqa.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmp2w2t0usz", "library", "-C", "/tmp/tmp2w2t0usz", "module_utils" ], "delta": "0:00:00.005591", "end": "2022-08-03 16:54:39.264817", "rc": 0, "start": "2022-08-03 16:54:39.259226" } 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/tmp2w2t0usz/tests/tests_unit.yml:54 Wednesday 03 August 2022 16:54:39 +0000 (0:00:00.213) 0:00:08.798 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "checksum": "eb9178f5d410e414e9c0edd9ca8c023d8255140a", "dest": "/tmp/lsrtest_sTdmPn/lsrtest_p9kiyxqa.tar", "gid": 0, "group": "root", "md5sum": "dac63942713aff6225192d9bfbb083d3", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659545679.349279-147371-42251822191596/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:60 Wednesday 03 August 2022 16:54:40 +0000 (0:00:00.867) 0:00:09.665 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_p9kiyxqa.tar" ], "delta": "0:00:00.005648", "end": "2022-08-03 16:54:39.276151", "rc": 0, "start": "2022-08-03 16:54:39.270503" } 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_sTdmPn/ansible/module_utils] ************************* task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:65 Wednesday 03 August 2022 16:54:40 +0000 (0:00:00.299) 0:00:09.965 ****** changed: [/cache/centos-6.qcow2c.snap] => (item=/tmp/lsrtest_sTdmPn/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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_sTdmPn/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_sTdmPn/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [/cache/centos-6.qcow2c.snap] => (item=/tmp/lsrtest_sTdmPn/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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_sTdmPn/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_sTdmPn/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/tmp2w2t0usz/tests/tests_unit.yml:74 Wednesday 03 August 2022 16:54:41 +0000 (0:00:00.669) 0:00:10.634 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_sTdmPn/module_utils ]; then\n mv /tmp/lsrtest_sTdmPn/module_utils /tmp/lsrtest_sTdmPn/ansible\nfi\n", "delta": "0:00:00.005259", "end": "2022-08-03 16:54:40.226141", "rc": 0, "start": "2022-08-03 16:54:40.220882" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:80 Wednesday 03 August 2022 16:54:41 +0000 (0:00:00.283) 0:00:10.918 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_sTdmPn -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.008622", "end": "2022-08-03 16:54:40.523677", "rc": 0, "start": "2022-08-03 16:54:40.515055" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:88 Wednesday 03 August 2022 16:54:41 +0000 (0:00:00.296) 0:00:11.215 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_sTdmPn/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-1659545681.763757-147483-103795320250124/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:94 Wednesday 03 August 2022 16:54:42 +0000 (0:00:00.753) 0:00:11.968 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_sTdmPn/library:/tmp/lsrtest_sTdmPn/ansible/module_utils:/tmp/lsrtest_sTdmPn/module_utils:/tmp/lsrtest_sTdmPn" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_sTdmPn] ****************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:106 Wednesday 03 August 2022 16:54:42 +0000 (0:00:00.034) 0:00:12.002 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_sTdmPn" ], "delta": "0:00:00.006361", "end": "2022-08-03 16:54:41.602377", "rc": 0, "start": "2022-08-03 16:54:41.596016" } STDOUT: /tmp/lsrtest_sTdmPn: total 452 drwxr-xr-x. 2 root root 4096 Aug 3 16:44 library/ -rw-------. 1 root root 256000 Aug 3 16:54 lsrtest_p9kiyxqa.tar -rw-r--r--. 1 root root 0 Aug 3 16:54 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 16:54 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 16:54 test_network_connections.py drwx------. 4 root root 4096 Aug 3 16:54 ./ drwxrwxrwt. 5 root root 4096 Aug 3 16:54 ../ /tmp/lsrtest_sTdmPn/library: total 112 -rw-r--r--. 1 root root 2211 Aug 3 16:44 network_state.py -rw-r--r--. 1 root root 101576 Aug 3 16:44 network_connections.py -rw-r--r--. 1 root root 0 Aug 3 16:44 __init__.py drwxr-xr-x. 2 root root 4096 Aug 3 16:44 ./ drwx------. 4 root root 4096 Aug 3 16:54 ../ /tmp/lsrtest_sTdmPn/ansible: total 12 -rw-r--r--. 1 root root 0 Aug 3 16:54 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 16:54 ./ drwxr-xr-x. 3 root root 4096 Aug 3 16:54 module_utils/ drwx------. 4 root root 4096 Aug 3 16:54 ../ /tmp/lsrtest_sTdmPn/ansible/module_utils: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 16:44 network_lsr/ drwxr-xr-x. 3 root root 4096 Aug 3 16:54 ../ -rw-r--r--. 1 root root 0 Aug 3 16:54 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 16:54 ./ /tmp/lsrtest_sTdmPn/ansible/module_utils/network_lsr: total 140 -rw-r--r--. 1 root root 11351 Aug 3 16:44 utils.py -rw-r--r--. 1 root root 1594 Aug 3 16:44 nm_provider.py drwxr-xr-x. 2 root root 4096 Aug 3 16:44 nm/ -rw-r--r--. 1 root root 190 Aug 3 16:44 myerror.py -rw-r--r--. 1 root root 0 Aug 3 16:44 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 16:44 ethtool.py -rw-r--r--. 1 root root 105942 Aug 3 16:44 argument_validator.py drwxr-xr-x. 3 root root 4096 Aug 3 16:44 ./ drwxr-xr-x. 3 root root 4096 Aug 3 16:54 ../ /tmp/lsrtest_sTdmPn/ansible/module_utils/network_lsr/nm: total 32 -rw-r--r--. 1 root root 3154 Aug 3 16:44 provider.py -rw-r--r--. 1 root root 343 Aug 3 16:44 __init__.py -rw-r--r--. 1 root root 175 Aug 3 16:44 error.py -rw-r--r--. 1 root root 3546 Aug 3 16:44 connection.py -rw-r--r--. 1 root root 2834 Aug 3 16:44 client.py -rw-r--r--. 1 root root 4012 Aug 3 16:44 active_connection.py drwxr-xr-x. 3 root root 4096 Aug 3 16:44 ../ drwxr-xr-x. 2 root root 4096 Aug 3 16:44 ./ TASK [debug] ******************************************************************* task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:108 Wednesday 03 August 2022 16:54:42 +0000 (0:00:00.295) 0:00:12.298 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: path /tmp/lsrtest_sTdmPn/library:/tmp/lsrtest_sTdmPn/ansible/module_utils:/tmp/lsrtest_sTdmPn/module_utils:/tmp/lsrtest_sTdmPn TASK [Check if python2 is available] ******************************************* task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:111 Wednesday 03 August 2022 16:54:42 +0000 (0:00:00.032) 0:00:12.330 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.004521", "end": "2022-08-03 16:54:41.928023", "rc": 0, "start": "2022-08-03 16:54:41.923502" } STDERR: Python 2.6.6 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:117 Wednesday 03 August 2022 16:54:43 +0000 (0:00:00.288) 0:00:12.619 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_sTdmPn/test_network_connections.py", "--verbose" ], "delta": "0:00:00.040708", "end": "2022-08-03 16:54:42.265225", "rc": 1, "start": "2022-08-03 16:54:42.224517" } STDERR: Traceback (most recent call last): File "/tmp/lsrtest_sTdmPn/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/tmp2w2t0usz/tests/tests_unit.yml:151 Wednesday 03 August 2022 16:54:43 +0000 (0:00:00.342) 0:00:12.961 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest_p9kiyxqa.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_unit.yml:157 Wednesday 03 August 2022 16:54:43 +0000 (0:00:00.214) 0:00:13.176 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "path": "/tmp/lsrtest_sTdmPn", "state": "absent" } PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=30 changed=14 unreachable=0 failed=1 skipped=3 rescued=0 ignored=1 Wednesday 03 August 2022 16:54:43 +0000 (0:00:00.271) 0:00:13.448 ****** =============================================================================== Install dependencies ---------------------------------------------------- 3.25s /tmp/tmp2w2t0usz/tests/tests_unit.yml:8 --------------------------------------- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp2w2t0usz/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.87s /tmp/tmp2w2t0usz/tests/tests_unit.yml:54 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.75s /tmp/tmp2w2t0usz/tests/tests_unit.yml:88 -------------------------------------- Gathering Facts --------------------------------------------------------- 0.73s /tmp/tmp2w2t0usz/tests/tests_unit.yml:21 -------------------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.67s /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:2 ------------------------------ Create /tmp/lsrtest_sTdmPn/ansible/module_utils ------------------------- 0.67s /tmp/tmp2w2t0usz/tests/tests_unit.yml:65 -------------------------------------- Enable EPEL 6 ----------------------------------------------------------- 0.52s /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:26 ------------------------------- Get stats of system files ----------------------------------------------- 0.48s /tmp/tmp2w2t0usz/tests/_backup.yml:6 ------------------------------------------ create tempdir for code to test ----------------------------------------- 0.43s /tmp/tmp2w2t0usz/tests/tests_unit.yml:25 -------------------------------------- Back up system files ---------------------------------------------------- 0.42s /tmp/tmp2w2t0usz/tests/_backup.yml:19 ----------------------------------------- Run python2 unit tests -------------------------------------------------- 0.34s /tmp/tmp2w2t0usz/tests/tests_unit.yml:117 ------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.30s /tmp/tmp2w2t0usz/tests/tests_unit.yml:60 -------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmp2w2t0usz/tests/tests_unit.yml:80 -------------------------------------- ls -alrtFR /tmp/lsrtest_sTdmPn ------------------------------------------ 0.30s /tmp/tmp2w2t0usz/tests/tests_unit.yml:106 ------------------------------------- Check if python2 is available ------------------------------------------- 0.29s /tmp/tmp2w2t0usz/tests/tests_unit.yml:111 ------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.28s /tmp/tmp2w2t0usz/tests/tests_unit.yml:74 -------------------------------------- remove tempdir ---------------------------------------------------------- 0.27s /tmp/tmp2w2t0usz/tests/tests_unit.yml:157 ------------------------------------- find parent directory and path of module_utils -------------------------- 0.23s /tmp/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:69 --------------- find parent directory and path of modules ------------------------------- 0.22s /tmp/tmp2w2t0usz/tests/tasks/get_modules_and_utils_paths.yml:42 --------------- 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/tmpb95mhbnh 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/tmpa_fzm6o2/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:04:00 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-6.qcow2c.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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659546238.844988, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659546238.845, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545746.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744073481212975", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. 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/tmpa_fzm6o2/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:04:01 +0000 (0:00:00.493) 0:00:00.511 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-6.qcow2c.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': 1659545746.0, 'block_size': 4096, 'inode': 25, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744073481212975', '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': 1659546238.844988, 'isdir': False, 'ctime': 1659546238.845, '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": 1659546238.844988, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659546238.845, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545746.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744073481212975", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:04:01 +0000 (0:00:00.034) 0:00:00.545 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004445", "end": "2022-08-03 17:04:00.370707", "rc": 0, "start": "2022-08-03 17:04:00.366262" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:04:01 +0000 (0:00:00.402) 0:00:00.948 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.49s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.40s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:3 Wednesday 03 August 2022 17:04:01 +0000 (0:00:00.017) 0:00:00.965 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:6 Wednesday 03 August 2022 17:04:02 +0000 (0:00:01.002) 0:00:01.967 ****** included: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml for /cache/centos-6.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:04:02 +0000 (0:00:00.029) 0:00:01.997 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "checksum": "b0aa488e4736bbd208461d247c4869d2ba0c95cd", "dest": "/etc/yum.repos.d/CentOS-Base.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/CentOS-Base.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 480, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.647) 0:00:02.644 ****** included: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml for /cache/centos-6.qcow2c.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.031) 0:00:02.676 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.023) 0:00:02.699 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.022) 0:00:02.722 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.022) 0:00:02.744 ****** ok: [/cache/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/tests_unit.yml:8 Wednesday 03 August 2022 17:04:03 +0000 (0:00:00.519) 0:00:03.264 ****** failed: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/tests_unit.yml:21 Wednesday 03 August 2022 17:04:07 +0000 (0:00:03.200) 0:00:06.465 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:25 Wednesday 03 August 2022 17:04:07 +0000 (0:00:00.735) 0:00:07.201 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_N4GcFG", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:31 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.406) 0:00:07.607 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_owna_djm.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:38 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.200) 0:00:07.808 ****** included: /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml for /cache/centos-6.qcow2c.snap TASK [set collection paths] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.032) 0:00:07.840 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpb95mhbnh", "/tmp/tmpb95mhbnh" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.074) 0:00:07.915 ****** ok: [/cache/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.082) 0:00:07.998 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh /tmp/tmpb95mhbnh; 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.004363", "end": "2022-08-03 17:04:08.770536", "rc": 0, "start": "2022-08-03 17:04:08.766173" } STDOUT: /tmp/tmpb95mhbnh 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/tmpb95mhbnh /tmp/tmpb95mhbnh + '[' '!' -d /tmp/tmpb95mhbnh ']' + cd /tmp/tmpb95mhbnh + for subdir in ansible_collections/*/*/plugins/modules + '[' -f ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ']' + echo /tmp/tmpb95mhbnh + echo ansible_collections/fedora/linux_system_roles/plugins/modules + exit 0 TASK [find parent directory and path of module_utils] ************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 17:04:08 +0000 (0:00:00.230) 0:00:08.228 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh /tmp/tmpb95mhbnh; 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.004506", "end": "2022-08-03 17:04:09.026038", "rc": 0, "start": "2022-08-03 17:04:09.021532" } STDOUT: /tmp/tmpb95mhbnh 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/tmpb95mhbnh /tmp/tmpb95mhbnh + '[' '!' -d /tmp/tmpb95mhbnh ']' + cd /tmp/tmpb95mhbnh + for subdir in ansible_collections/*/*/plugins/module_utils + '[' -d ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr ']' + echo /tmp/tmpb95mhbnh + echo ansible_collections/fedora/linux_system_roles/plugins/module_utils + exit 0 TASK [Create Tar file] ********************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:44 Wednesday 03 August 2022 17:04:09 +0000 (0:00:00.255) 0:00:08.484 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_owna_djm.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmpb95mhbnh", "ansible_collections/fedora/linux_system_roles/plugins/modules", "-C", "/tmp/tmpb95mhbnh", "ansible_collections/fedora/linux_system_roles/plugins/module_utils" ], "delta": "0:00:00.005313", "end": "2022-08-03 17:04:09.245047", "rc": 0, "start": "2022-08-03 17:04:09.239734" } 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/tmpa_fzm6o2/tests/network/tests_unit.yml:54 Wednesday 03 August 2022 17:04:09 +0000 (0:00:00.215) 0:00:08.699 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "checksum": "15294a10d670b38842764d98baf3567604798af5", "dest": "/tmp/lsrtest_N4GcFG/lsrtest_owna_djm.tar", "gid": 0, "group": "root", "md5sum": "e904d57fcf650263a61f4b406797f8c1", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659546249.3263311-167751-142163083269760/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:60 Wednesday 03 August 2022 17:04:10 +0000 (0:00:00.834) 0:00:09.533 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_owna_djm.tar" ], "delta": "0:00:00.005631", "end": "2022-08-03 17:04:09.261982", "rc": 0, "start": "2022-08-03 17:04:09.256351" } 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_N4GcFG/ansible/module_utils] ************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:65 Wednesday 03 August 2022 17:04:10 +0000 (0:00:00.304) 0:00:09.837 ****** changed: [/cache/centos-6.qcow2c.snap] => (item=/tmp/lsrtest_N4GcFG/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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_N4GcFG/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_N4GcFG/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [/cache/centos-6.qcow2c.snap] => (item=/tmp/lsrtest_N4GcFG/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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "gid": 0, "group": "root", "item": "/tmp/lsrtest_N4GcFG/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_N4GcFG/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/tmpa_fzm6o2/tests/network/tests_unit.yml:74 Wednesday 03 August 2022 17:04:11 +0000 (0:00:00.667) 0:00:10.505 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_N4GcFG/module_utils ]; then\n mv /tmp/lsrtest_N4GcFG/module_utils /tmp/lsrtest_N4GcFG/ansible\nfi\n", "delta": "0:00:00.004041", "end": "2022-08-03 17:04:10.217228", "rc": 0, "start": "2022-08-03 17:04:10.213187" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:80 Wednesday 03 August 2022 17:04:11 +0000 (0:00:00.286) 0:00:10.792 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_N4GcFG -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.016421", "end": "2022-08-03 17:04:10.520866", "rc": 0, "start": "2022-08-03 17:04:10.504445" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:88 Wednesday 03 August 2022 17:04:11 +0000 (0:00:00.306) 0:00:11.098 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_N4GcFG/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-1659546251.7283018-167863-223557518022680/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:94 Wednesday 03 August 2022 17:04:12 +0000 (0:00:00.760) 0:00:11.858 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_N4GcFG/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_N4GcFG" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_N4GcFG] ****************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:98 Wednesday 03 August 2022 17:04:12 +0000 (0:00:00.033) 0:00:11.891 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_N4GcFG" ], "delta": "0:00:00.005744", "end": "2022-08-03 17:04:11.598969", "rc": 0, "start": "2022-08-03 17:04:11.593225" } STDOUT: /tmp/lsrtest_N4GcFG: total 452 -rw-------. 1 root root 256000 Aug 3 17:04 lsrtest_owna_djm.tar -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ansible_collections/ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 17:04 test_network_connections.py drwx------. 4 root root 4096 Aug 3 17:04 ./ drwxrwxrwt. 5 root root 4096 Aug 3 17:04 ../ /tmp/lsrtest_N4GcFG/ansible_collections: total 12 -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 fedora/ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ./ drwx------. 4 root root 4096 Aug 3 17:04 ../ /tmp/lsrtest_N4GcFG/ansible_collections/fedora: total 12 -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ../ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ./ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 linux_system_roles/ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ../ -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ./ drwxr-xr-x. 4 root root 4096 Aug 3 17:04 plugins/ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins: total 16 drwxr-xr-x. 2 root root 4096 Aug 3 16:44 modules/ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ../ -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 4 root root 4096 Aug 3 17:04 ./ drwxr-xr-x. 3 root root 4096 Aug 3 17:04 module_utils/ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/modules: total 112 -rw-r--r--. 1 root root 2211 Aug 3 16:44 network_state.py -rw-r--r--. 1 root root 0 Aug 3 16:44 __init__.py drwxr-xr-x. 2 root root 4096 Aug 3 16:44 ./ -rw-r--r--. 1 root root 101852 Aug 3 16:44 network_connections.py drwxr-xr-x. 4 root root 4096 Aug 3 17:04 ../ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/module_utils: total 12 drwxr-xr-x. 3 root root 4096 Aug 3 16:44 network_lsr/ drwxr-xr-x. 4 root root 4096 Aug 3 17:04 ../ -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ./ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr: total 140 drwxr-xr-x. 2 root root 4096 Aug 3 16:44 nm/ -rw-r--r--. 1 root root 190 Aug 3 16:44 myerror.py -rw-r--r--. 1 root root 0 Aug 3 16:44 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 16:44 ethtool.py drwxr-xr-x. 3 root root 4096 Aug 3 16:44 ./ -rw-r--r--. 1 root root 11397 Aug 3 16:44 utils.py -rw-r--r--. 1 root root 1640 Aug 3 16:44 nm_provider.py -rw-r--r--. 1 root root 106034 Aug 3 16:44 argument_validator.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ../ /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm: total 36 -rw-r--r--. 1 root root 175 Aug 3 16:44 error.py drwxr-xr-x. 3 root root 4096 Aug 3 16:44 ../ drwxr-xr-x. 2 root root 4096 Aug 3 16:44 ./ -rw-r--r--. 1 root root 3292 Aug 3 16:44 provider.py -rw-r--r--. 1 root root 389 Aug 3 16:44 __init__.py -rw-r--r--. 1 root root 3638 Aug 3 16:44 connection.py -rw-r--r--. 1 root root 2880 Aug 3 16:44 client.py -rw-r--r--. 1 root root 4104 Aug 3 16:44 active_connection.py /tmp/lsrtest_N4GcFG/ansible: total 12 -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ./ drwxr-xr-x. 2 root root 4096 Aug 3 17:04 module_utils/ drwx------. 4 root root 4096 Aug 3 17:04 ../ /tmp/lsrtest_N4GcFG/ansible/module_utils: total 8 drwxr-xr-x. 3 root root 4096 Aug 3 17:04 ../ -rw-r--r--. 1 root root 0 Aug 3 17:04 __init__.py drwxr-xr-x. 2 root root 4096 Aug 3 17:04 ./ TASK [debug] ******************************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:100 Wednesday 03 August 2022 17:04:12 +0000 (0:00:00.280) 0:00:12.172 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: path /tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_N4GcFG/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_N4GcFG/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_N4GcFG TASK [Check if python2 is available] ******************************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:103 Wednesday 03 August 2022 17:04:12 +0000 (0:00:00.030) 0:00:12.203 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.005407", "end": "2022-08-03 17:04:11.913473", "rc": 0, "start": "2022-08-03 17:04:11.908066" } STDERR: Python 2.6.6 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:109 Wednesday 03 August 2022 17:04:13 +0000 (0:00:00.285) 0:00:12.488 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_N4GcFG/test_network_connections.py", "--verbose" ], "delta": "0:00:00.044261", "end": "2022-08-03 17:04:12.250541", "rc": 1, "start": "2022-08-03 17:04:12.206280" } STDERR: Traceback (most recent call last): File "/tmp/lsrtest_N4GcFG/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/tmpa_fzm6o2/tests/network/tests_unit.yml:143 Wednesday 03 August 2022 17:04:13 +0000 (0:00:00.342) 0:00:12.831 ****** changed: [/cache/centos-6.qcow2c.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest_owna_djm.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:149 Wednesday 03 August 2022 17:04:13 +0000 (0:00:00.216) 0:00:13.047 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "path": "/tmp/lsrtest_N4GcFG", "state": "absent" } PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=30 changed=14 unreachable=0 failed=1 skipped=3 rescued=0 ignored=1 Wednesday 03 August 2022 17:04:13 +0000 (0:00:00.286) 0:00:13.334 ****** =============================================================================== Install dependencies ---------------------------------------------------- 3.20s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:8 ------------------------------- Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.83s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:54 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.76s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:88 ------------------------------ Gathering Facts --------------------------------------------------------- 0.74s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:21 ------------------------------ Create /tmp/lsrtest_N4GcFG/ansible/module_utils ------------------------- 0.67s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:65 ------------------------------ Fix CentOS6 Base repo --------------------------------------------------- 0.65s /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Enable EPEL 6 ----------------------------------------------------------- 0.52s /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:26 ----------------------- Get stats of system files ----------------------------------------------- 0.49s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 ---------------------------------- create tempdir for code to test ----------------------------------------- 0.41s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:25 ------------------------------ Back up system files ---------------------------------------------------- 0.40s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 --------------------------------- Run python2 unit tests -------------------------------------------------- 0.34s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:109 ----------------------------- Fake out python module directories, primarily for python2 --------------- 0.31s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:80 ------------------------------ Untar testrepo.tar ------------------------------------------------------ 0.30s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:60 ------------------------------ Move module_utils to ansible directory ---------------------------------- 0.29s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:74 ------------------------------ remove tempdir ---------------------------------------------------------- 0.29s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:149 ----------------------------- Check if python2 is available ------------------------------------------- 0.29s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:103 ----------------------------- ls -alrtFR /tmp/lsrtest_N4GcFG ------------------------------------------ 0.28s /tmp/tmpa_fzm6o2/tests/network/tests_unit.yml:98 ------------------------------ find parent directory and path of module_utils -------------------------- 0.26s /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:69 ------- find parent directory and path of modules ------------------------------- 0.23s /tmp/tmpa_fzm6o2/tests/network/tasks/get_modules_and_utils_paths.yml:42 -------