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/tmp0fvd1p7_ 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: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 03 August 2022 16:55:17 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:55:19 +0000 (0:00:01.297) 0:00:01.315 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.30s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpq0_9gvwx/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpq0_9gvwx/tests/_backup.yml:6 Wednesday 03 August 2022 16:55:19 +0000 (0:00:00.014) 0:00:01.329 ****** ok: [/cache/rhel-7.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659545717.4378247, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659545717.4378247, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 77, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659544375.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "624082614", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpq0_9gvwx/tests/_backup.yml:13 Wednesday 03 August 2022 16:55:19 +0000 (0:00:00.415) 0:00:01.745 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-7.qcow2] => (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': '', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659544375.0, 'block_size': 4096, 'inode': 77, 'isgid': False, 'size': 90, 'executable': False, 'isuid': False, 'readable': True, 'version': '624082614', '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': 1659545717.4378247, 'isdir': False, 'ctime': 1659545717.4378247, 'isblk': False, 'wgrp': False, 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'dev': 64769, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': []}, 'changed': False, '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_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": 1659545717.4378247, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659545717.4378247, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 77, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659544375.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "624082614", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/_backup.yml:19 Wednesday 03 August 2022 16:55:19 +0000 (0:00:00.033) 0:00:01.779 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004377", "end": "2022-08-03 12:55:20.172257", "rc": 0, "start": "2022-08-03 12:55:20.167880" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:55:19 +0000 (0:00:00.380) 0:00:02.159 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.30s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.42s /tmp/tmpq0_9gvwx/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.38s /tmp/tmpq0_9gvwx/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpq0_9gvwx/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmpq0_9gvwx/tests/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:3 Wednesday 03 August 2022 16:55:19 +0000 (0:00:00.016) 0:00:02.176 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:6 Wednesday 03 August 2022 16:55:20 +0000 (0:00:00.960) 0:00:03.137 ****** included: /tmp/tmpq0_9gvwx/tests/tasks/el_repo_setup.yml for /cache/rhel-7.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:55:20 +0000 (0:00:00.025) 0:00:03.162 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:55:20 +0000 (0:00:00.018) 0:00:03.180 ****** included: /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml for /cache/rhel-7.qcow2 TASK [Create EPEL 7] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:55:20 +0000 (0:00:00.026) 0:00:03.207 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:55:21 +0000 (0:00:00.280) 0:00:03.487 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.182770", "end": "2022-08-03 12:55:21.969338", "rc": 0, "start": "2022-08-03 12:55:21.786568" } STDOUT: ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7Server baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7Server/epel check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = True enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7Server/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7Server/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7Server/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=$infra&content=$contentdir minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Extra Packages for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7Server/epel pkgdir = /var/cache/yum/x86_64/7Server/epel/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = epel/x86_64 ui_repoid_vars = releasever, basearch username = TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:55:21 +0000 (0:00:00.468) 0:00:03.955 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:55:21 +0000 (0:00:00.022) 0:00:03.977 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install dependencies] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:8 Wednesday 03 August 2022 16:55:21 +0000 (0:00:00.019) 0:00:03.997 ****** ok: [/cache/rhel-7.qcow2] => (item=NetworkManager-libnm) => { "ansible_loop_var": "item", "changed": false, "item": "NetworkManager-libnm", "rc": 0, "results": [ "1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64 providing NetworkManager-libnm is already installed" ] } failed: [/cache/rhel-7.qcow2] (item=python2-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python2-gobject-base", "rc": 126, "results": [ "No package matching 'python2-gobject-base' found available, installed or updated" ] } MSG: No package matching 'python2-gobject-base' found available, installed or updated failed: [/cache/rhel-7.qcow2] (item=python3-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python3-gobject-base", "rc": 126, "results": [ "No package matching 'python3-gobject-base' found available, installed or updated" ] } MSG: No package matching 'python3-gobject-base' found available, installed or updated ok: [/cache/rhel-7.qcow2] => (item=python-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python-gobject-base", "rc": 0, "results": [ "python-gobject-base-3.22.0-1.el7_4.1.x86_64 providing python-gobject-base is already installed" ] } changed: [/cache/rhel-7.qcow2] => (item=python2-mock) => { "ansible_loop_var": "item", "changed": true, "changes": { "installed": [ "python2-mock" ] }, "item": "python2-mock", "rc": 0, "results": [ "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package python2-mock.noarch 0:1.0.1-10.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-mock noarch 1.0.1-10.el7 epel 92 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 92 k\nInstalled size: 365 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-mock-1.0.1-10.el7.noarch 1/1 \n Verifying : python2-mock-1.0.1-10.el7.noarch 1/1 \n\nInstalled:\n python2-mock.noarch 0:1.0.1-10.el7 \n\nComplete!\n" ] } ...ignoring META: ran handlers META: ran handlers PLAY [execute python unit tests] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:21 Wednesday 03 August 2022 16:55:26 +0000 (0:00:04.363) 0:00:08.361 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:25 Wednesday 03 August 2022 16:55:26 +0000 (0:00:00.714) 0:00:09.075 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_qHU4LC", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:31 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.403) 0:00:09.479 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_csw3f0jl.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:38 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.187) 0:00:09.666 ****** included: /tmp/tmpq0_9gvwx/tests/tasks/get_modules_and_utils_paths.yml for /cache/rhel-7.qcow2 TASK [set collection paths] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.029) 0:00:09.696 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "collection_paths": [ "/tmp/tmp0fvd1p7_", "/tmp/tmp0fvd1p7_" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmpq0_9gvwx/tests/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.046) 0:00:09.743 ****** ok: [/cache/rhel-7.qcow2] => { "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/tmpq0_9gvwx/tests/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.053) 0:00:09.796 ****** ok: [/cache/rhel-7.qcow2 -> 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_; 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.006977", "end": "2022-08-03 16:55:27.665484", "rc": 0, "start": "2022-08-03 16:55:27.658507" } STDOUT: /tmp/tmpq0_9gvwx 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/tmpq0_9gvwx/tests/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.217) 0:00:10.013 ****** ok: [/cache/rhel-7.qcow2 -> 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_; 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.006854", "end": "2022-08-03 16:55:27.883948", "rc": 0, "start": "2022-08-03 16:55:27.877094" } STDOUT: /tmp/tmpq0_9gvwx 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/tmpq0_9gvwx/tests/tests_unit.yml:44 Wednesday 03 August 2022 16:55:27 +0000 (0:00:00.218) 0:00:10.232 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_csw3f0jl.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmpq0_9gvwx", "library", "-C", "/tmp/tmpq0_9gvwx", "module_utils" ], "delta": "0:00:00.004687", "end": "2022-08-03 16:55:28.087315", "rc": 0, "start": "2022-08-03 16:55:28.082628" } 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/tmpq0_9gvwx/tests/tests_unit.yml:54 Wednesday 03 August 2022 16:55:28 +0000 (0:00:00.198) 0:00:10.430 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "7c1887fce64520fbc6f9f86a14d0b61c9ec39f1e", "dest": "/tmp/lsrtest_qHU4LC/lsrtest_csw3f0jl.tar", "gid": 0, "group": "root", "md5sum": "cf08eebf87910329c71195ea76394495", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659545728.1645231-136726-279922317468724/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:60 Wednesday 03 August 2022 16:55:28 +0000 (0:00:00.839) 0:00:11.270 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_csw3f0jl.tar" ], "delta": "0:00:00.005677", "end": "2022-08-03 12:55:29.591381", "rc": 0, "start": "2022-08-03 12:55:29.585704" } 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_qHU4LC/ansible/module_utils] ************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:65 Wednesday 03 August 2022 16:55:29 +0000 (0:00:00.306) 0:00:11.577 ****** changed: [/cache/rhel-7.qcow2] => (item=/tmp/lsrtest_qHU4LC/ansible) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_qHU4LC/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_qHU4LC/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [/cache/rhel-7.qcow2] => (item=/tmp/lsrtest_qHU4LC/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_qHU4LC/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_qHU4LC/ansible/module_utils", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Move module_utils to ansible directory] ********************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:74 Wednesday 03 August 2022 16:55:29 +0000 (0:00:00.709) 0:00:12.286 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_qHU4LC/module_utils ]; then\n mv /tmp/lsrtest_qHU4LC/module_utils /tmp/lsrtest_qHU4LC/ansible\nfi\n", "delta": "0:00:00.005305", "end": "2022-08-03 12:55:30.624321", "rc": 0, "start": "2022-08-03 12:55:30.619016" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:80 Wednesday 03 August 2022 16:55:30 +0000 (0:00:00.323) 0:00:12.609 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_qHU4LC -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.008617", "end": "2022-08-03 12:55:30.917146", "rc": 0, "start": "2022-08-03 12:55:30.908529" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:88 Wednesday 03 August 2022 16:55:30 +0000 (0:00:00.292) 0:00:12.902 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_qHU4LC/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-1659545730.6340926-136838-177123759268205/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:94 Wednesday 03 August 2022 16:55:31 +0000 (0:00:00.709) 0:00:13.611 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_qHU4LC/library:/tmp/lsrtest_qHU4LC/ansible/module_utils:/tmp/lsrtest_qHU4LC/module_utils:/tmp/lsrtest_qHU4LC" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_qHU4LC] ****************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:106 Wednesday 03 August 2022 16:55:31 +0000 (0:00:00.030) 0:00:13.642 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_qHU4LC" ], "delta": "0:00:00.005031", "end": "2022-08-03 12:55:31.939280", "rc": 0, "start": "2022-08-03 12:55:31.934249" } STDOUT: /tmp/lsrtest_qHU4LC: total 436 drwxr-xr-x. 2 root root 79 Aug 3 12:32 library/ -rw-------. 1 root root 256000 Aug 3 12:55 lsrtest_csw3f0jl.tar -rw-r--r--. 1 root root 0 Aug 3 12:55 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 12:55 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 12:55 test_network_connections.py drwx------. 4 root root 118 Aug 3 12:55 ./ drwxrwxrwt. 10 root root 273 Aug 3 12:55 ../ /tmp/lsrtest_qHU4LC/library: total 104 -rw-r--r--. 1 root root 2211 Aug 3 12:32 network_state.py -rw-r--r--. 1 root root 101576 Aug 3 12:32 network_connections.py -rw-r--r--. 1 root root 0 Aug 3 12:32 __init__.py drwxr-xr-x. 2 root root 79 Aug 3 12:32 ./ drwx------. 4 root root 118 Aug 3 12:55 ../ /tmp/lsrtest_qHU4LC/ansible: total 0 -rw-r--r--. 1 root root 0 Aug 3 12:55 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 12:55 ./ drwxr-xr-x. 3 root root 44 Aug 3 12:55 module_utils/ drwx------. 4 root root 118 Aug 3 12:55 ../ /tmp/lsrtest_qHU4LC/ansible/module_utils: total 0 drwxr-xr-x. 3 root root 138 Aug 3 12:32 network_lsr/ drwxr-xr-x. 3 root root 45 Aug 3 12:55 ../ -rw-r--r--. 1 root root 0 Aug 3 12:55 __init__.py drwxr-xr-x. 3 root root 44 Aug 3 12:55 ./ /tmp/lsrtest_qHU4LC/ansible/module_utils/network_lsr: total 128 -rw-r--r--. 1 root root 11351 Aug 3 12:32 utils.py -rw-r--r--. 1 root root 1594 Aug 3 12:32 nm_provider.py drwxr-xr-x. 2 root root 126 Aug 3 12:32 nm/ -rw-r--r--. 1 root root 190 Aug 3 12:32 myerror.py -rw-r--r--. 1 root root 0 Aug 3 12:32 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 12:32 ethtool.py -rw-r--r--. 1 root root 105942 Aug 3 12:32 argument_validator.py drwxr-xr-x. 3 root root 138 Aug 3 12:32 ./ drwxr-xr-x. 3 root root 44 Aug 3 12:55 ../ /tmp/lsrtest_qHU4LC/ansible/module_utils/network_lsr/nm: total 24 -rw-r--r--. 1 root root 3154 Aug 3 12:32 provider.py -rw-r--r--. 1 root root 343 Aug 3 12:32 __init__.py -rw-r--r--. 1 root root 175 Aug 3 12:32 error.py -rw-r--r--. 1 root root 3546 Aug 3 12:32 connection.py -rw-r--r--. 1 root root 2834 Aug 3 12:32 client.py -rw-r--r--. 1 root root 4012 Aug 3 12:32 active_connection.py drwxr-xr-x. 3 root root 138 Aug 3 12:32 ../ drwxr-xr-x. 2 root root 126 Aug 3 12:32 ./ TASK [debug] ******************************************************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:108 Wednesday 03 August 2022 16:55:31 +0000 (0:00:00.281) 0:00:13.923 ****** ok: [/cache/rhel-7.qcow2] => {} MSG: path /tmp/lsrtest_qHU4LC/library:/tmp/lsrtest_qHU4LC/ansible/module_utils:/tmp/lsrtest_qHU4LC/module_utils:/tmp/lsrtest_qHU4LC TASK [Check if python2 is available] ******************************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:111 Wednesday 03 August 2022 16:55:31 +0000 (0:00:00.027) 0:00:13.951 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003943", "end": "2022-08-03 12:55:32.246736", "rc": 0, "start": "2022-08-03 12:55:32.242793" } STDERR: Python 2.7.5 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:117 Wednesday 03 August 2022 16:55:31 +0000 (0:00:00.281) 0:00:14.232 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_qHU4LC/test_network_connections.py", "--verbose" ], "delta": "0:00:00.281423", "end": "2022-08-03 12:55:32.822999", "rc": 0, "start": "2022-08-03 12:55:32.541576" } STDERR: test_connection_ensure_setting (__main__.TestNM) ... ok test_connection_list (__main__.TestNM) ... ok test_path_to_glib_bytes (__main__.TestNM) ... ok test_link_read_permaddress (__main__.TestSysUtils) ... ok test_convert_passwd_flags_nm (__main__.TestUtils) ... ok test_mac_ntoa (__main__.TestUtils) ... ok test_802_1x_1 (__main__.TestValidator) ... ok test_802_1x_2 (__main__.TestValidator) ... ok test_802_1x_3 (__main__.TestValidator) ... ok test_802_1x_ca_path_and_system_ca_certs (__main__.TestValidator) ... ok test_802_1x_initscripts (__main__.TestValidator) ... ok test_802_1x_unsupported_type (__main__.TestValidator) ... ok test_absent (__main__.TestValidator) ... ok test_auto6_enabled_ipv6_disabled (__main__.TestValidator) ... ok test_auto_gateway_false (__main__.TestValidator) ... ok test_auto_gateway_no_gateway (__main__.TestValidator) ... ok test_auto_gateway_true (__main__.TestValidator) ... ok test_bond (__main__.TestValidator) ... ok test_bond_active_backup (__main__.TestValidator) ... ok test_bridge2 (__main__.TestValidator) ... ok test_bridge_no_dhcp4_auto6 (__main__.TestValidator) ... ok test_default_states (__main__.TestValidator) ... ok test_default_states_type (__main__.TestValidator) ... ok test_deprecated_ethtool_names (__main__.TestValidator) ... ok test_dns_options_argvalidator (__main__.TestValidator) ... ok test_dns_search_without_ipv4_and_ipv6_configuration (__main__.TestValidator) ... ok test_empty (__main__.TestValidator) ... ok test_ethernet_mac_address (__main__.TestValidator) ... ok test_ethernet_speed_settings (__main__.TestValidator) ... ok test_ethernet_two_defaults (__main__.TestValidator) ... ok test_full_state_absent_defaults (__main__.TestValidator) ... ok test_full_state_absent_no_type (__main__.TestValidator) ... ok test_full_state_present_no_type (__main__.TestValidator) ... ok test_full_state_present_type_defaults (__main__.TestValidator) ... ok test_gateway6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_infiniband (__main__.TestValidator) ... ok test_infiniband2 (__main__.TestValidator) ... ok test_infiniband3 (__main__.TestValidator) ... ok test_interface_name_bond_empty_interface_name (__main__.TestValidator) ... ok test_interface_name_bond_profile_as_interface_name (__main__.TestValidator) ... ok test_interface_name_ethernet_None (__main__.TestValidator) Check that interface_name cannot be None ... ok test_interface_name_ethernet_default (__main__.TestValidator) Use the profile name as interface_name for ethernet profiles ... ok test_interface_name_ethernet_empty (__main__.TestValidator) Allow not to restrict the profile to an interface ... ok test_interface_name_ethernet_explicit (__main__.TestValidator) Use the explicitly provided interface name ... ok test_interface_name_ethernet_invalid_interface_name (__main__.TestValidator) ... ok test_interface_name_ethernet_invalid_profile (__main__.TestValidator) Require explicit interface_name when the profile name is not a ... ok test_interface_name_ethernet_mac (__main__.TestValidator) Do not set interface_name when mac is specified ... ok test_invalid_autoconnect (__main__.TestValidator) ... ok test_invalid_cert_path (__main__.TestValidator) ... ok test_invalid_ethtool_settings (__main__.TestValidator) ... ok test_invalid_mac (__main__.TestValidator) ... ok test_invalid_password_flag (__main__.TestValidator) ... ok test_invalid_persistent_state_down (__main__.TestValidator) ... ok test_invalid_persistent_state_up (__main__.TestValidator) ... ok test_invalid_state_test (__main__.TestValidator) ... ok test_invalid_values (__main__.TestValidator) ... ok test_ipv4_dns_without_ipv4_config (__main__.TestValidator) ... ok test_ipv6_dns_options_without_ipv6_config (__main__.TestValidator) ... ok test_ipv6_dns_with_ipv6_disabled (__main__.TestValidator) ... ok test_ipv6_dns_with_static_ipv6_configuration (__main__.TestValidator) ... ok test_ipv6_dns_without_ipv6_configuration (__main__.TestValidator) ... ok test_ipv6_static (__main__.TestValidator) ... ok test_macvlan (__main__.TestValidator) ... ok test_persistent_state_absent (__main__.TestValidator) ... ok test_persistent_state_present (__main__.TestValidator) ... ok test_route_metric6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_route_metric_prefix (__main__.TestValidator) ... ok test_route_v6 (__main__.TestValidator) ... ok test_routes (__main__.TestValidator) ... ok test_set_deprecated_ethtool_feature (__main__.TestValidator) ... ok test_set_deprecated_master (__main__.TestValidator) ... ok test_set_deprecated_slave_type (__main__.TestValidator) ... ok test_set_ethtool_feature (__main__.TestValidator) ... ok test_state_absent (__main__.TestValidator) ... ok test_state_absent_down (__main__.TestValidator) ... ok test_state_absent_up_no_type (__main__.TestValidator) ... ok test_state_absent_up_type (__main__.TestValidator) ... ok test_state_down_no_type (__main__.TestValidator) ... ok test_state_present (__main__.TestValidator) ... ok test_state_present_down (__main__.TestValidator) ... ok test_state_present_up (__main__.TestValidator) ... ok test_state_up_no_type (__main__.TestValidator) ... ok test_state_up_type (__main__.TestValidator) ... ok test_static_ipv6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_up_ethernet (__main__.TestValidator) ... ok test_up_ethernet_mac_mtu_static_ip (__main__.TestValidator) ... ok test_up_ethernet_no_autoconnect (__main__.TestValidator) ... ok test_up_single_v4_dns (__main__.TestValidator) ... ok test_valid_persistent_state (__main__.TestValidator) ... ok test_validate_allow_empty_string_in_list (__main__.TestValidator) ... ok test_validate_bool (__main__.TestValidator) ... ok test_validate_dict (__main__.TestValidator) ... ok test_validate_disallow_none_in_list (__main__.TestValidator) ... ok test_validate_int (__main__.TestValidator) ... ok test_validate_list (__main__.TestValidator) ... ok test_validate_list_remove_none_or_empty (__main__.TestValidator) ... ok test_validate_range (__main__.TestValidator) ... ok test_validate_str (__main__.TestValidator) ... ok test_vlan (__main__.TestValidator) ... ok test_wireless_eap (__main__.TestValidator) ... ok test_wireless_initscripts (__main__.TestValidator) ... ok test_wireless_no_802_1x_for_wpa_eap (__main__.TestValidator) ... ok test_wireless_no_options_defined (__main__.TestValidator) ... ok test_wireless_no_password (__main__.TestValidator) ... ok test_wireless_password_too_long (__main__.TestValidator) ... ok test_wireless_psk (__main__.TestValidator) ... ok test_wireless_ssid_too_long (__main__.TestValidator) ... ok test_wireless_unsupported_type (__main__.TestValidator) ... ok test_invalid_bond_option_ad (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_arp (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_downdelay_updelay (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_infiniband_port (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_packets_per_port (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_peer_arp_ip_target_arp_interval (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_peer_notif_delay (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_primary (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_tlb_dynamic_lb (__main__.TestValidatorDictBond) ... ok test_invalid_pkey_values (__main__.TestValidatorDictInfiniband) ... ok test_interface_name_and_match_when_match_is_None (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_not_specified (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_path_is_empty_list (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_path_is_valid (__main__.TestValidatorMatch) ... ok test_match_path_empty_list (__main__.TestValidatorMatch) ... ok test_match_path_invalid_connection_type (__main__.TestValidatorMatch) ... ok test_match_path_invalid_setting (__main__.TestValidatorMatch) ... ok test_match_path_setting_normalization (__main__.TestValidatorMatch) ... ok test_match_path_valid_setting (__main__.TestValidatorMatch) ... ok test_empty_route_table_name (__main__.TestValidatorRouteTable) ... ok test_invalid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok test_invalid_route_table_names (__main__.TestValidatorRouteTable) ... ok test_invalid_value_types_for_route_tables (__main__.TestValidatorRouteTable) ... ok test_parse_rt_tables (__main__.TestValidatorRouteTable) ... ok test_table_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok test_table_not_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok test_valid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok test_routing_rule_invalid_from_prefix_length (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_incoming_interface_name (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_outgoing_interface_name (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_to_prefix_length (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_missing_address_family (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_missing_table (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_address_family (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_fwmark (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_fwmask (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_suppress_prefixlength (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_uid (__main__.TestValidatorRoutingRules) ... ok ---------------------------------------------------------------------- Ran 146 tests in 0.123s OK TASK [Check if python3 is available] ******************************************* task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:126 Wednesday 03 August 2022 16:55:32 +0000 (0:00:00.578) 0:00:14.811 ****** fatal: [/cache/rhel-7.qcow2]: FAILED! => { "changed": false, "cmd": "python3 --version", "rc": 2 } MSG: [Errno 2] No such file or directory ...ignoring TASK [Run python3 unit tests] ************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:132 Wednesday 03 August 2022 16:55:32 +0000 (0:00:00.291) 0:00:15.102 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show python2 unit test results] ****************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:140 Wednesday 03 August 2022 16:55:32 +0000 (0:00:00.023) 0:00:15.126 ****** ok: [/cache/rhel-7.qcow2] => { "python2_result.stderr_lines": [ "test_connection_ensure_setting (__main__.TestNM) ... ok", "test_connection_list (__main__.TestNM) ... ok", "test_path_to_glib_bytes (__main__.TestNM) ... ok", "test_link_read_permaddress (__main__.TestSysUtils) ... ok", "test_convert_passwd_flags_nm (__main__.TestUtils) ... ok", "test_mac_ntoa (__main__.TestUtils) ... ok", "test_802_1x_1 (__main__.TestValidator) ... ok", "test_802_1x_2 (__main__.TestValidator) ... ok", "test_802_1x_3 (__main__.TestValidator) ... ok", "test_802_1x_ca_path_and_system_ca_certs (__main__.TestValidator) ... ok", "test_802_1x_initscripts (__main__.TestValidator) ... ok", "test_802_1x_unsupported_type (__main__.TestValidator) ... ok", "test_absent (__main__.TestValidator) ... ok", "test_auto6_enabled_ipv6_disabled (__main__.TestValidator) ... ok", "test_auto_gateway_false (__main__.TestValidator) ... ok", "test_auto_gateway_no_gateway (__main__.TestValidator) ... ok", "test_auto_gateway_true (__main__.TestValidator) ... ok", "test_bond (__main__.TestValidator) ... ok", "test_bond_active_backup (__main__.TestValidator) ... ok", "test_bridge2 (__main__.TestValidator) ... ok", "test_bridge_no_dhcp4_auto6 (__main__.TestValidator) ... ok", "test_default_states (__main__.TestValidator) ... ok", "test_default_states_type (__main__.TestValidator) ... ok", "test_deprecated_ethtool_names (__main__.TestValidator) ... ok", "test_dns_options_argvalidator (__main__.TestValidator) ... ok", "test_dns_search_without_ipv4_and_ipv6_configuration (__main__.TestValidator) ... ok", "test_empty (__main__.TestValidator) ... ok", "test_ethernet_mac_address (__main__.TestValidator) ... ok", "test_ethernet_speed_settings (__main__.TestValidator) ... ok", "test_ethernet_two_defaults (__main__.TestValidator) ... ok", "test_full_state_absent_defaults (__main__.TestValidator) ... ok", "test_full_state_absent_no_type (__main__.TestValidator) ... ok", "test_full_state_present_no_type (__main__.TestValidator) ... ok", "test_full_state_present_type_defaults (__main__.TestValidator) ... ok", "test_gateway6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_infiniband (__main__.TestValidator) ... ok", "test_infiniband2 (__main__.TestValidator) ... ok", "test_infiniband3 (__main__.TestValidator) ... ok", "test_interface_name_bond_empty_interface_name (__main__.TestValidator) ... ok", "test_interface_name_bond_profile_as_interface_name (__main__.TestValidator) ... ok", "test_interface_name_ethernet_None (__main__.TestValidator)", "Check that interface_name cannot be None ... ok", "test_interface_name_ethernet_default (__main__.TestValidator)", "Use the profile name as interface_name for ethernet profiles ... ok", "test_interface_name_ethernet_empty (__main__.TestValidator)", "Allow not to restrict the profile to an interface ... ok", "test_interface_name_ethernet_explicit (__main__.TestValidator)", "Use the explicitly provided interface name ... ok", "test_interface_name_ethernet_invalid_interface_name (__main__.TestValidator) ... ok", "test_interface_name_ethernet_invalid_profile (__main__.TestValidator)", "Require explicit interface_name when the profile name is not a ... ok", "test_interface_name_ethernet_mac (__main__.TestValidator)", "Do not set interface_name when mac is specified ... ok", "test_invalid_autoconnect (__main__.TestValidator) ... ok", "test_invalid_cert_path (__main__.TestValidator) ... ok", "test_invalid_ethtool_settings (__main__.TestValidator) ... ok", "test_invalid_mac (__main__.TestValidator) ... ok", "test_invalid_password_flag (__main__.TestValidator) ... ok", "test_invalid_persistent_state_down (__main__.TestValidator) ... ok", "test_invalid_persistent_state_up (__main__.TestValidator) ... ok", "test_invalid_state_test (__main__.TestValidator) ... ok", "test_invalid_values (__main__.TestValidator) ... ok", "test_ipv4_dns_without_ipv4_config (__main__.TestValidator) ... ok", "test_ipv6_dns_options_without_ipv6_config (__main__.TestValidator) ... ok", "test_ipv6_dns_with_ipv6_disabled (__main__.TestValidator) ... ok", "test_ipv6_dns_with_static_ipv6_configuration (__main__.TestValidator) ... ok", "test_ipv6_dns_without_ipv6_configuration (__main__.TestValidator) ... ok", "test_ipv6_static (__main__.TestValidator) ... ok", "test_macvlan (__main__.TestValidator) ... ok", "test_persistent_state_absent (__main__.TestValidator) ... ok", "test_persistent_state_present (__main__.TestValidator) ... ok", "test_route_metric6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_route_metric_prefix (__main__.TestValidator) ... ok", "test_route_v6 (__main__.TestValidator) ... ok", "test_routes (__main__.TestValidator) ... ok", "test_set_deprecated_ethtool_feature (__main__.TestValidator) ... ok", "test_set_deprecated_master (__main__.TestValidator) ... ok", "test_set_deprecated_slave_type (__main__.TestValidator) ... ok", "test_set_ethtool_feature (__main__.TestValidator) ... ok", "test_state_absent (__main__.TestValidator) ... ok", "test_state_absent_down (__main__.TestValidator) ... ok", "test_state_absent_up_no_type (__main__.TestValidator) ... ok", "test_state_absent_up_type (__main__.TestValidator) ... ok", "test_state_down_no_type (__main__.TestValidator) ... ok", "test_state_present (__main__.TestValidator) ... ok", "test_state_present_down (__main__.TestValidator) ... ok", "test_state_present_up (__main__.TestValidator) ... ok", "test_state_up_no_type (__main__.TestValidator) ... ok", "test_state_up_type (__main__.TestValidator) ... ok", "test_static_ipv6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_up_ethernet (__main__.TestValidator) ... ok", "test_up_ethernet_mac_mtu_static_ip (__main__.TestValidator) ... ok", "test_up_ethernet_no_autoconnect (__main__.TestValidator) ... ok", "test_up_single_v4_dns (__main__.TestValidator) ... ok", "test_valid_persistent_state (__main__.TestValidator) ... ok", "test_validate_allow_empty_string_in_list (__main__.TestValidator) ... ok", "test_validate_bool (__main__.TestValidator) ... ok", "test_validate_dict (__main__.TestValidator) ... ok", "test_validate_disallow_none_in_list (__main__.TestValidator) ... ok", "test_validate_int (__main__.TestValidator) ... ok", "test_validate_list (__main__.TestValidator) ... ok", "test_validate_list_remove_none_or_empty (__main__.TestValidator) ... ok", "test_validate_range (__main__.TestValidator) ... ok", "test_validate_str (__main__.TestValidator) ... ok", "test_vlan (__main__.TestValidator) ... ok", "test_wireless_eap (__main__.TestValidator) ... ok", "test_wireless_initscripts (__main__.TestValidator) ... ok", "test_wireless_no_802_1x_for_wpa_eap (__main__.TestValidator) ... ok", "test_wireless_no_options_defined (__main__.TestValidator) ... ok", "test_wireless_no_password (__main__.TestValidator) ... ok", "test_wireless_password_too_long (__main__.TestValidator) ... ok", "test_wireless_psk (__main__.TestValidator) ... ok", "test_wireless_ssid_too_long (__main__.TestValidator) ... ok", "test_wireless_unsupported_type (__main__.TestValidator) ... ok", "test_invalid_bond_option_ad (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_arp (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_downdelay_updelay (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_infiniband_port (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_packets_per_port (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_peer_arp_ip_target_arp_interval (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_peer_notif_delay (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_primary (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_tlb_dynamic_lb (__main__.TestValidatorDictBond) ... ok", "test_invalid_pkey_values (__main__.TestValidatorDictInfiniband) ... ok", "test_interface_name_and_match_when_match_is_None (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_not_specified (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_path_is_empty_list (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_path_is_valid (__main__.TestValidatorMatch) ... ok", "test_match_path_empty_list (__main__.TestValidatorMatch) ... ok", "test_match_path_invalid_connection_type (__main__.TestValidatorMatch) ... ok", "test_match_path_invalid_setting (__main__.TestValidatorMatch) ... ok", "test_match_path_setting_normalization (__main__.TestValidatorMatch) ... ok", "test_match_path_valid_setting (__main__.TestValidatorMatch) ... ok", "test_empty_route_table_name (__main__.TestValidatorRouteTable) ... ok", "test_invalid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_invalid_route_table_names (__main__.TestValidatorRouteTable) ... ok", "test_invalid_value_types_for_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_parse_rt_tables (__main__.TestValidatorRouteTable) ... ok", "test_table_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_table_not_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_valid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_routing_rule_invalid_from_prefix_length (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_incoming_interface_name (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_outgoing_interface_name (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_to_prefix_length (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_missing_address_family (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_missing_table (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_address_family (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_fwmark (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_fwmask (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_suppress_prefixlength (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_uid (__main__.TestValidatorRoutingRules) ... ok", "", "----------------------------------------------------------------------", "Ran 146 tests in 0.123s", "", "OK" ] } TASK [Show python3 unit test results] ****************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:145 Wednesday 03 August 2022 16:55:32 +0000 (0:00:00.034) 0:00:15.160 ****** ok: [/cache/rhel-7.qcow2] => { "python3_result.stderr_lines": "VARIABLE IS NOT DEFINED!: 'dict object' has no attribute 'stderr_lines'" } TASK [remove local tar file] *************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:151 Wednesday 03 August 2022 16:55:32 +0000 (0:00:00.036) 0:00:15.197 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "path": "/tmp/lsrtest_csw3f0jl.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:157 Wednesday 03 August 2022 16:55:33 +0000 (0:00:00.193) 0:00:15.391 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "path": "/tmp/lsrtest_qHU4LC", "state": "absent" } TASK [Ensure that at least one python unit test ran] *************************** task path: /tmp/tmpq0_9gvwx/tests/tests_unit.yml:162 Wednesday 03 August 2022 16:55:33 +0000 (0:00:00.293) 0:00:15.684 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=35 changed=17 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 16:55:33 +0000 (0:00:00.031) 0:00:15.715 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.36s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:8 --------------------------------------- set up internal repositories -------------------------------------------- 1.30s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.84s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:54 -------------------------------------- Gathering Facts --------------------------------------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:21 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:88 -------------------------------------- Create /tmp/lsrtest_qHU4LC/ansible/module_utils ------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:65 -------------------------------------- Run python2 unit tests -------------------------------------------------- 0.58s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:117 ------------------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:11 ------------------------------- Get stats of system files ----------------------------------------------- 0.42s /tmp/tmpq0_9gvwx/tests/_backup.yml:6 ------------------------------------------ create tempdir for code to test ----------------------------------------- 0.40s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:25 -------------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmpq0_9gvwx/tests/_backup.yml:19 ----------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.32s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:74 -------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.31s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:60 -------------------------------------- remove tempdir ---------------------------------------------------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:157 ------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:80 -------------------------------------- Check if python3 is available ------------------------------------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:126 ------------------------------------- ls -alrtFR /tmp/lsrtest_qHU4LC ------------------------------------------ 0.28s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:106 ------------------------------------- Check if python2 is available ------------------------------------------- 0.28s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:111 ------------------------------------- Create EPEL 7 ----------------------------------------------------------- 0.28s /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:4 -------------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpq0_9gvwx/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpq0_9gvwx/tests/_restore.yml:4 Wednesday 03 August 2022 16:55:33 +0000 (0:00:00.018) 0:00:15.734 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006651", "end": "2022-08-03 12:55:34.037369", "rc": 0, "start": "2022-08-03 12:55:34.030718" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=36 changed=18 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 16:55:33 +0000 (0:00:00.296) 0:00:16.030 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.36s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:8 --------------------------------------- set up internal repositories -------------------------------------------- 1.30s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.96s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.84s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:54 -------------------------------------- Gathering Facts --------------------------------------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:21 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:88 -------------------------------------- Create /tmp/lsrtest_qHU4LC/ansible/module_utils ------------------------- 0.71s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:65 -------------------------------------- Run python2 unit tests -------------------------------------------------- 0.58s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:117 ------------------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmpq0_9gvwx/tests/tasks/enable_epel.yml:11 ------------------------------- Get stats of system files ----------------------------------------------- 0.42s /tmp/tmpq0_9gvwx/tests/_backup.yml:6 ------------------------------------------ create tempdir for code to test ----------------------------------------- 0.40s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:25 -------------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmpq0_9gvwx/tests/_backup.yml:19 ----------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.32s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:74 -------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.31s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:60 -------------------------------------- Restore system files ---------------------------------------------------- 0.30s /tmp/tmpq0_9gvwx/tests/_restore.yml:4 ----------------------------------------- remove tempdir ---------------------------------------------------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:157 ------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:80 -------------------------------------- Check if python3 is available ------------------------------------------- 0.29s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:126 ------------------------------------- ls -alrtFR /tmp/lsrtest_qHU4LC ------------------------------------------ 0.28s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:106 ------------------------------------- Check if python2 is available ------------------------------------------- 0.28s /tmp/tmpq0_9gvwx/tests/tests_unit.yml:111 ------------------------------------- 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/tmp0fvd1p7_ 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: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 03 August 2022 17:20:38 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:20:40 +0000 (0:00:01.390) 0:00:01.408 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.39s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp0448nu9w/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp0448nu9w/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:20:40 +0000 (0:00:00.014) 0:00:01.422 ****** ok: [/cache/rhel-7.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659547238.2703018, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659547238.2713017, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 77, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545878.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "624082615", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp0448nu9w/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:20:40 +0000 (0:00:00.399) 0:00:01.822 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-7.qcow2] => (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': '', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659545878.0, 'block_size': 4096, 'inode': 77, 'isgid': False, 'size': 90, 'executable': False, 'isuid': False, 'readable': True, 'version': '624082615', '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': 1659547238.2703018, 'isdir': False, 'ctime': 1659547238.2713017, 'isblk': False, 'wgrp': False, 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'dev': 64769, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': []}, 'changed': False, '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_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": 1659547238.2703018, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659547238.2713017, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 77, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545878.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "624082615", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:20:40 +0000 (0:00:00.034) 0:00:01.856 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004389", "end": "2022-08-03 13:20:41.111019", "rc": 0, "start": "2022-08-03 13:20:41.106630" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:20:41 +0000 (0:00:00.378) 0:00:02.234 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.39s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.40s /tmp/tmp0448nu9w/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmp0448nu9w/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp0448nu9w/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmp0448nu9w/tests/network/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:3 Wednesday 03 August 2022 17:20:41 +0000 (0:00:00.017) 0:00:02.252 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:6 Wednesday 03 August 2022 17:20:42 +0000 (0:00:00.973) 0:00:03.225 ****** included: /tmp/tmp0448nu9w/tests/network/tasks/el_repo_setup.yml for /cache/rhel-7.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:20:42 +0000 (0:00:00.027) 0:00:03.252 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:20:42 +0000 (0:00:00.021) 0:00:03.274 ****** included: /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml for /cache/rhel-7.qcow2 TASK [Create EPEL 7] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:20:42 +0000 (0:00:00.030) 0:00:03.305 ****** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:20:42 +0000 (0:00:00.296) 0:00:03.601 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.174176", "end": "2022-08-03 13:20:42.938134", "rc": 0, "start": "2022-08-03 13:20:42.763958" } STDOUT: ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7Server baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7Server/epel check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = True enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7Server/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7Server/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7Server/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=$infra&content=$contentdir minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Extra Packages for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7Server/epel pkgdir = /var/cache/yum/x86_64/7Server/epel/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = epel/x86_64 ui_repoid_vars = releasever, basearch username = TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:20:43 +0000 (0:00:00.459) 0:00:04.060 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:20:43 +0000 (0:00:00.020) 0:00:04.081 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install dependencies] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:8 Wednesday 03 August 2022 17:20:43 +0000 (0:00:00.018) 0:00:04.100 ****** ok: [/cache/rhel-7.qcow2] => (item=NetworkManager-libnm) => { "ansible_loop_var": "item", "changed": false, "item": "NetworkManager-libnm", "rc": 0, "results": [ "1:NetworkManager-libnm-1.18.8-2.el7_9.x86_64 providing NetworkManager-libnm is already installed" ] } failed: [/cache/rhel-7.qcow2] (item=python2-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python2-gobject-base", "rc": 126, "results": [ "No package matching 'python2-gobject-base' found available, installed or updated" ] } MSG: No package matching 'python2-gobject-base' found available, installed or updated failed: [/cache/rhel-7.qcow2] (item=python3-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python3-gobject-base", "rc": 126, "results": [ "No package matching 'python3-gobject-base' found available, installed or updated" ] } MSG: No package matching 'python3-gobject-base' found available, installed or updated ok: [/cache/rhel-7.qcow2] => (item=python-gobject-base) => { "ansible_loop_var": "item", "changed": false, "item": "python-gobject-base", "rc": 0, "results": [ "python-gobject-base-3.22.0-1.el7_4.1.x86_64 providing python-gobject-base is already installed" ] } changed: [/cache/rhel-7.qcow2] => (item=python2-mock) => { "ansible_loop_var": "item", "changed": true, "changes": { "installed": [ "python2-mock" ] }, "item": "python2-mock", "rc": 0, "results": [ "Loaded plugins: search-disabled-repos\nResolving Dependencies\n--> Running transaction check\n---> Package python2-mock.noarch 0:1.0.1-10.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-mock noarch 1.0.1-10.el7 epel 92 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package\n\nTotal download size: 92 k\nInstalled size: 365 k\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-mock-1.0.1-10.el7.noarch 1/1 \n Verifying : python2-mock-1.0.1-10.el7.noarch 1/1 \n\nInstalled:\n python2-mock.noarch 0:1.0.1-10.el7 \n\nComplete!\n" ] } ...ignoring META: ran handlers META: ran handlers PLAY [execute python unit tests] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:21 Wednesday 03 August 2022 17:20:47 +0000 (0:00:04.874) 0:00:08.974 ****** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:25 Wednesday 03 August 2022 17:20:48 +0000 (0:00:00.762) 0:00:09.737 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_LDWzVB", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:31 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.440) 0:00:10.177 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_7i6_v2zk.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:38 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.189) 0:00:10.367 ****** included: /tmp/tmp0448nu9w/tests/network/tasks/get_modules_and_utils_paths.yml for /cache/rhel-7.qcow2 TASK [set collection paths] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.029) 0:00:10.397 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "collection_paths": [ "/tmp/tmp0fvd1p7_", "/tmp/tmp0fvd1p7_" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.073) 0:00:10.470 ****** ok: [/cache/rhel-7.qcow2] => { "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/tmp0448nu9w/tests/network/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.053) 0:00:10.524 ****** ok: [/cache/rhel-7.qcow2 -> 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_; 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.004855", "end": "2022-08-03 17:20:49.677043", "rc": 0, "start": "2022-08-03 17:20:49.672188" } STDOUT: /tmp/tmp0fvd1p7_ 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_ + '[' '!' -d /tmp/tmp0fvd1p7_ ']' + cd /tmp/tmp0fvd1p7_ + for subdir in ansible_collections/*/*/plugins/modules + '[' -f ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ']' + echo /tmp/tmp0fvd1p7_ + echo ansible_collections/fedora/linux_system_roles/plugins/modules + exit 0 TASK [find parent directory and path of module_utils] ************************** task path: /tmp/tmp0448nu9w/tests/network/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.216) 0:00:10.740 ****** ok: [/cache/rhel-7.qcow2 -> 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_; 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.004673", "end": "2022-08-03 17:20:49.928215", "rc": 0, "start": "2022-08-03 17:20:49.923542" } STDOUT: /tmp/tmp0fvd1p7_ 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/tmp0fvd1p7_ /tmp/tmp0fvd1p7_ + '[' '!' -d /tmp/tmp0fvd1p7_ ']' + cd /tmp/tmp0fvd1p7_ + for subdir in ansible_collections/*/*/plugins/module_utils + '[' -d ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr ']' + echo /tmp/tmp0fvd1p7_ + echo ansible_collections/fedora/linux_system_roles/plugins/module_utils + exit 0 TASK [Create Tar file] ********************************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:44 Wednesday 03 August 2022 17:20:49 +0000 (0:00:00.251) 0:00:10.992 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_7i6_v2zk.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmp0fvd1p7_", "ansible_collections/fedora/linux_system_roles/plugins/modules", "-C", "/tmp/tmp0fvd1p7_", "ansible_collections/fedora/linux_system_roles/plugins/module_utils" ], "delta": "0:00:00.004848", "end": "2022-08-03 17:20:50.140472", "rc": 0, "start": "2022-08-03 17:20:50.135624" } 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/tmp0448nu9w/tests/network/tests_unit.yml:54 Wednesday 03 August 2022 17:20:50 +0000 (0:00:00.204) 0:00:11.197 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "7fe005e828f5d740a12d5b41dad866bd646e14a6", "dest": "/tmp/lsrtest_LDWzVB/lsrtest_7i6_v2zk.tar", "gid": 0, "group": "root", "md5sum": "ce2e9697f2d2f18b26b2320c649613f1", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659547250.2212431-183073-150259052853099/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:60 Wednesday 03 August 2022 17:20:51 +0000 (0:00:00.856) 0:00:12.053 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_7i6_v2zk.tar" ], "delta": "0:00:00.005564", "end": "2022-08-03 13:20:51.234361", "rc": 0, "start": "2022-08-03 13:20:51.228797" } 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_LDWzVB/ansible/module_utils] ************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:65 Wednesday 03 August 2022 17:20:51 +0000 (0:00:00.303) 0:00:12.357 ****** changed: [/cache/rhel-7.qcow2] => (item=/tmp/lsrtest_LDWzVB/ansible) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_LDWzVB/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_LDWzVB/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [/cache/rhel-7.qcow2] => (item=/tmp/lsrtest_LDWzVB/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_LDWzVB/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_LDWzVB/ansible/module_utils", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Move module_utils to ansible directory] ********************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:74 Wednesday 03 August 2022 17:20:52 +0000 (0:00:00.718) 0:00:13.075 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_LDWzVB/module_utils ]; then\n mv /tmp/lsrtest_LDWzVB/module_utils /tmp/lsrtest_LDWzVB/ansible\nfi\n", "delta": "0:00:00.003729", "end": "2022-08-03 13:20:52.250523", "rc": 0, "start": "2022-08-03 13:20:52.246794" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:80 Wednesday 03 August 2022 17:20:52 +0000 (0:00:00.295) 0:00:13.371 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_LDWzVB -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.013487", "end": "2022-08-03 13:20:52.544914", "rc": 0, "start": "2022-08-03 13:20:52.531427" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:88 Wednesday 03 August 2022 17:20:52 +0000 (0:00:00.295) 0:00:13.667 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_LDWzVB/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-1659547252.6888008-183185-31532802817144/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:94 Wednesday 03 August 2022 17:20:53 +0000 (0:00:00.721) 0:00:14.388 ****** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_LDWzVB/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_LDWzVB" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_LDWzVB] ****************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:98 Wednesday 03 August 2022 17:20:53 +0000 (0:00:00.033) 0:00:14.422 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_LDWzVB" ], "delta": "0:00:00.005326", "end": "2022-08-03 13:20:53.585321", "rc": 0, "start": "2022-08-03 13:20:53.579995" } STDOUT: /tmp/lsrtest_LDWzVB: total 436 -rw-------. 1 root root 256000 Aug 3 13:20 lsrtest_7i6_v2zk.tar -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 39 Aug 3 13:20 ansible_collections/ drwxr-xr-x. 3 root root 45 Aug 3 13:20 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 13:20 test_network_connections.py drwx------. 4 root root 130 Aug 3 13:20 ./ drwxrwxrwt. 10 root root 273 Aug 3 13:20 ../ /tmp/lsrtest_LDWzVB/ansible_collections: total 0 -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 39 Aug 3 13:20 ./ drwxr-xr-x. 3 root root 51 Aug 3 13:20 fedora/ drwx------. 4 root root 130 Aug 3 13:20 ../ /tmp/lsrtest_LDWzVB/ansible_collections/fedora: total 0 drwxr-xr-x. 3 root root 39 Aug 3 13:20 ../ -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 51 Aug 3 13:20 ./ drwxr-xr-x. 3 root root 40 Aug 3 13:20 linux_system_roles/ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles: total 0 drwxr-xr-x. 3 root root 51 Aug 3 13:20 ../ -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 40 Aug 3 13:20 ./ drwxr-xr-x. 4 root root 60 Aug 3 13:20 plugins/ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins: total 0 drwxr-xr-x. 2 root root 79 Aug 3 12:32 modules/ drwxr-xr-x. 3 root root 40 Aug 3 13:20 ../ -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 4 root root 60 Aug 3 13:20 ./ drwxr-xr-x. 3 root root 44 Aug 3 13:20 module_utils/ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/modules: total 104 -rw-r--r--. 1 root root 2211 Aug 3 12:32 network_state.py -rw-r--r--. 1 root root 0 Aug 3 12:32 __init__.py drwxr-xr-x. 2 root root 79 Aug 3 12:32 ./ -rw-r--r--. 1 root root 101852 Aug 3 12:32 network_connections.py drwxr-xr-x. 4 root root 60 Aug 3 13:20 ../ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/module_utils: total 0 drwxr-xr-x. 3 root root 138 Aug 3 12:32 network_lsr/ drwxr-xr-x. 4 root root 60 Aug 3 13:20 ../ -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 44 Aug 3 13:20 ./ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr: total 128 drwxr-xr-x. 2 root root 126 Aug 3 12:32 nm/ -rw-r--r--. 1 root root 190 Aug 3 12:32 myerror.py -rw-r--r--. 1 root root 0 Aug 3 12:32 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 12:32 ethtool.py drwxr-xr-x. 3 root root 138 Aug 3 12:32 ./ -rw-r--r--. 1 root root 11397 Aug 3 12:32 utils.py -rw-r--r--. 1 root root 1640 Aug 3 12:32 nm_provider.py -rw-r--r--. 1 root root 106034 Aug 3 12:32 argument_validator.py drwxr-xr-x. 3 root root 44 Aug 3 13:20 ../ /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm: total 28 -rw-r--r--. 1 root root 175 Aug 3 12:32 error.py drwxr-xr-x. 3 root root 138 Aug 3 12:32 ../ drwxr-xr-x. 2 root root 126 Aug 3 12:32 ./ -rw-r--r--. 1 root root 3292 Aug 3 12:32 provider.py -rw-r--r--. 1 root root 389 Aug 3 12:32 __init__.py -rw-r--r--. 1 root root 3638 Aug 3 12:32 connection.py -rw-r--r--. 1 root root 2880 Aug 3 12:32 client.py -rw-r--r--. 1 root root 4104 Aug 3 12:32 active_connection.py /tmp/lsrtest_LDWzVB/ansible: total 0 -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 13:20 ./ drwxr-xr-x. 2 root root 25 Aug 3 13:20 module_utils/ drwx------. 4 root root 130 Aug 3 13:20 ../ /tmp/lsrtest_LDWzVB/ansible/module_utils: total 0 drwxr-xr-x. 3 root root 45 Aug 3 13:20 ../ -rw-r--r--. 1 root root 0 Aug 3 13:20 __init__.py drwxr-xr-x. 2 root root 25 Aug 3 13:20 ./ TASK [debug] ******************************************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:100 Wednesday 03 August 2022 17:20:53 +0000 (0:00:00.285) 0:00:14.707 ****** ok: [/cache/rhel-7.qcow2] => {} MSG: path /tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_LDWzVB/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_LDWzVB/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_LDWzVB TASK [Check if python2 is available] ******************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:103 Wednesday 03 August 2022 17:20:53 +0000 (0:00:00.030) 0:00:14.738 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003749", "end": "2022-08-03 13:20:53.900576", "rc": 0, "start": "2022-08-03 13:20:53.896827" } STDERR: Python 2.7.5 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:109 Wednesday 03 August 2022 17:20:53 +0000 (0:00:00.284) 0:00:15.022 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_LDWzVB/test_network_connections.py", "--verbose" ], "delta": "0:00:00.288391", "end": "2022-08-03 13:20:54.491437", "rc": 0, "start": "2022-08-03 13:20:54.203046" } STDERR: test_connection_ensure_setting (__main__.TestNM) ... ok test_connection_list (__main__.TestNM) ... ok test_path_to_glib_bytes (__main__.TestNM) ... ok test_link_read_permaddress (__main__.TestSysUtils) ... ok test_convert_passwd_flags_nm (__main__.TestUtils) ... ok test_mac_ntoa (__main__.TestUtils) ... ok test_802_1x_1 (__main__.TestValidator) ... ok test_802_1x_2 (__main__.TestValidator) ... ok test_802_1x_3 (__main__.TestValidator) ... ok test_802_1x_ca_path_and_system_ca_certs (__main__.TestValidator) ... ok test_802_1x_initscripts (__main__.TestValidator) ... ok test_802_1x_unsupported_type (__main__.TestValidator) ... ok test_absent (__main__.TestValidator) ... ok test_auto6_enabled_ipv6_disabled (__main__.TestValidator) ... ok test_auto_gateway_false (__main__.TestValidator) ... ok test_auto_gateway_no_gateway (__main__.TestValidator) ... ok test_auto_gateway_true (__main__.TestValidator) ... ok test_bond (__main__.TestValidator) ... ok test_bond_active_backup (__main__.TestValidator) ... ok test_bridge2 (__main__.TestValidator) ... ok test_bridge_no_dhcp4_auto6 (__main__.TestValidator) ... ok test_default_states (__main__.TestValidator) ... ok test_default_states_type (__main__.TestValidator) ... ok test_deprecated_ethtool_names (__main__.TestValidator) ... ok test_dns_options_argvalidator (__main__.TestValidator) ... ok test_dns_search_without_ipv4_and_ipv6_configuration (__main__.TestValidator) ... ok test_empty (__main__.TestValidator) ... ok test_ethernet_mac_address (__main__.TestValidator) ... ok test_ethernet_speed_settings (__main__.TestValidator) ... ok test_ethernet_two_defaults (__main__.TestValidator) ... ok test_full_state_absent_defaults (__main__.TestValidator) ... ok test_full_state_absent_no_type (__main__.TestValidator) ... ok test_full_state_present_no_type (__main__.TestValidator) ... ok test_full_state_present_type_defaults (__main__.TestValidator) ... ok test_gateway6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_infiniband (__main__.TestValidator) ... ok test_infiniband2 (__main__.TestValidator) ... ok test_infiniband3 (__main__.TestValidator) ... ok test_interface_name_bond_empty_interface_name (__main__.TestValidator) ... ok test_interface_name_bond_profile_as_interface_name (__main__.TestValidator) ... ok test_interface_name_ethernet_None (__main__.TestValidator) Check that interface_name cannot be None ... ok test_interface_name_ethernet_default (__main__.TestValidator) Use the profile name as interface_name for ethernet profiles ... ok test_interface_name_ethernet_empty (__main__.TestValidator) Allow not to restrict the profile to an interface ... ok test_interface_name_ethernet_explicit (__main__.TestValidator) Use the explicitly provided interface name ... ok test_interface_name_ethernet_invalid_interface_name (__main__.TestValidator) ... ok test_interface_name_ethernet_invalid_profile (__main__.TestValidator) Require explicit interface_name when the profile name is not a ... ok test_interface_name_ethernet_mac (__main__.TestValidator) Do not set interface_name when mac is specified ... ok test_invalid_autoconnect (__main__.TestValidator) ... ok test_invalid_cert_path (__main__.TestValidator) ... ok test_invalid_ethtool_settings (__main__.TestValidator) ... ok test_invalid_mac (__main__.TestValidator) ... ok test_invalid_password_flag (__main__.TestValidator) ... ok test_invalid_persistent_state_down (__main__.TestValidator) ... ok test_invalid_persistent_state_up (__main__.TestValidator) ... ok test_invalid_state_test (__main__.TestValidator) ... ok test_invalid_values (__main__.TestValidator) ... ok test_ipv4_dns_without_ipv4_config (__main__.TestValidator) ... ok test_ipv6_dns_options_without_ipv6_config (__main__.TestValidator) ... ok test_ipv6_dns_with_ipv6_disabled (__main__.TestValidator) ... ok test_ipv6_dns_with_static_ipv6_configuration (__main__.TestValidator) ... ok test_ipv6_dns_without_ipv6_configuration (__main__.TestValidator) ... ok test_ipv6_static (__main__.TestValidator) ... ok test_macvlan (__main__.TestValidator) ... ok test_persistent_state_absent (__main__.TestValidator) ... ok test_persistent_state_present (__main__.TestValidator) ... ok test_route_metric6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_route_metric_prefix (__main__.TestValidator) ... ok test_route_v6 (__main__.TestValidator) ... ok test_routes (__main__.TestValidator) ... ok test_set_deprecated_ethtool_feature (__main__.TestValidator) ... ok test_set_deprecated_master (__main__.TestValidator) ... ok test_set_deprecated_slave_type (__main__.TestValidator) ... ok test_set_ethtool_feature (__main__.TestValidator) ... ok test_state_absent (__main__.TestValidator) ... ok test_state_absent_down (__main__.TestValidator) ... ok test_state_absent_up_no_type (__main__.TestValidator) ... ok test_state_absent_up_type (__main__.TestValidator) ... ok test_state_down_no_type (__main__.TestValidator) ... ok test_state_present (__main__.TestValidator) ... ok test_state_present_down (__main__.TestValidator) ... ok test_state_present_up (__main__.TestValidator) ... ok test_state_up_no_type (__main__.TestValidator) ... ok test_state_up_type (__main__.TestValidator) ... ok test_static_ipv6_configured_ipv6_disabled (__main__.TestValidator) ... ok test_up_ethernet (__main__.TestValidator) ... ok test_up_ethernet_mac_mtu_static_ip (__main__.TestValidator) ... ok test_up_ethernet_no_autoconnect (__main__.TestValidator) ... ok test_up_single_v4_dns (__main__.TestValidator) ... ok test_valid_persistent_state (__main__.TestValidator) ... ok test_validate_allow_empty_string_in_list (__main__.TestValidator) ... ok test_validate_bool (__main__.TestValidator) ... ok test_validate_dict (__main__.TestValidator) ... ok test_validate_disallow_none_in_list (__main__.TestValidator) ... ok test_validate_int (__main__.TestValidator) ... ok test_validate_list (__main__.TestValidator) ... ok test_validate_list_remove_none_or_empty (__main__.TestValidator) ... ok test_validate_range (__main__.TestValidator) ... ok test_validate_str (__main__.TestValidator) ... ok test_vlan (__main__.TestValidator) ... ok test_wireless_eap (__main__.TestValidator) ... ok test_wireless_initscripts (__main__.TestValidator) ... ok test_wireless_no_802_1x_for_wpa_eap (__main__.TestValidator) ... ok test_wireless_no_options_defined (__main__.TestValidator) ... ok test_wireless_no_password (__main__.TestValidator) ... ok test_wireless_password_too_long (__main__.TestValidator) ... ok test_wireless_psk (__main__.TestValidator) ... ok test_wireless_ssid_too_long (__main__.TestValidator) ... ok test_wireless_unsupported_type (__main__.TestValidator) ... ok test_invalid_bond_option_ad (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_arp (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_downdelay_updelay (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_infiniband_port (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_packets_per_port (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_peer_arp_ip_target_arp_interval (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_peer_notif_delay (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_primary (__main__.TestValidatorDictBond) ... ok test_invalid_bond_option_tlb_dynamic_lb (__main__.TestValidatorDictBond) ... ok test_invalid_pkey_values (__main__.TestValidatorDictInfiniband) ... ok test_interface_name_and_match_when_match_is_None (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_not_specified (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_path_is_empty_list (__main__.TestValidatorMatch) ... ok test_interface_name_when_match_path_is_valid (__main__.TestValidatorMatch) ... ok test_match_path_empty_list (__main__.TestValidatorMatch) ... ok test_match_path_invalid_connection_type (__main__.TestValidatorMatch) ... ok test_match_path_invalid_setting (__main__.TestValidatorMatch) ... ok test_match_path_setting_normalization (__main__.TestValidatorMatch) ... ok test_match_path_valid_setting (__main__.TestValidatorMatch) ... ok test_empty_route_table_name (__main__.TestValidatorRouteTable) ... ok test_invalid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok test_invalid_route_table_names (__main__.TestValidatorRouteTable) ... ok test_invalid_value_types_for_route_tables (__main__.TestValidatorRouteTable) ... ok test_parse_rt_tables (__main__.TestValidatorRouteTable) ... ok test_table_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok test_table_not_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok test_valid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok test_routing_rule_invalid_from_prefix_length (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_incoming_interface_name (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_outgoing_interface_name (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_invalid_to_prefix_length (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_missing_address_family (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_missing_table (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_address_family (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_fwmark (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_fwmask (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_suppress_prefixlength (__main__.TestValidatorRoutingRules) ... ok test_routing_rule_validate_uid (__main__.TestValidatorRoutingRules) ... ok ---------------------------------------------------------------------- Ran 146 tests in 0.126s OK TASK [Check if python3 is available] ******************************************* task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:118 Wednesday 03 August 2022 17:20:54 +0000 (0:00:00.594) 0:00:15.617 ****** fatal: [/cache/rhel-7.qcow2]: FAILED! => { "changed": false, "cmd": "python3 --version", "rc": 2 } MSG: [Errno 2] No such file or directory ...ignoring TASK [Run python3 unit tests] ************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:124 Wednesday 03 August 2022 17:20:54 +0000 (0:00:00.278) 0:00:15.895 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show python2 unit test results] ****************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:132 Wednesday 03 August 2022 17:20:54 +0000 (0:00:00.022) 0:00:15.917 ****** ok: [/cache/rhel-7.qcow2] => { "python2_result.stderr_lines": [ "test_connection_ensure_setting (__main__.TestNM) ... ok", "test_connection_list (__main__.TestNM) ... ok", "test_path_to_glib_bytes (__main__.TestNM) ... ok", "test_link_read_permaddress (__main__.TestSysUtils) ... ok", "test_convert_passwd_flags_nm (__main__.TestUtils) ... ok", "test_mac_ntoa (__main__.TestUtils) ... ok", "test_802_1x_1 (__main__.TestValidator) ... ok", "test_802_1x_2 (__main__.TestValidator) ... ok", "test_802_1x_3 (__main__.TestValidator) ... ok", "test_802_1x_ca_path_and_system_ca_certs (__main__.TestValidator) ... ok", "test_802_1x_initscripts (__main__.TestValidator) ... ok", "test_802_1x_unsupported_type (__main__.TestValidator) ... ok", "test_absent (__main__.TestValidator) ... ok", "test_auto6_enabled_ipv6_disabled (__main__.TestValidator) ... ok", "test_auto_gateway_false (__main__.TestValidator) ... ok", "test_auto_gateway_no_gateway (__main__.TestValidator) ... ok", "test_auto_gateway_true (__main__.TestValidator) ... ok", "test_bond (__main__.TestValidator) ... ok", "test_bond_active_backup (__main__.TestValidator) ... ok", "test_bridge2 (__main__.TestValidator) ... ok", "test_bridge_no_dhcp4_auto6 (__main__.TestValidator) ... ok", "test_default_states (__main__.TestValidator) ... ok", "test_default_states_type (__main__.TestValidator) ... ok", "test_deprecated_ethtool_names (__main__.TestValidator) ... ok", "test_dns_options_argvalidator (__main__.TestValidator) ... ok", "test_dns_search_without_ipv4_and_ipv6_configuration (__main__.TestValidator) ... ok", "test_empty (__main__.TestValidator) ... ok", "test_ethernet_mac_address (__main__.TestValidator) ... ok", "test_ethernet_speed_settings (__main__.TestValidator) ... ok", "test_ethernet_two_defaults (__main__.TestValidator) ... ok", "test_full_state_absent_defaults (__main__.TestValidator) ... ok", "test_full_state_absent_no_type (__main__.TestValidator) ... ok", "test_full_state_present_no_type (__main__.TestValidator) ... ok", "test_full_state_present_type_defaults (__main__.TestValidator) ... ok", "test_gateway6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_infiniband (__main__.TestValidator) ... ok", "test_infiniband2 (__main__.TestValidator) ... ok", "test_infiniband3 (__main__.TestValidator) ... ok", "test_interface_name_bond_empty_interface_name (__main__.TestValidator) ... ok", "test_interface_name_bond_profile_as_interface_name (__main__.TestValidator) ... ok", "test_interface_name_ethernet_None (__main__.TestValidator)", "Check that interface_name cannot be None ... ok", "test_interface_name_ethernet_default (__main__.TestValidator)", "Use the profile name as interface_name for ethernet profiles ... ok", "test_interface_name_ethernet_empty (__main__.TestValidator)", "Allow not to restrict the profile to an interface ... ok", "test_interface_name_ethernet_explicit (__main__.TestValidator)", "Use the explicitly provided interface name ... ok", "test_interface_name_ethernet_invalid_interface_name (__main__.TestValidator) ... ok", "test_interface_name_ethernet_invalid_profile (__main__.TestValidator)", "Require explicit interface_name when the profile name is not a ... ok", "test_interface_name_ethernet_mac (__main__.TestValidator)", "Do not set interface_name when mac is specified ... ok", "test_invalid_autoconnect (__main__.TestValidator) ... ok", "test_invalid_cert_path (__main__.TestValidator) ... ok", "test_invalid_ethtool_settings (__main__.TestValidator) ... ok", "test_invalid_mac (__main__.TestValidator) ... ok", "test_invalid_password_flag (__main__.TestValidator) ... ok", "test_invalid_persistent_state_down (__main__.TestValidator) ... ok", "test_invalid_persistent_state_up (__main__.TestValidator) ... ok", "test_invalid_state_test (__main__.TestValidator) ... ok", "test_invalid_values (__main__.TestValidator) ... ok", "test_ipv4_dns_without_ipv4_config (__main__.TestValidator) ... ok", "test_ipv6_dns_options_without_ipv6_config (__main__.TestValidator) ... ok", "test_ipv6_dns_with_ipv6_disabled (__main__.TestValidator) ... ok", "test_ipv6_dns_with_static_ipv6_configuration (__main__.TestValidator) ... ok", "test_ipv6_dns_without_ipv6_configuration (__main__.TestValidator) ... ok", "test_ipv6_static (__main__.TestValidator) ... ok", "test_macvlan (__main__.TestValidator) ... ok", "test_persistent_state_absent (__main__.TestValidator) ... ok", "test_persistent_state_present (__main__.TestValidator) ... ok", "test_route_metric6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_route_metric_prefix (__main__.TestValidator) ... ok", "test_route_v6 (__main__.TestValidator) ... ok", "test_routes (__main__.TestValidator) ... ok", "test_set_deprecated_ethtool_feature (__main__.TestValidator) ... ok", "test_set_deprecated_master (__main__.TestValidator) ... ok", "test_set_deprecated_slave_type (__main__.TestValidator) ... ok", "test_set_ethtool_feature (__main__.TestValidator) ... ok", "test_state_absent (__main__.TestValidator) ... ok", "test_state_absent_down (__main__.TestValidator) ... ok", "test_state_absent_up_no_type (__main__.TestValidator) ... ok", "test_state_absent_up_type (__main__.TestValidator) ... ok", "test_state_down_no_type (__main__.TestValidator) ... ok", "test_state_present (__main__.TestValidator) ... ok", "test_state_present_down (__main__.TestValidator) ... ok", "test_state_present_up (__main__.TestValidator) ... ok", "test_state_up_no_type (__main__.TestValidator) ... ok", "test_state_up_type (__main__.TestValidator) ... ok", "test_static_ipv6_configured_ipv6_disabled (__main__.TestValidator) ... ok", "test_up_ethernet (__main__.TestValidator) ... ok", "test_up_ethernet_mac_mtu_static_ip (__main__.TestValidator) ... ok", "test_up_ethernet_no_autoconnect (__main__.TestValidator) ... ok", "test_up_single_v4_dns (__main__.TestValidator) ... ok", "test_valid_persistent_state (__main__.TestValidator) ... ok", "test_validate_allow_empty_string_in_list (__main__.TestValidator) ... ok", "test_validate_bool (__main__.TestValidator) ... ok", "test_validate_dict (__main__.TestValidator) ... ok", "test_validate_disallow_none_in_list (__main__.TestValidator) ... ok", "test_validate_int (__main__.TestValidator) ... ok", "test_validate_list (__main__.TestValidator) ... ok", "test_validate_list_remove_none_or_empty (__main__.TestValidator) ... ok", "test_validate_range (__main__.TestValidator) ... ok", "test_validate_str (__main__.TestValidator) ... ok", "test_vlan (__main__.TestValidator) ... ok", "test_wireless_eap (__main__.TestValidator) ... ok", "test_wireless_initscripts (__main__.TestValidator) ... ok", "test_wireless_no_802_1x_for_wpa_eap (__main__.TestValidator) ... ok", "test_wireless_no_options_defined (__main__.TestValidator) ... ok", "test_wireless_no_password (__main__.TestValidator) ... ok", "test_wireless_password_too_long (__main__.TestValidator) ... ok", "test_wireless_psk (__main__.TestValidator) ... ok", "test_wireless_ssid_too_long (__main__.TestValidator) ... ok", "test_wireless_unsupported_type (__main__.TestValidator) ... ok", "test_invalid_bond_option_ad (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_arp (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_downdelay_updelay (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_infiniband_port (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_packets_per_port (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_peer_arp_ip_target_arp_interval (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_peer_notif_delay (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_primary (__main__.TestValidatorDictBond) ... ok", "test_invalid_bond_option_tlb_dynamic_lb (__main__.TestValidatorDictBond) ... ok", "test_invalid_pkey_values (__main__.TestValidatorDictInfiniband) ... ok", "test_interface_name_and_match_when_match_is_None (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_not_specified (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_path_is_empty_list (__main__.TestValidatorMatch) ... ok", "test_interface_name_when_match_path_is_valid (__main__.TestValidatorMatch) ... ok", "test_match_path_empty_list (__main__.TestValidatorMatch) ... ok", "test_match_path_invalid_connection_type (__main__.TestValidatorMatch) ... ok", "test_match_path_invalid_setting (__main__.TestValidatorMatch) ... ok", "test_match_path_setting_normalization (__main__.TestValidatorMatch) ... ok", "test_match_path_valid_setting (__main__.TestValidatorMatch) ... ok", "test_empty_route_table_name (__main__.TestValidatorRouteTable) ... ok", "test_invalid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_invalid_route_table_names (__main__.TestValidatorRouteTable) ... ok", "test_invalid_value_types_for_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_parse_rt_tables (__main__.TestValidatorRouteTable) ... ok", "test_table_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_table_not_found_when_validate_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_valid_numeric_route_tables (__main__.TestValidatorRouteTable) ... ok", "test_routing_rule_invalid_from_prefix_length (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_incoming_interface_name (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_outgoing_interface_name (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_invalid_to_prefix_length (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_missing_address_family (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_missing_table (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_address_family (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_fwmark (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_fwmask (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_suppress_prefixlength (__main__.TestValidatorRoutingRules) ... ok", "test_routing_rule_validate_uid (__main__.TestValidatorRoutingRules) ... ok", "", "----------------------------------------------------------------------", "Ran 146 tests in 0.126s", "", "OK" ] } TASK [Show python3 unit test results] ****************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:137 Wednesday 03 August 2022 17:20:54 +0000 (0:00:00.033) 0:00:15.951 ****** ok: [/cache/rhel-7.qcow2] => { "python3_result.stderr_lines": "VARIABLE IS NOT DEFINED!: 'dict object' has no attribute 'stderr_lines'" } TASK [remove local tar file] *************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:143 Wednesday 03 August 2022 17:20:54 +0000 (0:00:00.038) 0:00:15.990 ****** changed: [/cache/rhel-7.qcow2 -> localhost] => { "changed": true, "path": "/tmp/lsrtest_7i6_v2zk.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:149 Wednesday 03 August 2022 17:20:55 +0000 (0:00:00.198) 0:00:16.188 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "path": "/tmp/lsrtest_LDWzVB", "state": "absent" } TASK [Ensure that at least one python unit test ran] *************************** task path: /tmp/tmp0448nu9w/tests/network/tests_unit.yml:154 Wednesday 03 August 2022 17:20:55 +0000 (0:00:00.291) 0:00:16.479 ****** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=35 changed=17 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:20:55 +0000 (0:00:00.033) 0:00:16.513 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.87s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:8 ------------------------------- set up internal repositories -------------------------------------------- 1.39s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.97s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.86s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:54 ------------------------------ Gathering Facts --------------------------------------------------------- 0.76s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:21 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.72s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:88 ------------------------------ Create /tmp/lsrtest_LDWzVB/ansible/module_utils ------------------------- 0.72s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:65 ------------------------------ Run python2 unit tests -------------------------------------------------- 0.59s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:109 ----------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.46s /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:11 ----------------------- create tempdir for code to test ----------------------------------------- 0.44s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:25 ------------------------------ Get stats of system files ----------------------------------------------- 0.40s /tmp/tmp0448nu9w/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmp0448nu9w/tests/network/_backup.yml:19 --------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:60 ------------------------------ Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:4 ------------------------ Move module_utils to ansible directory ---------------------------------- 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:74 ------------------------------ Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:80 ------------------------------ remove tempdir ---------------------------------------------------------- 0.29s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:149 ----------------------------- ls -alrtFR /tmp/lsrtest_LDWzVB ------------------------------------------ 0.29s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:98 ------------------------------ Check if python2 is available ------------------------------------------- 0.28s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:103 ----------------------------- Check if python3 is available ------------------------------------------- 0.28s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:118 ----------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp0448nu9w/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp0448nu9w/tests/network/_restore.yml:4 Wednesday 03 August 2022 17:20:55 +0000 (0:00:00.018) 0:00:16.532 ****** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006530", "end": "2022-08-03 13:20:55.695328", "rc": 0, "start": "2022-08-03 13:20:55.688798" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=36 changed=18 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:20:55 +0000 (0:00:00.291) 0:00:16.823 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.87s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:8 ------------------------------- set up internal repositories -------------------------------------------- 1.39s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.97s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.86s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:54 ------------------------------ Gathering Facts --------------------------------------------------------- 0.76s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:21 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.72s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:88 ------------------------------ Create /tmp/lsrtest_LDWzVB/ansible/module_utils ------------------------- 0.72s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:65 ------------------------------ Run python2 unit tests -------------------------------------------------- 0.59s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:109 ----------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.46s /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:11 ----------------------- create tempdir for code to test ----------------------------------------- 0.44s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:25 ------------------------------ Get stats of system files ----------------------------------------------- 0.40s /tmp/tmp0448nu9w/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmp0448nu9w/tests/network/_backup.yml:19 --------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:60 ------------------------------ Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmp0448nu9w/tests/network/tasks/enable_epel.yml:4 ------------------------ Move module_utils to ansible directory ---------------------------------- 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:74 ------------------------------ Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:80 ------------------------------ Restore system files ---------------------------------------------------- 0.29s /tmp/tmp0448nu9w/tests/network/_restore.yml:4 --------------------------------- remove tempdir ---------------------------------------------------------- 0.29s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:149 ----------------------------- ls -alrtFR /tmp/lsrtest_LDWzVB ------------------------------------------ 0.29s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:98 ------------------------------ Check if python2 is available ------------------------------------------- 0.28s /tmp/tmp0448nu9w/tests/network/tests_unit.yml:103 -----------------------------