# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_unit.yml ******************************************************* 2 plays in /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml PLAY [Setup for test running] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:3 Thursday 30 November 2023 17:14:27 +0000 (0:00:00.016) 0:00:00.016 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:6 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.561) 0:00:00.578 ***** included: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.028) 0:00:00.606 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.227) 0:00:00.833 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.218) 0:00:01.052 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.036) 0:00:01.088 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.027) 0:00:01.115 ***** included: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.047) 0:00:01.163 ***** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 17:14:28 +0000 (0:00:00.234) 0:00:01.397 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "yum-utils-1.1.31-54.el7_8.noarch providing yum-utils is already installed" ] } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 17:14:29 +0000 (0:00:00.482) 0:00:01.880 ***** ok: [sut] => { "changed": false, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.177166", "end": "2023-11-30 17:14:29.677883", "rc": 0, "start": "2023-11-30 17:14:29.500717" } 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 = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&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: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 17:14:29 +0000 (0:00:00.302) 0:00:02.183 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 17:14:29 +0000 (0:00:00.016) 0:00:02.200 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install dependencies] **************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:9 Thursday 30 November 2023 17:14:29 +0000 (0:00:00.015) 0:00:02.215 ***** ok: [sut] => (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: [sut] (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: [sut] (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: [sut] => (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: [sut] => (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: download.cf.centos.org\n * epel: forksystems.mm.fcix.net\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\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: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:24 Thursday 30 November 2023 17:14:33 +0000 (0:00:03.911) 0:00:06.127 ***** ok: [sut] META: ran handlers TASK [Create tempdir for code to test] ***************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:29 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.404) 0:00:06.531 ***** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsrtest_R5nXPZ", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Get tempfile for tar] **************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:35 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.225) 0:00:06.756 ***** changed: [sut -> localhost] => { "changed": true, "gid": 1001, "group": "jenkins", "mode": "0600", "owner": "jenkins", "path": "/tmp/lsrtest_rkwqk89x.tar", "size": 0, "state": "file", "uid": 1000090000 } TASK [Include the task 'get_modules_and_utils_paths.yml'] ********************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:42 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.129) 0:00:06.885 ***** included: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml for sut TASK [Set collection paths] **************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:3 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.019) 0:00:06.905 ***** ok: [sut] => { "ansible_facts": { "collection_paths": [ "/WORKDIR/git-code_refactor4d2psdfe/.collection", "/WORKDIR/git-code_refactor4d2psdfe/.collection" ] }, "changed": false } TASK [Set search paths] ******************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:13 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.021) 0:00:06.927 ***** ok: [sut] => { "ansible_facts": { "module_utils_search_path": [ "../../module_utils", "../module_utils", "/home/jenkins/.ansible/plugins/module_utils", "/usr/share/ansible/plugins/module_utils" ], "modules_search_path": [ "../../library", "../library", "/home/jenkins/.ansible/plugins/modules", "/usr/share/ansible/plugins/modules" ] }, "changed": false } TASK [Find parent directory and path of modules] ******************************* task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:42 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.021) 0:00:06.949 ***** ok: [sut -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../library ../library /home/jenkins/.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 /WORKDIR/git-code_refactor4d2psdfe/.collection /WORKDIR/git-code_refactor4d2psdfe/.collection; 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.006710", "end": "2023-11-30 17:14:34.595643", "rc": 0, "start": "2023-11-30 17:14:34.588933" } STDOUT: /WORKDIR/git-code_refactor4d2psdfe library STDERR: + for dir in ../../library ../library /home/jenkins/.ansible/plugins/modules /usr/share/ansible/plugins/modules + '[' -f ../../library/network_connections.py ']' + for dir in ../../library ../library /home/jenkins/.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: /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:69 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.155) 0:00:07.105 ***** ok: [sut -> localhost] => { "changed": false, "cmd": "set -euxo pipefail\nfor dir in ../../module_utils ../module_utils /home/jenkins/.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 /WORKDIR/git-code_refactor4d2psdfe/.collection /WORKDIR/git-code_refactor4d2psdfe/.collection; 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.006723", "end": "2023-11-30 17:14:34.749419", "rc": 0, "start": "2023-11-30 17:14:34.742696" } STDOUT: /WORKDIR/git-code_refactor4d2psdfe module_utils STDERR: + for dir in ../../module_utils ../module_utils /home/jenkins/.ansible/plugins/module_utils /usr/share/ansible/plugins/module_utils + '[' -d ../../module_utils/network_lsr ']' + for dir in ../../module_utils ../module_utils /home/jenkins/.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: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:49 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.153) 0:00:07.258 ***** ok: [sut -> localhost] => { "changed": false, "cmd": [ "tar", "-cvf", "/tmp/lsrtest_rkwqk89x.tar", "--exclude", "*.pyc", "--exclude", "__pycache__", "-C", "/WORKDIR/git-code_refactor4d2psdfe", "library", "-C", "/WORKDIR/git-code_refactor4d2psdfe", "module_utils" ], "delta": "0:00:00.004333", "end": "2023-11-30 17:14:34.917669", "rc": 0, "start": "2023-11-30 17:14:34.913336" } 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: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:61 Thursday 30 November 2023 17:14:34 +0000 (0:00:00.167) 0:00:07.426 ***** changed: [sut] => { "changed": true, "checksum": "4c302f924a6b3b91c501e43226b8de7de07476b7", "dest": "/tmp/lsrtest_R5nXPZ/lsrtest_rkwqk89x.tar", "gid": 0, "group": "root", "md5sum": "5340867d829b0d675c94a6d569bd2fc7", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 266240, "src": "/root/.ansible/tmp/ansible-tmp-1701364474.970158-20670-180180793650878/source", "state": "file", "uid": 0 } TASK [Untar testrepo.tar] ****************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:67 Thursday 30 November 2023 17:14:35 +0000 (0:00:00.594) 0:00:08.020 ***** changed: [sut] => { "changed": true, "dest": "/tmp/lsrtest_R5nXPZ", "extract_results": { "cmd": [ "/usr/bin/gtar", "--extract", "-C", "/tmp/lsrtest_R5nXPZ", "-f", "/tmp/lsrtest_R5nXPZ/lsrtest_rkwqk89x.tar" ], "err": "", "out": "", "rc": 0 }, "gid": 0, "group": "root", "handler": "TarArchive", "mode": "0700", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "src": "/tmp/lsrtest_R5nXPZ/lsrtest_rkwqk89x.tar", "state": "directory", "uid": 0 } TASK [Create subdirectory '/ansible/module_utils' under '/tmp/lsrtest_R5nXPZ'] *** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:73 Thursday 30 November 2023 17:14:36 +0000 (0:00:00.711) 0:00:08.731 ***** changed: [sut] => (item=/tmp/lsrtest_R5nXPZ/ansible) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_R5nXPZ/ansible", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_R5nXPZ/ansible", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } changed: [sut] => (item=/tmp/lsrtest_R5nXPZ/ansible/module_utils) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/tmp/lsrtest_R5nXPZ/ansible/module_utils", "mode": "0755", "owner": "root", "path": "/tmp/lsrtest_R5nXPZ/ansible/module_utils", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Move module_utils to ansible directory] ********************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:83 Thursday 30 November 2023 17:14:36 +0000 (0:00:00.366) 0:00:09.098 ***** ok: [sut] => { "changed": false, "cmd": "if [ -d /tmp/lsrtest_R5nXPZ/module_utils ]; then\n mv /tmp/lsrtest_R5nXPZ/module_utils /tmp/lsrtest_R5nXPZ/ansible\nfi\n", "delta": "0:00:00.004773", "end": "2023-11-30 17:14:36.721933", "rc": 0, "start": "2023-11-30 17:14:36.717160" } TASK [Fake out python module directories, primarily for python2] *************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:90 Thursday 30 November 2023 17:14:36 +0000 (0:00:00.127) 0:00:09.225 ***** ok: [sut] => { "changed": false, "cmd": "for dir in $(find /tmp/lsrtest_R5nXPZ -type d -print); do\n if [ ! -f \"$dir/__init__.py\" ]; then\n touch \"$dir/__init__.py\"\n fi\ndone\n", "delta": "0:00:00.011008", "end": "2023-11-30 17:14:36.854073", "rc": 0, "start": "2023-11-30 17:14:36.843065" } TASK [Copy unit test to remote system] ***************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:99 Thursday 30 November 2023 17:14:36 +0000 (0:00:00.131) 0:00:09.357 ***** changed: [sut] => { "changed": true, "checksum": "569b0a1f04af29df39544b7b27420d5fcf7cdbff", "dest": "/tmp/lsrtest_R5nXPZ/test_network_connections.py", "gid": 0, "group": "root", "md5sum": "b9b4c09bf6eee737963e78ec9a4bddf8", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 204895, "src": "/root/.ansible/tmp/ansible-tmp-1701364476.8968341-20743-195202901149168/source", "state": "file", "uid": 0 } TASK [Set _lsr_python_path] **************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:105 Thursday 30 November 2023 17:14:37 +0000 (0:00:00.488) 0:00:09.845 ***** ok: [sut] => { "ansible_facts": { "_lsr_python_path": "/tmp/lsrtest_R5nXPZ/library:/tmp/lsrtest_R5nXPZ/ansible/module_utils:/tmp/lsrtest_R5nXPZ/module_utils:/tmp/lsrtest_R5nXPZ" }, "changed": false } TASK [List the files in /tmp/lsrtest_R5nXPZ] *********************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:117 Thursday 30 November 2023 17:14:37 +0000 (0:00:00.018) 0:00:09.863 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-alrtFR", "/tmp/lsrtest_R5nXPZ" ], "delta": "0:00:00.004667", "end": "2023-11-30 17:14:37.486138", "rc": 0, "start": "2023-11-30 17:14:37.481471" } STDOUT: /tmp/lsrtest_R5nXPZ: total 480 drwxr-xr-x. 2 1000090000 1001 4096 Nov 30 16:44 library/ -rw-------. 1 root root 266240 Nov 30 17:14 lsrtest_rkwqk89x.tar -rw-r--r--. 1 root root 0 Nov 30 17:14 __init__.py drwxr-xr-x. 3 root root 4096 Nov 30 17:14 ansible/ -rw-r--r--. 1 root root 204895 Nov 30 17:14 test_network_connections.py drwx------. 4 root root 4096 Nov 30 17:14 ./ drwxrwxrwt. 10 root root 4096 Nov 30 17:14 ../ /tmp/lsrtest_R5nXPZ/library: total 116 -rw-r--r--. 1 1000090000 1001 2105 Nov 30 16:44 network_state.py -rw-r--r--. 1 1000090000 1001 104818 Nov 30 16:44 network_connections.py -rw-r--r--. 1 1000090000 1001 0 Nov 30 16:44 __init__.py drwxr-xr-x. 2 1000090000 1001 4096 Nov 30 16:44 ./ drwx------. 4 root root 4096 Nov 30 17:14 ../ /tmp/lsrtest_R5nXPZ/ansible: total 12 drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 17:14 module_utils/ -rw-r--r--. 1 root root 0 Nov 30 17:14 __init__.py drwxr-xr-x. 3 root root 4096 Nov 30 17:14 ./ drwx------. 4 root root 4096 Nov 30 17:14 ../ /tmp/lsrtest_R5nXPZ/ansible/module_utils: total 12 drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 16:44 network_lsr/ -rw-r--r--. 1 root root 0 Nov 30 17:14 __init__.py drwxr-xr-x. 3 root root 4096 Nov 30 17:14 ../ drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 17:14 ./ /tmp/lsrtest_R5nXPZ/ansible/module_utils/network_lsr: total 144 -rw-r--r--. 1 1000090000 1001 11387 Nov 30 16:44 utils.py -rw-r--r--. 1 1000090000 1001 1594 Nov 30 16:44 nm_provider.py drwxr-xr-x. 2 1000090000 1001 4096 Nov 30 16:44 nm/ -rw-r--r--. 1 1000090000 1001 190 Nov 30 16:44 myerror.py -rw-r--r--. 1 1000090000 1001 0 Nov 30 16:44 __init__.py -rw-r--r--. 1 1000090000 1001 1760 Nov 30 16:44 ethtool.py -rw-r--r--. 1 1000090000 1001 109318 Nov 30 16:44 argument_validator.py drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 16:44 ./ drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 17:14 ../ /tmp/lsrtest_R5nXPZ/ansible/module_utils/network_lsr/nm: total 32 -rw-r--r--. 1 1000090000 1001 3154 Nov 30 16:44 provider.py -rw-r--r--. 1 1000090000 1001 343 Nov 30 16:44 __init__.py -rw-r--r--. 1 1000090000 1001 175 Nov 30 16:44 error.py -rw-r--r--. 1 1000090000 1001 3546 Nov 30 16:44 connection.py -rw-r--r--. 1 1000090000 1001 2834 Nov 30 16:44 client.py -rw-r--r--. 1 1000090000 1001 4012 Nov 30 16:44 active_connection.py drwxr-xr-x. 3 1000090000 1001 4096 Nov 30 16:44 ../ drwxr-xr-x. 2 1000090000 1001 4096 Nov 30 16:44 ./ TASK [Debug the lsr Python path] *********************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:120 Thursday 30 November 2023 17:14:37 +0000 (0:00:00.128) 0:00:09.992 ***** ok: [sut] => {} MSG: path /tmp/lsrtest_R5nXPZ/library:/tmp/lsrtest_R5nXPZ/ansible/module_utils:/tmp/lsrtest_R5nXPZ/module_utils:/tmp/lsrtest_R5nXPZ TASK [Check if python2 is available] ******************************************* task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:124 Thursday 30 November 2023 17:14:37 +0000 (0:00:00.015) 0:00:10.007 ***** ok: [sut] => { "changed": false, "cmd": [ "python2", "--version" ], "delta": "0:00:00.003443", "end": "2023-11-30 17:14:37.627899", "rc": 0, "start": "2023-11-30 17:14:37.624456" } STDERR: Python 2.7.5 TASK [Run python2 unit tests] ************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:131 Thursday 30 November 2023 17:14:37 +0000 (0:00:00.125) 0:00:10.132 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "python2", "/tmp/lsrtest_R5nXPZ/test_network_connections.py", "--verbose" ], "delta": "0:00:00.669512", "end": "2023-11-30 17:14:38.423416", "rc": 1, "start": "2023-11-30 17:14:37.753904" } 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) ... ERROR test_route_without_interface_name (__main__.TestValidator) ... ERROR 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_ignore_auto_dns (__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 test_table_found_when_lookup_named_table (__main__.TestValidatorRoutingRules) ... ok ====================================================================== ERROR: test_route_v6 (__main__.TestValidator) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 2863, in test_route_v6 "rule6": None, File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 343, in do_connections_validate self.do_connections_validate_nm(input_connections, **kwargs) File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 291, in do_connections_validate_nm if new_route["family"] == socket.AF_INET: TypeError: 'IPRoute' object has no attribute '__getitem__' ====================================================================== ERROR: test_route_without_interface_name (__main__.TestValidator) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 3022, in test_route_without_interface_name route_device_warning.format("a:b:c:d::/64"), File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 343, in do_connections_validate self.do_connections_validate_nm(input_connections, **kwargs) File "/tmp/lsrtest_R5nXPZ/test_network_connections.py", line 291, in do_connections_validate_nm if new_route["family"] == socket.AF_INET: TypeError: 'IPRoute' object has no attribute '__getitem__' ---------------------------------------------------------------------- Ran 149 tests in 0.152s FAILED (errors=2) MSG: non-zero return code TASK [Remove local tar file] *************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:168 Thursday 30 November 2023 17:14:38 +0000 (0:00:00.800) 0:00:10.933 ***** changed: [sut -> localhost] => { "changed": true, "path": "/tmp/lsrtest_rkwqk89x.tar", "state": "absent" } TASK [Remove tempdir] ********************************************************** task path: /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:174 Thursday 30 November 2023 17:14:38 +0000 (0:00:00.144) 0:00:11.078 ***** changed: [sut] => { "changed": true, "path": "/tmp/lsrtest_R5nXPZ", "state": "absent" } to retry, use: --limit @/tmp/tests_unit.retry PLAY RECAP ********************************************************************* sut : ok=31 changed=9 unreachable=0 failed=1 skipped=3 rescued=0 ignored=1 Thursday 30 November 2023 17:14:38 +0000 (0:00:00.132) 0:00:11.210 ***** =============================================================================== Install dependencies ---------------------------------------------------- 3.91s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:9 --------------------- Run python2 unit tests -------------------------------------------------- 0.80s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:131 ------------------- Untar testrepo.tar ------------------------------------------------------ 0.71s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:67 -------------------- Copy testrepo.tar to the remote system ---------------------------------- 0.59s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:61 -------------------- Gathering Facts --------------------------------------------------------- 0.56s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:3 --------------------- Copy unit test to remote system ----------------------------------------- 0.49s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:99 -------------------- Install yum-utils package ----------------------------------------------- 0.48s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:24 ------------- Gathering Facts --------------------------------------------------------- 0.40s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:24 -------------------- Create subdirectory '/ansible/module_utils' under '/tmp/lsrtest_R5nXPZ' --- 0.37s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:73 -------------------- Enable EPEL 7 ----------------------------------------------------------- 0.30s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:30 ------------- Create EPEL 7 ----------------------------------------------------------- 0.23s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/enable_epel.yml:8 -------------- Gather the minimum subset of ansible_facts required by the network role test --- 0.23s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:3 ------------ Create tempdir for code to test ----------------------------------------- 0.23s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:29 -------------------- Check if system is ostree ----------------------------------------------- 0.22s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/el_repo_setup.yml:19 ----------- Create Tar file --------------------------------------------------------- 0.17s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:49 -------------------- Find parent directory and path of modules ------------------------------- 0.16s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:42 Find parent directory and path of module_utils -------------------------- 0.15s /WORKDIR/git-code_refactor4d2psdfe/tests/tasks/get_modules_and_utils_paths.yml:69 Remove local tar file --------------------------------------------------- 0.14s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:168 ------------------- Remove tempdir ---------------------------------------------------------- 0.13s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:174 ------------------- Fake out python module directories, primarily for python2 --------------- 0.13s /WORKDIR/git-code_refactor4d2psdfe/tests/tests_unit.yml:90 -------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the unarchive module rather than running 'tar'. If you need to use command because unarchive is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---