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/tmpe4dwqm__ executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmplbj_o459/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmplbj_o459/tests/_backup.yml:6 Wednesday 03 August 2022 17:30:50 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659547849.5024898, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "58d0b40c7f3b3443c40de4c19aee35ddf579fd17", "ctime": 1659547849.5024898, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8332, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659546490.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 61, "uid": 0, "version": "18446744072568422240", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmplbj_o459/tests/_backup.yml:13 Wednesday 03 August 2022 17:30:51 +0000 (0:00:00.524) 0:00:00.542 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-7.qcow2c.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': '', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659546490.0, 'block_size': 4096, 'inode': 8332, 'isgid': False, 'size': 61, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744072568422240', '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': 1659547849.5024898, 'isdir': False, 'ctime': 1659547849.5024898, 'isblk': False, 'wgrp': False, 'checksum': '58d0b40c7f3b3443c40de4c19aee35ddf579fd17', 'dev': 64769, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': []}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659547849.5024898, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "58d0b40c7f3b3443c40de4c19aee35ddf579fd17", "ctime": 1659547849.5024898, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8332, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659546490.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 61, "uid": 0, "version": "18446744072568422240", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmplbj_o459/tests/_backup.yml:19 Wednesday 03 August 2022 17:30:51 +0000 (0:00:00.033) 0:00:00.576 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.005072", "end": "2022-08-03 17:30:51.127841", "rc": 0, "start": "2022-08-03 17:30:51.122769" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:30:51 +0000 (0:00:00.434) 0:00:01.011 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.52s /tmp/tmplbj_o459/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.43s /tmp/tmplbj_o459/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmplbj_o459/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmplbj_o459/tests/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmplbj_o459/tests/tests_unit.yml:3 Wednesday 03 August 2022 17:30:51 +0000 (0:00:00.017) 0:00:01.028 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:6 Wednesday 03 August 2022 17:30:52 +0000 (0:00:01.018) 0:00:02.047 ****** included: /tmp/tmplbj_o459/tests/tasks/el_repo_setup.yml for /cache/centos-7.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmplbj_o459/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:30:52 +0000 (0:00:00.028) 0:00:02.075 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmplbj_o459/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:30:52 +0000 (0:00:00.023) 0:00:02.098 ****** included: /tmp/tmplbj_o459/tests/tasks/enable_epel.yml for /cache/centos-7.qcow2c.snap TASK [Create EPEL 7] *********************************************************** task path: /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:30:52 +0000 (0:00:00.030) 0:00:02.129 ****** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmplbj_o459/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:30:53 +0000 (0:00:00.304) 0:00:02.433 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.165950", "end": "2022-08-03 17:30:53.026189", "rc": 0, "start": "2022-08-03 17:30:52.860239" } STDOUT: Loaded plugins: fastestmirror ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/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/7/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = True 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=genclo&content=centos 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/7/epel pkgdir = /var/cache/yum/x86_64/7/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/tmplbj_o459/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:30:53 +0000 (0:00:00.466) 0:00:02.899 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:30:53 +0000 (0:00:00.023) 0:00:02.922 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install dependencies] **************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:8 Wednesday 03 August 2022 17:30:53 +0000 (0:00:00.030) 0:00:02.953 ****** ok: [/cache/centos-7.qcow2c.snap] => (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/centos-7.qcow2c.snap] (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/centos-7.qcow2c.snap] (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/centos-7.qcow2c.snap] => (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/centos-7.qcow2c.snap] => (item=python2-mock) => { "ansible_loop_var": "item", "changed": true, "changes": { "installed": [ "python2-mock" ] }, "item": "python2-mock", "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.umd.edu\n * epel: dl.fedoraproject.org\n * extras: mirror.math.princeton.edu\n * updates: mirror.cs.uwp.edu\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/tmplbj_o459/tests/tests_unit.yml:21 Wednesday 03 August 2022 17:30:57 +0000 (0:00:04.380) 0:00:07.333 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:25 Wednesday 03 August 2022 17:30:59 +0000 (0:00:01.749) 0:00:09.083 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_TWDJ_2", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:31 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.430) 0:00:09.513 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_l4y4xc4k.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:38 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.202) 0:00:09.715 ****** included: /tmp/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml for /cache/centos-7.qcow2c.snap TASK [set collection paths] **************************************************** task path: /tmp/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.029) 0:00:09.745 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpe4dwqm__", "/tmp/tmpe4dwqm__" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.047) 0:00:09.792 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "module_utils_search_path": [ "../../module_utils", "../module_utils", "/root/.ansible/plugins/module_utils", "/usr/share/ansible/plugins/module_utils" ], "modules_search_path": [ "../../library", "../library", "/root/.ansible/plugins/modules", "/usr/share/ansible/plugins/modules" ] }, "changed": false } TASK [find parent directory and path of modules] ******************************* task path: /tmp/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.051) 0:00:09.844 ****** ok: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules; do\n if [ -f \"$dir/network_connections.py\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpe4dwqm__ /tmp/tmpe4dwqm__; 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.007532", "end": "2022-08-03 17:31:00.677032", "rc": 0, "start": "2022-08-03 17:31:00.669500" } STDOUT: /tmp/tmplbj_o459 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/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.230) 0:00:10.074 ****** ok: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils; do\n if [ -d \"$dir/network_lsr\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpe4dwqm__ /tmp/tmpe4dwqm__; 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.007511", "end": "2022-08-03 17:31:00.913142", "rc": 0, "start": "2022-08-03 17:31:00.905631" } STDOUT: /tmp/tmplbj_o459 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/tmplbj_o459/tests/tests_unit.yml:44 Wednesday 03 August 2022 17:31:00 +0000 (0:00:00.232) 0:00:10.307 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_l4y4xc4k.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmplbj_o459", "library", "-C", "/tmp/tmplbj_o459", "module_utils" ], "delta": "0:00:00.005201", "end": "2022-08-03 17:31:01.128023", "rc": 0, "start": "2022-08-03 17:31:01.122822" } 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/tmplbj_o459/tests/tests_unit.yml:54 Wednesday 03 August 2022 17:31:01 +0000 (0:00:00.213) 0:00:10.521 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "a5ca8b49cdd6886f27592424718fa1aeccba9d17", "dest": "/tmp/lsrtest_TWDJ_2/lsrtest_l4y4xc4k.tar", "gid": 0, "group": "root", "md5sum": "36bdeeddfd46bcd6dc0427a7b0d4d424", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659547861.2426639-210016-60226280122916/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:60 Wednesday 03 August 2022 17:31:02 +0000 (0:00:00.898) 0:00:11.419 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_l4y4xc4k.tar" ], "delta": "0:00:00.005733", "end": "2022-08-03 17:31:01.900451", "rc": 0, "start": "2022-08-03 17:31:01.894718" } 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_TWDJ_2/ansible/module_utils] ************************* task path: /tmp/tmplbj_o459/tests/tests_unit.yml:65 Wednesday 03 August 2022 17:31:02 +0000 (0:00:00.351) 0:00:11.770 ****** changed: [/cache/centos-7.qcow2c.snap] => (item=/tmp/lsrtest_TWDJ_2/ansible) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_TWDJ_2/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_TWDJ_2/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [/cache/centos-7.qcow2c.snap] => (item=/tmp/lsrtest_TWDJ_2/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_TWDJ_2/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_TWDJ_2/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/tmplbj_o459/tests/tests_unit.yml:74 Wednesday 03 August 2022 17:31:03 +0000 (0:00:00.734) 0:00:12.505 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_TWDJ_2/module_utils ]; then\n mv /tmp/lsrtest_TWDJ_2/module_utils /tmp/lsrtest_TWDJ_2/ansible\nfi\n", "delta": "0:00:00.006593", "end": "2022-08-03 17:31:02.969363", "rc": 0, "start": "2022-08-03 17:31:02.962770" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:80 Wednesday 03 August 2022 17:31:03 +0000 (0:00:00.334) 0:00:12.839 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_TWDJ_2 -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.009063", "end": "2022-08-03 17:31:03.272265", "rc": 0, "start": "2022-08-03 17:31:03.263202" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:88 Wednesday 03 August 2022 17:31:03 +0000 (0:00:00.302) 0:00:13.142 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_TWDJ_2/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-1659547863.8328884-210128-25704787263857/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:94 Wednesday 03 August 2022 17:31:04 +0000 (0:00:00.765) 0:00:13.907 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_TWDJ_2/library:/tmp/lsrtest_TWDJ_2/ansible/module_utils:/tmp/lsrtest_TWDJ_2/module_utils:/tmp/lsrtest_TWDJ_2" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_TWDJ_2] ****************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:106 Wednesday 03 August 2022 17:31:04 +0000 (0:00:00.031) 0:00:13.939 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_TWDJ_2" ], "delta": "0:00:00.004998", "end": "2022-08-03 17:31:04.376650", "rc": 0, "start": "2022-08-03 17:31:04.371652" } STDOUT: /tmp/lsrtest_TWDJ_2: total 440 drwxr-xr-x. 2 root root 79 Aug 3 17:05 library/ -rw-------. 1 root root 256000 Aug 3 17:31 lsrtest_l4y4xc4k.tar -rw-r--r--. 1 root root 0 Aug 3 17:31 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 17:31 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 17:31 test_network_connections.py drwx------. 4 root root 118 Aug 3 17:31 ./ drwxrwxrwt. 11 root root 4096 Aug 3 17:31 ../ /tmp/lsrtest_TWDJ_2/library: total 104 -rw-r--r--. 1 root root 2211 Aug 3 17:05 network_state.py -rw-r--r--. 1 root root 101576 Aug 3 17:05 network_connections.py -rw-r--r--. 1 root root 0 Aug 3 17:05 __init__.py drwxr-xr-x. 2 root root 79 Aug 3 17:05 ./ drwx------. 4 root root 118 Aug 3 17:31 ../ /tmp/lsrtest_TWDJ_2/ansible: total 0 -rw-r--r--. 1 root root 0 Aug 3 17:31 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 17:31 ./ drwxr-xr-x. 3 root root 44 Aug 3 17:31 module_utils/ drwx------. 4 root root 118 Aug 3 17:31 ../ /tmp/lsrtest_TWDJ_2/ansible/module_utils: total 0 drwxr-xr-x. 3 root root 138 Aug 3 17:05 network_lsr/ drwxr-xr-x. 3 root root 45 Aug 3 17:31 ../ -rw-r--r--. 1 root root 0 Aug 3 17:31 __init__.py drwxr-xr-x. 3 root root 44 Aug 3 17:31 ./ /tmp/lsrtest_TWDJ_2/ansible/module_utils/network_lsr: total 128 -rw-r--r--. 1 root root 11351 Aug 3 17:05 utils.py -rw-r--r--. 1 root root 1594 Aug 3 17:05 nm_provider.py drwxr-xr-x. 2 root root 126 Aug 3 17:05 nm/ -rw-r--r--. 1 root root 190 Aug 3 17:05 myerror.py -rw-r--r--. 1 root root 0 Aug 3 17:05 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 17:05 ethtool.py -rw-r--r--. 1 root root 105942 Aug 3 17:05 argument_validator.py drwxr-xr-x. 3 root root 138 Aug 3 17:05 ./ drwxr-xr-x. 3 root root 44 Aug 3 17:31 ../ /tmp/lsrtest_TWDJ_2/ansible/module_utils/network_lsr/nm: total 24 -rw-r--r--. 1 root root 3154 Aug 3 17:05 provider.py -rw-r--r--. 1 root root 343 Aug 3 17:05 __init__.py -rw-r--r--. 1 root root 175 Aug 3 17:05 error.py -rw-r--r--. 1 root root 3546 Aug 3 17:05 connection.py -rw-r--r--. 1 root root 2834 Aug 3 17:05 client.py -rw-r--r--. 1 root root 4012 Aug 3 17:05 active_connection.py drwxr-xr-x. 3 root root 138 Aug 3 17:05 ../ drwxr-xr-x. 2 root root 126 Aug 3 17:05 ./ TASK [debug] ******************************************************************* task path: /tmp/tmplbj_o459/tests/tests_unit.yml:108 Wednesday 03 August 2022 17:31:04 +0000 (0:00:00.308) 0:00:14.248 ****** ok: [/cache/centos-7.qcow2c.snap] => {} MSG: path /tmp/lsrtest_TWDJ_2/library:/tmp/lsrtest_TWDJ_2/ansible/module_utils:/tmp/lsrtest_TWDJ_2/module_utils:/tmp/lsrtest_TWDJ_2 TASK [Check if python2 is available] ******************************************* task path: /tmp/tmplbj_o459/tests/tests_unit.yml:111 Wednesday 03 August 2022 17:31:04 +0000 (0:00:00.030) 0:00:14.278 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003800", "end": "2022-08-03 17:31:04.708677", "rc": 0, "start": "2022-08-03 17:31:04.704877" } STDERR: Python 2.7.5 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:117 Wednesday 03 August 2022 17:31:05 +0000 (0:00:00.299) 0:00:14.578 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_TWDJ_2/test_network_connections.py", "--verbose" ], "delta": "0:00:00.304110", "end": "2022-08-03 17:31:05.332220", "rc": 0, "start": "2022-08-03 17:31:05.028110" } 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.136s OK TASK [Check if python3 is available] ******************************************* task path: /tmp/tmplbj_o459/tests/tests_unit.yml:126 Wednesday 03 August 2022 17:31:05 +0000 (0:00:00.628) 0:00:15.206 ****** fatal: [/cache/centos-7.qcow2c.snap]: 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/tmplbj_o459/tests/tests_unit.yml:132 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.303) 0:00:15.509 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show python2 unit test results] ****************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:140 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.022) 0:00:15.532 ****** ok: [/cache/centos-7.qcow2c.snap] => { "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.136s", "", "OK" ] } TASK [Show python3 unit test results] ****************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:145 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.034) 0:00:15.567 ****** ok: [/cache/centos-7.qcow2c.snap] => { "python3_result.stderr_lines": "VARIABLE IS NOT DEFINED!: 'dict object' has no attribute 'stderr_lines'" } TASK [remove local tar file] *************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:151 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.038) 0:00:15.605 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest_l4y4xc4k.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:157 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.208) 0:00:15.813 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "path": "/tmp/lsrtest_TWDJ_2", "state": "absent" } TASK [Ensure that at least one python unit test ran] *************************** task path: /tmp/tmplbj_o459/tests/tests_unit.yml:162 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.313) 0:00:16.127 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=34 changed=17 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.033) 0:00:16.160 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.38s /tmp/tmplbj_o459/tests/tests_unit.yml:8 --------------------------------------- Gathering Facts --------------------------------------------------------- 1.75s /tmp/tmplbj_o459/tests/tests_unit.yml:21 -------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmplbj_o459/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.90s /tmp/tmplbj_o459/tests/tests_unit.yml:54 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.77s /tmp/tmplbj_o459/tests/tests_unit.yml:88 -------------------------------------- Create /tmp/lsrtest_TWDJ_2/ansible/module_utils ------------------------- 0.73s /tmp/tmplbj_o459/tests/tests_unit.yml:65 -------------------------------------- Run python2 unit tests -------------------------------------------------- 0.63s /tmp/tmplbj_o459/tests/tests_unit.yml:117 ------------------------------------- Get stats of system files ----------------------------------------------- 0.52s /tmp/tmplbj_o459/tests/_backup.yml:6 ------------------------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:11 ------------------------------- Back up system files ---------------------------------------------------- 0.43s /tmp/tmplbj_o459/tests/_backup.yml:19 ----------------------------------------- create tempdir for code to test ----------------------------------------- 0.43s /tmp/tmplbj_o459/tests/tests_unit.yml:25 -------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.35s /tmp/tmplbj_o459/tests/tests_unit.yml:60 -------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.33s /tmp/tmplbj_o459/tests/tests_unit.yml:74 -------------------------------------- remove tempdir ---------------------------------------------------------- 0.31s /tmp/tmplbj_o459/tests/tests_unit.yml:157 ------------------------------------- ls -alrtFR /tmp/lsrtest_TWDJ_2 ------------------------------------------ 0.31s /tmp/tmplbj_o459/tests/tests_unit.yml:106 ------------------------------------- Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:4 -------------------------------- Check if python3 is available ------------------------------------------- 0.30s /tmp/tmplbj_o459/tests/tests_unit.yml:126 ------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmplbj_o459/tests/tests_unit.yml:80 -------------------------------------- Check if python2 is available ------------------------------------------- 0.30s /tmp/tmplbj_o459/tests/tests_unit.yml:111 ------------------------------------- find parent directory and path of module_utils -------------------------- 0.23s /tmp/tmplbj_o459/tests/tasks/get_modules_and_utils_paths.yml:69 --------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmplbj_o459/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmplbj_o459/tests/_restore.yml:4 Wednesday 03 August 2022 17:31:06 +0000 (0:00:00.019) 0:00:16.180 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.007747", "end": "2022-08-03 17:31:06.647628", "rc": 0, "start": "2022-08-03 17:31:06.639881" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=35 changed=18 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:31:07 +0000 (0:00:00.349) 0:00:16.529 ****** =============================================================================== Install dependencies ---------------------------------------------------- 4.38s /tmp/tmplbj_o459/tests/tests_unit.yml:8 --------------------------------------- Gathering Facts --------------------------------------------------------- 1.75s /tmp/tmplbj_o459/tests/tests_unit.yml:21 -------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmplbj_o459/tests/tests_unit.yml:3 --------------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.90s /tmp/tmplbj_o459/tests/tests_unit.yml:54 -------------------------------------- Copy unit test to remote system ----------------------------------------- 0.77s /tmp/tmplbj_o459/tests/tests_unit.yml:88 -------------------------------------- Create /tmp/lsrtest_TWDJ_2/ansible/module_utils ------------------------- 0.73s /tmp/tmplbj_o459/tests/tests_unit.yml:65 -------------------------------------- Run python2 unit tests -------------------------------------------------- 0.63s /tmp/tmplbj_o459/tests/tests_unit.yml:117 ------------------------------------- Get stats of system files ----------------------------------------------- 0.52s /tmp/tmplbj_o459/tests/_backup.yml:6 ------------------------------------------ Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:11 ------------------------------- Back up system files ---------------------------------------------------- 0.43s /tmp/tmplbj_o459/tests/_backup.yml:19 ----------------------------------------- create tempdir for code to test ----------------------------------------- 0.43s /tmp/tmplbj_o459/tests/tests_unit.yml:25 -------------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.35s /tmp/tmplbj_o459/tests/tests_unit.yml:60 -------------------------------------- Restore system files ---------------------------------------------------- 0.35s /tmp/tmplbj_o459/tests/_restore.yml:4 ----------------------------------------- Move module_utils to ansible directory ---------------------------------- 0.33s /tmp/tmplbj_o459/tests/tests_unit.yml:74 -------------------------------------- remove tempdir ---------------------------------------------------------- 0.31s /tmp/tmplbj_o459/tests/tests_unit.yml:157 ------------------------------------- ls -alrtFR /tmp/lsrtest_TWDJ_2 ------------------------------------------ 0.31s /tmp/tmplbj_o459/tests/tests_unit.yml:106 ------------------------------------- Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmplbj_o459/tests/tasks/enable_epel.yml:4 -------------------------------- Check if python3 is available ------------------------------------------- 0.30s /tmp/tmplbj_o459/tests/tests_unit.yml:126 ------------------------------------- Fake out python module directories, primarily for python2 --------------- 0.30s /tmp/tmplbj_o459/tests/tests_unit.yml:80 -------------------------------------- Check if python2 is available ------------------------------------------- 0.30s /tmp/tmplbj_o459/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/tmpe4dwqm__ executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmppolohs8h/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmppolohs8h/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:56:08 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/centos-7.qcow2c.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659549367.5303066, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "58d0b40c7f3b3443c40de4c19aee35ddf579fd17", "ctime": 1659549367.5303066, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8330, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659548002.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 61, "uid": 0, "version": "18446744071872758404", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmppolohs8h/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:56:08 +0000 (0:00:00.505) 0:00:00.523 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-7.qcow2c.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': '', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659548002.0, 'block_size': 4096, 'inode': 8330, 'isgid': False, 'size': 61, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744071872758404', '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': 1659549367.5303066, 'isdir': False, 'ctime': 1659549367.5303066, 'isblk': False, 'wgrp': False, 'checksum': '58d0b40c7f3b3443c40de4c19aee35ddf579fd17', 'dev': 64769, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': []}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659549367.5303066, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "58d0b40c7f3b3443c40de4c19aee35ddf579fd17", "ctime": 1659549367.5303066, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8330, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659548002.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 61, "uid": 0, "version": "18446744071872758404", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmppolohs8h/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:56:09 +0000 (0:00:00.035) 0:00:00.558 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004810", "end": "2022-08-03 17:56:09.118072", "rc": 0, "start": "2022-08-03 17:56:09.113262" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:56:09 +0000 (0:00:00.427) 0:00:00.986 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.51s /tmp/tmppolohs8h/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.43s /tmp/tmppolohs8h/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmppolohs8h/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /tmp/tmppolohs8h/tests/network/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:3 Wednesday 03 August 2022 17:56:09 +0000 (0:00:00.017) 0:00:01.003 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:6 Wednesday 03 August 2022 17:56:10 +0000 (0:00:00.994) 0:00:01.997 ****** included: /tmp/tmppolohs8h/tests/network/tasks/el_repo_setup.yml for /cache/centos-7.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:56:10 +0000 (0:00:00.027) 0:00:02.025 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:56:10 +0000 (0:00:00.021) 0:00:02.046 ****** included: /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml for /cache/centos-7.qcow2c.snap TASK [Create EPEL 7] *********************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:56:10 +0000 (0:00:00.030) 0:00:02.077 ****** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmppolohs8h/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:56:10 +0000 (0:00:00.301) 0:00:02.379 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.165369", "end": "2022-08-03 17:56:10.984538", "rc": 0, "start": "2022-08-03 17:56:10.819169" } STDOUT: Loaded plugins: fastestmirror ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/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/7/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = True 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=genclo&content=centos 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/7/epel pkgdir = /var/cache/yum/x86_64/7/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/tmppolohs8h/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:56:11 +0000 (0:00:00.471) 0:00:02.850 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:56:11 +0000 (0:00:00.021) 0:00:02.872 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install dependencies] **************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:8 Wednesday 03 August 2022 17:56:11 +0000 (0:00:00.019) 0:00:02.891 ****** ok: [/cache/centos-7.qcow2c.snap] => (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/centos-7.qcow2c.snap] (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/centos-7.qcow2c.snap] (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/centos-7.qcow2c.snap] => (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/centos-7.qcow2c.snap] => (item=python2-mock) => { "ansible_loop_var": "item", "changed": true, "changes": { "installed": [ "python2-mock" ] }, "item": "python2-mock", "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.umd.edu\n * epel: dl.fedoraproject.org\n * extras: mirror.math.princeton.edu\n * updates: mirror.cs.uwp.edu\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/tmppolohs8h/tests/network/tests_unit.yml:21 Wednesday 03 August 2022 17:56:23 +0000 (0:00:11.683) 0:00:14.574 ****** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [create tempdir for code to test] ***************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:25 Wednesday 03 August 2022 17:56:23 +0000 (0:00:00.790) 0:00:15.365 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_3tZSdU", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [get tempfile for tar] **************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:31 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.442) 0:00:15.808 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/lsrtest_gijrwdzh.tar", "size": 0, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:38 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.203) 0:00:16.012 ****** included: /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml for /cache/centos-7.qcow2c.snap TASK [set collection paths] **************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml:3 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.028) 0:00:16.041 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "collection_paths": [ "/tmp/tmpe4dwqm__", "/tmp/tmpe4dwqm__" ] }, "changed": false } TASK [set search paths] ******************************************************** task path: /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml:13 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.077) 0:00:16.118 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "module_utils_search_path": [ "../../module_utils", "../module_utils", "/root/.ansible/plugins/module_utils", "/usr/share/ansible/plugins/module_utils" ], "modules_search_path": [ "../../library", "../library", "/root/.ansible/plugins/modules", "/usr/share/ansible/plugins/modules" ] }, "changed": false } TASK [find parent directory and path of modules] ******************************* task path: /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml:42 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.083) 0:00:16.202 ****** ok: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../library ../library /root/.ansible/plugins/modules /usr/share/ansible/plugins/modules; do\n if [ -f \"$dir/network_connections.py\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpe4dwqm__ /tmp/tmpe4dwqm__; 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.004414", "end": "2022-08-03 17:56:24.861986", "rc": 0, "start": "2022-08-03 17:56:24.857572" } STDOUT: /tmp/tmpe4dwqm__ 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/tmpe4dwqm__ /tmp/tmpe4dwqm__ + '[' '!' -d /tmp/tmpe4dwqm__ ']' + cd /tmp/tmpe4dwqm__ + for subdir in ansible_collections/*/*/plugins/modules + '[' -f ansible_collections/fedora/linux_system_roles/plugins/modules/network_connections.py ']' + echo /tmp/tmpe4dwqm__ + echo ansible_collections/fedora/linux_system_roles/plugins/modules + exit 0 TASK [find parent directory and path of module_utils] ************************** task path: /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml:69 Wednesday 03 August 2022 17:56:24 +0000 (0:00:00.227) 0:00:16.429 ****** ok: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../module_utils ../module_utils /root/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils; do\n if [ -d \"$dir/network_lsr\" ]; then\n readlink -f \"$(dirname \"$dir\")\"\n basename \"$dir\"\n exit 0\n fi\ndone\nfor dir in /tmp/tmpe4dwqm__ /tmp/tmpe4dwqm__; 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.004684", "end": "2022-08-03 17:56:25.092347", "rc": 0, "start": "2022-08-03 17:56:25.087663" } STDOUT: /tmp/tmpe4dwqm__ 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/tmpe4dwqm__ /tmp/tmpe4dwqm__ + '[' '!' -d /tmp/tmpe4dwqm__ ']' + cd /tmp/tmpe4dwqm__ + for subdir in ansible_collections/*/*/plugins/module_utils + '[' -d ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr ']' + echo /tmp/tmpe4dwqm__ + echo ansible_collections/fedora/linux_system_roles/plugins/module_utils + exit 0 TASK [Create Tar file] ********************************************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:44 Wednesday 03 August 2022 17:56:25 +0000 (0:00:00.231) 0:00:16.660 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_gijrwdzh.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/tmp/tmpe4dwqm__", "ansible_collections/fedora/linux_system_roles/plugins/modules", "-C", "/tmp/tmpe4dwqm__", "ansible_collections/fedora/linux_system_roles/plugins/module_utils" ], "delta": "0:00:00.005177", "end": "2022-08-03 17:56:25.307758", "rc": 0, "start": "2022-08-03 17:56:25.302581" } 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/tmppolohs8h/tests/network/tests_unit.yml:54 Wednesday 03 August 2022 17:56:25 +0000 (0:00:00.209) 0:00:16.870 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "e7419b4b126703dab470f42dc8985fd794bb3fa1", "dest": "/tmp/lsrtest_3tZSdU/lsrtest_gijrwdzh.tar", "gid": 0, "group": "root", "md5sum": "fd2d6e655c2f60c10c457e7760264cce", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 256000, "src": "/root/.ansible/tmp/ansible-tmp-1659549385.391181-253434-177362302828389/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:60 Wednesday 03 August 2022 17:56:26 +0000 (0:00:00.880) 0:00:17.750 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-xvf", "lsrtest_gijrwdzh.tar" ], "delta": "0:00:00.006712", "end": "2022-08-03 17:56:26.200879", "rc": 0, "start": "2022-08-03 17:56:26.194167" } 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_3tZSdU/ansible/module_utils] ************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:65 Wednesday 03 August 2022 17:56:26 +0000 (0:00:00.318) 0:00:18.069 ****** changed: [/cache/centos-7.qcow2c.snap] => (item=/tmp/lsrtest_3tZSdU/ansible) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_3tZSdU/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_3tZSdU/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [/cache/centos-7.qcow2c.snap] => (item=/tmp/lsrtest_3tZSdU/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_3tZSdU/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_3tZSdU/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/tmppolohs8h/tests/network/tests_unit.yml:74 Wednesday 03 August 2022 17:56:27 +0000 (0:00:00.751) 0:00:18.820 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "if [ -d /tmp/lsrtest_3tZSdU/module_utils ]; then\n mv /tmp/lsrtest_3tZSdU/module_utils /tmp/lsrtest_3tZSdU/ansible\nfi\n", "delta": "0:00:00.004938", "end": "2022-08-03 17:56:27.259741", "rc": 0, "start": "2022-08-03 17:56:27.254803" } TASK [Fake out python module directories, primarily for python2] *************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:80 Wednesday 03 August 2022 17:56:27 +0000 (0:00:00.305) 0:00:19.126 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "for dir in $(find /tmp/lsrtest_3tZSdU -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.014674", "end": "2022-08-03 17:56:27.570503", "rc": 0, "start": "2022-08-03 17:56:27.555829" } TASK [Copy unit test to remote system] ***************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:88 Wednesday 03 August 2022 17:56:27 +0000 (0:00:00.309) 0:00:19.435 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "24cd18a43f41e2401686623ab6f6bd9aa826a6c6", "dest": "/tmp/lsrtest_3tZSdU/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-1659549387.9542317-253546-115462238737543/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:94 Wednesday 03 August 2022 17:56:28 +0000 (0:00:00.743) 0:00:20.179 ****** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_3tZSdU/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_3tZSdU" }, "changed": false } TASK [ls -alrtFR /tmp/lsrtest_3tZSdU] ****************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:98 Wednesday 03 August 2022 17:56:28 +0000 (0:00:00.033) 0:00:20.213 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_3tZSdU" ], "delta": "0:00:00.005694", "end": "2022-08-03 17:56:28.654732", "rc": 0, "start": "2022-08-03 17:56:28.649038" } STDOUT: /tmp/lsrtest_3tZSdU: total 440 -rw-------. 1 root root 256000 Aug 3 17:56 lsrtest_gijrwdzh.tar -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 39 Aug 3 17:56 ansible_collections/ drwxr-xr-x. 3 root root 45 Aug 3 17:56 ansible/ -rw-r--r--. 1 root root 188004 Aug 3 17:56 test_network_connections.py drwx------. 4 root root 130 Aug 3 17:56 ./ drwxrwxrwt. 11 root root 4096 Aug 3 17:56 ../ /tmp/lsrtest_3tZSdU/ansible_collections: total 0 -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 39 Aug 3 17:56 ./ drwxr-xr-x. 3 root root 51 Aug 3 17:56 fedora/ drwx------. 4 root root 130 Aug 3 17:56 ../ /tmp/lsrtest_3tZSdU/ansible_collections/fedora: total 0 drwxr-xr-x. 3 root root 39 Aug 3 17:56 ../ -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 51 Aug 3 17:56 ./ drwxr-xr-x. 3 root root 40 Aug 3 17:56 linux_system_roles/ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles: total 0 drwxr-xr-x. 3 root root 51 Aug 3 17:56 ../ drwxr-xr-x. 4 root root 60 Aug 3 17:56 plugins/ -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 40 Aug 3 17:56 ./ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins: total 0 drwxr-xr-x. 2 root root 79 Aug 3 17:05 modules/ -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 40 Aug 3 17:56 ../ drwxr-xr-x. 4 root root 60 Aug 3 17:56 ./ drwxr-xr-x. 3 root root 44 Aug 3 17:56 module_utils/ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/modules: total 104 -rw-r--r--. 1 root root 2211 Aug 3 17:05 network_state.py -rw-r--r--. 1 root root 0 Aug 3 17:05 __init__.py drwxr-xr-x. 2 root root 79 Aug 3 17:05 ./ -rw-r--r--. 1 root root 101852 Aug 3 17:05 network_connections.py drwxr-xr-x. 4 root root 60 Aug 3 17:56 ../ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/module_utils: total 0 drwxr-xr-x. 3 root root 138 Aug 3 17:05 network_lsr/ drwxr-xr-x. 4 root root 60 Aug 3 17:56 ../ -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 44 Aug 3 17:56 ./ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr: total 128 drwxr-xr-x. 2 root root 126 Aug 3 17:05 nm/ -rw-r--r--. 1 root root 190 Aug 3 17:05 myerror.py -rw-r--r--. 1 root root 0 Aug 3 17:05 __init__.py -rw-r--r--. 1 root root 1706 Aug 3 17:05 ethtool.py drwxr-xr-x. 3 root root 138 Aug 3 17:05 ./ -rw-r--r--. 1 root root 11397 Aug 3 17:05 utils.py -rw-r--r--. 1 root root 1640 Aug 3 17:05 nm_provider.py -rw-r--r--. 1 root root 106034 Aug 3 17:05 argument_validator.py drwxr-xr-x. 3 root root 44 Aug 3 17:56 ../ /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/module_utils/network_lsr/nm: total 28 -rw-r--r--. 1 root root 175 Aug 3 17:05 error.py drwxr-xr-x. 3 root root 138 Aug 3 17:05 ../ drwxr-xr-x. 2 root root 126 Aug 3 17:05 ./ -rw-r--r--. 1 root root 3292 Aug 3 17:05 provider.py -rw-r--r--. 1 root root 389 Aug 3 17:05 __init__.py -rw-r--r--. 1 root root 3638 Aug 3 17:05 connection.py -rw-r--r--. 1 root root 2880 Aug 3 17:05 client.py -rw-r--r--. 1 root root 4104 Aug 3 17:05 active_connection.py /tmp/lsrtest_3tZSdU/ansible: total 0 -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 3 root root 45 Aug 3 17:56 ./ drwxr-xr-x. 2 root root 25 Aug 3 17:56 module_utils/ drwx------. 4 root root 130 Aug 3 17:56 ../ /tmp/lsrtest_3tZSdU/ansible/module_utils: total 0 drwxr-xr-x. 3 root root 45 Aug 3 17:56 ../ -rw-r--r--. 1 root root 0 Aug 3 17:56 __init__.py drwxr-xr-x. 2 root root 25 Aug 3 17:56 ./ TASK [debug] ******************************************************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:100 Wednesday 03 August 2022 17:56:28 +0000 (0:00:00.307) 0:00:20.520 ****** ok: [/cache/centos-7.qcow2c.snap] => {} MSG: path /tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/modules:/tmp/lsrtest_3tZSdU/ansible/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_3tZSdU/ansible_collections/fedora/linux_system_roles/plugins/module_utils:/tmp/lsrtest_3tZSdU TASK [Check if python2 is available] ******************************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:103 Wednesday 03 August 2022 17:56:29 +0000 (0:00:00.030) 0:00:20.551 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003933", "end": "2022-08-03 17:56:28.976138", "rc": 0, "start": "2022-08-03 17:56:28.972205" } STDERR: Python 2.7.5 TASK [Run python2 unit tests] ************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:109 Wednesday 03 August 2022 17:56:29 +0000 (0:00:00.287) 0:00:20.838 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "python2", "/tmp/lsrtest_3tZSdU/test_network_connections.py", "--verbose" ], "delta": "0:00:00.302380", "end": "2022-08-03 17:56:29.581222", "rc": 0, "start": "2022-08-03 17:56:29.278842" } 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.124s OK TASK [Check if python3 is available] ******************************************* task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:118 Wednesday 03 August 2022 17:56:29 +0000 (0:00:00.615) 0:00:21.454 ****** fatal: [/cache/centos-7.qcow2c.snap]: 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/tmppolohs8h/tests/network/tests_unit.yml:124 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.303) 0:00:21.758 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Show python2 unit test results] ****************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:132 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.024) 0:00:21.783 ****** ok: [/cache/centos-7.qcow2c.snap] => { "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.124s", "", "OK" ] } TASK [Show python3 unit test results] ****************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:137 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.037) 0:00:21.820 ****** ok: [/cache/centos-7.qcow2c.snap] => { "python3_result.stderr_lines": "VARIABLE IS NOT DEFINED!: 'dict object' has no attribute 'stderr_lines'" } TASK [remove local tar file] *************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:143 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.040) 0:00:21.861 ****** changed: [/cache/centos-7.qcow2c.snap -> localhost] => { "changed": true, "path": "/tmp/lsrtest_gijrwdzh.tar", "state": "absent" } TASK [remove tempdir] ********************************************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:149 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.212) 0:00:22.074 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "path": "/tmp/lsrtest_3tZSdU", "state": "absent" } TASK [Ensure that at least one python unit test ran] *************************** task path: /tmp/tmppolohs8h/tests/network/tests_unit.yml:154 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.312) 0:00:22.386 ****** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=34 changed=17 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.031) 0:00:22.418 ****** =============================================================================== Install dependencies --------------------------------------------------- 11.68s /tmp/tmppolohs8h/tests/network/tests_unit.yml:8 ------------------------------- Gathering Facts --------------------------------------------------------- 0.99s /tmp/tmppolohs8h/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.88s /tmp/tmppolohs8h/tests/network/tests_unit.yml:54 ------------------------------ Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmppolohs8h/tests/network/tests_unit.yml:21 ------------------------------ Create /tmp/lsrtest_3tZSdU/ansible/module_utils ------------------------- 0.75s /tmp/tmppolohs8h/tests/network/tests_unit.yml:65 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.74s /tmp/tmppolohs8h/tests/network/tests_unit.yml:88 ------------------------------ Run python2 unit tests -------------------------------------------------- 0.62s /tmp/tmppolohs8h/tests/network/tests_unit.yml:109 ----------------------------- Get stats of system files ----------------------------------------------- 0.51s /tmp/tmppolohs8h/tests/network/_backup.yml:6 ---------------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:11 ----------------------- create tempdir for code to test ----------------------------------------- 0.44s /tmp/tmppolohs8h/tests/network/tests_unit.yml:25 ------------------------------ Back up system files ---------------------------------------------------- 0.43s /tmp/tmppolohs8h/tests/network/_backup.yml:19 --------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.32s /tmp/tmppolohs8h/tests/network/tests_unit.yml:60 ------------------------------ remove tempdir ---------------------------------------------------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:149 ----------------------------- Fake out python module directories, primarily for python2 --------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:80 ------------------------------ ls -alrtFR /tmp/lsrtest_3tZSdU ------------------------------------------ 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:98 ------------------------------ Move module_utils to ansible directory ---------------------------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:74 ------------------------------ Check if python3 is available ------------------------------------------- 0.30s /tmp/tmppolohs8h/tests/network/tests_unit.yml:118 ----------------------------- Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:4 ------------------------ Check if python2 is available ------------------------------------------- 0.29s /tmp/tmppolohs8h/tests/network/tests_unit.yml:103 ----------------------------- find parent directory and path of module_utils -------------------------- 0.23s /tmp/tmppolohs8h/tests/network/tasks/get_modules_and_utils_paths.yml:69 ------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmppolohs8h/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmppolohs8h/tests/network/_restore.yml:4 Wednesday 03 August 2022 17:56:30 +0000 (0:00:00.019) 0:00:22.437 ****** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006483", "end": "2022-08-03 17:56:30.883002", "rc": 0, "start": "2022-08-03 17:56:30.876519" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=35 changed=18 unreachable=0 failed=0 skipped=5 rescued=0 ignored=2 Wednesday 03 August 2022 17:56:31 +0000 (0:00:00.317) 0:00:22.755 ****** =============================================================================== Install dependencies --------------------------------------------------- 11.68s /tmp/tmppolohs8h/tests/network/tests_unit.yml:8 ------------------------------- Gathering Facts --------------------------------------------------------- 0.99s /tmp/tmppolohs8h/tests/network/tests_unit.yml:3 ------------------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.88s /tmp/tmppolohs8h/tests/network/tests_unit.yml:54 ------------------------------ Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmppolohs8h/tests/network/tests_unit.yml:21 ------------------------------ Create /tmp/lsrtest_3tZSdU/ansible/module_utils ------------------------- 0.75s /tmp/tmppolohs8h/tests/network/tests_unit.yml:65 ------------------------------ Copy unit test to remote system ----------------------------------------- 0.74s /tmp/tmppolohs8h/tests/network/tests_unit.yml:88 ------------------------------ Run python2 unit tests -------------------------------------------------- 0.62s /tmp/tmppolohs8h/tests/network/tests_unit.yml:109 ----------------------------- Get stats of system files ----------------------------------------------- 0.51s /tmp/tmppolohs8h/tests/network/_backup.yml:6 ---------------------------------- Enable EPEL 7 ----------------------------------------------------------- 0.47s /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:11 ----------------------- create tempdir for code to test ----------------------------------------- 0.44s /tmp/tmppolohs8h/tests/network/tests_unit.yml:25 ------------------------------ Back up system files ---------------------------------------------------- 0.43s /tmp/tmppolohs8h/tests/network/_backup.yml:19 --------------------------------- Untar testrepo.tar ------------------------------------------------------ 0.32s /tmp/tmppolohs8h/tests/network/tests_unit.yml:60 ------------------------------ Restore system files ---------------------------------------------------- 0.32s /tmp/tmppolohs8h/tests/network/_restore.yml:4 --------------------------------- remove tempdir ---------------------------------------------------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:149 ----------------------------- Fake out python module directories, primarily for python2 --------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:80 ------------------------------ ls -alrtFR /tmp/lsrtest_3tZSdU ------------------------------------------ 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:98 ------------------------------ Move module_utils to ansible directory ---------------------------------- 0.31s /tmp/tmppolohs8h/tests/network/tests_unit.yml:74 ------------------------------ Check if python3 is available ------------------------------------------- 0.30s /tmp/tmppolohs8h/tests/network/tests_unit.yml:118 ----------------------------- Create EPEL 7 ----------------------------------------------------------- 0.30s /tmp/tmppolohs8h/tests/network/tasks/enable_epel.yml:4 ------------------------ Check if python2 is available ------------------------------------------- 0.29s /tmp/tmppolohs8h/tests/network/tests_unit.yml:103 -----------------------------