# 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_auto_gateway_initscripts.yml *********************************** 2 plays in /WORKDIR/git-code_refactorib16hxy9/tests/tests_auto_gateway_initscripts.yml PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/tests_auto_gateway_initscripts.yml:4 Thursday 30 November 2023 18:29:49 +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_refactorib16hxy9/tests/tests_auto_gateway_initscripts.yml:8 Thursday 30 November 2023 18:29:50 +0000 (0:00:00.681) 0:00:00.697 ***** included: /WORKDIR/git-code_refactorib16hxy9/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_refactorib16hxy9/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 18:29:50 +0000 (0:00:00.015) 0:00:00.713 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 18:29:51 +0000 (0:00:00.349) 0:00:01.062 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 18:29:51 +0000 (0:00:00.266) 0:00:01.329 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 18:29:51 +0000 (0:00:00.026) 0:00:01.356 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 18:29:51 +0000 (0:00:00.024) 0:00:01.381 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 18:29:51 +0000 (0:00:00.039) 0:00:01.421 ***** changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:00.578495", "end": "2023-11-30 18:29:52.176418", "rc": 0, "start": "2023-11-30 18:29:51.597923" } STDOUT: Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm Verifying packages... Preparing packages... epel-release-8-19.el8.noarch Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.823) 0:00:02.244 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.013) 0:00:02.257 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.013) 0:00:02.270 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.390114", "end": "2023-11-30 18:29:52.784712", "rc": 0, "start": "2023-11-30 18:29:52.394598" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.578) 0:00:02.849 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tests_auto_gateway_initscripts.yml:10 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.012) 0:00:02.862 ***** ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing auto_gateway setting] *********************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:3 Thursday 30 November 2023 18:29:52 +0000 (0:00:00.014) 0:00:02.877 ***** ok: [sut] META: ran handlers TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:9 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.550) 0:00:03.427 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.032) 0:00:03.459 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.022) 0:00:03.482 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003353", "end": "2023-11-30 18:29:53.608229", "rc": 0, "start": "2023-11-30 18:29:53.604876" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.190) 0:00:03.673 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.015) 0:00:03.688 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:11 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.013) 0:00:03.701 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.036) 0:00:03.738 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.013) 0:00:03.752 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.015) 0:00:03.767 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.017) 0:00:03.784 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.016) 0:00:03.800 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003532", "end": "2023-11-30 18:29:53.928716", "rc": 0, "start": "2023-11-30 18:29:53.925184" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.192) 0:00:03.993 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.015) 0:00:04.008 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:29:53 +0000 (0:00:00.014) 0:00:04.022 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 18:30:01 +0000 (0:00:07.772) 0:00:11.794 ***** ok: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.095958", "end": "2023-11-30 18:30:02.024046", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2023-11-30 18:30:01.928088" } ok: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.007649", "end": "2023-11-30 18:30:02.258522", "item": "ip link set peerveth0 up", "rc": 0, "start": "2023-11-30 18:30:02.250873" } ok: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.007122", "end": "2023-11-30 18:30:02.446999", "item": "ip link set veth0 up", "rc": 0, "start": "2023-11-30 18:30:02.439877" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.718) 0:00:12.512 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.173415", "end": "2023-11-30 18:30:02.814508", "rc": 0, "start": "2023-11-30 18:30:02.641093" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.367) 0:00:12.880 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.016) 0:00:12.896 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.014) 0:00:12.911 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.015) 0:00:12.927 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.018) 0:00:12.946 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:15 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.015) 0:00:12.961 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.033) 0:00:12.995 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:30:02 +0000 (0:00:00.018) 0:00:13.013 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369002.0217738, "block_size": 4096, "blocks": 0, "ctime": 1701369002.0217738, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21836, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1701369002.0217738, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Assert that the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.190) 0:00:13.204 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:17 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.017) 0:00:13.221 ***** ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.012) 0:00:13.234 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.078) 0:00:13.313 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.014) 0:00:13.327 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.012) 0:00:13.340 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:30:03 +0000 (0:00:00.013) 0:00:13.353 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:30:05 +0000 (0:00:01.718) 0:00:15.072 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:30:06 +0000 (0:00:01.445) 0:00:16.518 ***** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:30:06 +0000 (0:00:00.028) 0:00:16.546 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:30:06 +0000 (0:00:00.028) 0:00:16.574 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:30:06 +0000 (0:00:00.027) 0:00:16.602 ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-10.00.18-1.el8.x86_64", "Installed: network-scripts-team-1.31-4.el8.x86_64" ] } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:30:09 +0000 (0:00:03.187) 0:00:19.790 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:30:09 +0000 (0:00:00.050) 0:00:19.840 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:30:09 +0000 (0:00:00.028) 0:00:19.869 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:30:09 +0000 (0:00:00.031) 0:00:19.900 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:30:09 +0000 (0:00:00.027) 0:00:19.928 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:30:09 +0000 (0:00:00.027) 0:00:19.955 ***** changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:30:10 +0000 (0:00:00.876) 0:00:20.832 ***** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-2365b9ixmf_8/tmpqutgj5rt" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:30:11 +0000 (0:00:00.304) 0:00:21.136 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1", "route_metric4": 65535 }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:30:17 +0000 (0:00:06.692) 0:00:27.829 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:30:17 +0000 (0:00:00.027) 0:00:27.856 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:30:17 +0000 (0:00:00.035) 0:00:27.891 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1", "route_metric4": 65535 }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:30:17 +0000 (0:00:00.029) 0:00:27.921 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:30:17 +0000 (0:00:00.026) 0:00:27.948 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:42 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.287) 0:00:28.236 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.063) 0:00:28.299 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.046) 0:00:28.346 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369002.0217738, "block_size": 4096, "blocks": 0, "ctime": 1701369002.0217738, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21836, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1701369002.0217738, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Assert that the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.210) 0:00:28.556 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:44 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.031) 0:00:28.588 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.065) 0:00:28.654 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.047) 0:00:28.701 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.028) 0:00:28.730 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369011.5294747, "block_size": 4096, "blocks": 8, "ctime": 1701369011.5084746, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798130, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369011.5084746, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.241) 0:00:28.971 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:30:18 +0000 (0:00:00.030) 0:00:29.002 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.021848", "end": "2023-11-30 18:30:19.152559", "rc": 1, "start": "2023-11-30 18:30:19.130711" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.227) 0:00:29.229 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.029) 0:00:29.259 ***** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.003330", "end": "2023-11-30 18:30:19.396223", "rc": 0, "start": "2023-11-30 18:30:19.392893" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.217) 0:00:29.476 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.034) 0:00:29.510 ***** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.003188", "end": "2023-11-30 18:30:19.643569", "rc": 0, "start": "2023-11-30 18:30:19.640381" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.211) 0:00:29.722 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.032) 0:00:29.755 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.028) 0:00:29.784 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.030) 0:00:29.814 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:48 Thursday 30 November 2023 18:30:19 +0000 (0:00:00.027) 0:00:29.842 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003802", "end": "2023-11-30 18:30:19.971601", "rc": 0, "start": "2023-11-30 18:30:19.967799" } STDOUT: default via 10.31.44.1 dev eth0 proto dhcp src 10.31.47.191 metric 100 default via 203.0.113.1 dev veth0 metric 65535 10.31.44.0/22 dev eth0 proto kernel scope link src 10.31.47.191 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 TASK [Assert default ipv4 route is present] ************************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:52 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.206) 0:00:30.049 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:58 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.028) 0:00:30.078 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003923", "end": "2023-11-30 18:30:20.208393", "rc": 0, "start": "2023-11-30 18:30:20.204470" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Assert default ipv6 route is present] ************************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:62 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.255) 0:00:30.334 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEARDOWN: remove profiles.] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:69 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.029) 0:00:30.363 ***** ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.031) 0:00:30.394 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.054) 0:00:30.449 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.035) 0:00:30.485 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.028) 0:00:30.513 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:30:20 +0000 (0:00:00.027) 0:00:30.541 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:30:22 +0000 (0:00:01.837) 0:00:32.379 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:30:23 +0000 (0:00:01.280) 0:00:33.660 ***** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.034) 0:00:33.695 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.027) 0:00:33.722 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.028) 0:00:33.751 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.061) 0:00:33.813 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.037) 0:00:33.850 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.031) 0:00:33.881 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.048) 0:00:33.929 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.036) 0:00:33.966 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:30:23 +0000 (0:00:00.066) 0:00:34.032 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:30:24 +0000 (0:00:00.381) 0:00:34.414 ***** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-2365b9ixmf_8/tmpd79g5n4t" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:30:24 +0000 (0:00:00.318) 0:00:34.732 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.467) 0:00:35.200 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.027) 0:00:35.228 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.028) 0:00:35.256 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.031) 0:00:35.288 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.028) 0:00:35.316 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:81 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.200) 0:00:35.517 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.105) 0:00:35.622 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.028) 0:00:35.651 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.028) 0:00:35.679 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.058) 0:00:35.737 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.058) 0:00:35.796 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003396", "end": "2023-11-30 18:30:25.949122", "rc": 0, "start": "2023-11-30 18:30:25.945726" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:25 +0000 (0:00:00.233) 0:00:36.029 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:26 +0000 (0:00:00.029) 0:00:36.059 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:26 +0000 (0:00:00.028) 0:00:36.088 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 18:30:27 +0000 (0:00:01.417) 0:00:37.506 ***** skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.118) 0:00:37.624 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.030) 0:00:37.655 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.016233", "end": "2023-11-30 18:30:27.799170", "rc": 0, "start": "2023-11-30 18:30:27.782937" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.227) 0:00:37.882 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.030) 0:00:37.913 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.029) 0:00:37.943 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.030) 0:00:37.973 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:85 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.029) 0:00:38.003 ***** ok: [sut] => {} MSG: ################################################## TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:89 Thursday 30 November 2023 18:30:27 +0000 (0:00:00.028) 0:00:38.031 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.066) 0:00:38.098 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.029) 0:00:38.127 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.036) 0:00:38.163 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.051) 0:00:38.215 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.102) 0:00:38.318 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003364", "end": "2023-11-30 18:30:28.447238", "rc": 0, "start": "2023-11-30 18:30:28.443874" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.207) 0:00:38.525 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.029) 0:00:38.554 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.028) 0:00:38.582 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 18:30:29 +0000 (0:00:01.398) 0:00:39.980 ***** ok: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.013016", "end": "2023-11-30 18:30:30.124301", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2023-11-30 18:30:30.111285" } ok: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.006401", "end": "2023-11-30 18:30:30.353638", "item": "ip link set peerveth0 up", "rc": 0, "start": "2023-11-30 18:30:30.347237" } ok: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.006800", "end": "2023-11-30 18:30:30.540568", "item": "ip link set veth0 up", "rc": 0, "start": "2023-11-30 18:30:30.533768" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.641) 0:00:40.622 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.022620", "end": "2023-11-30 18:30:30.776222", "rc": 0, "start": "2023-11-30 18:30:30.753602" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.233) 0:00:40.855 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.028) 0:00:40.884 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.082) 0:00:40.966 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.031) 0:00:40.998 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.032) 0:00:41.030 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.034) 0:00:41.065 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.054) 0:00:41.119 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.038) 0:00:41.158 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.029) 0:00:41.187 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.027) 0:00:41.214 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:30:32 +0000 (0:00:01.708) 0:00:42.922 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:30:34 +0000 (0:00:01.262) 0:00:44.185 ***** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.031) 0:00:44.217 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.030) 0:00:44.247 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.028) 0:00:44.275 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.066) 0:00:44.341 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.028) 0:00:44.369 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.028) 0:00:44.398 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.034) 0:00:44.432 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.075) 0:00:44.508 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.027) 0:00:44.536 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:30:34 +0000 (0:00:00.360) 0:00:44.896 ***** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-2365b9ixmf_8/tmpnnvm7gtz" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.300) 0:00:45.196 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:30:41 +0000 (0:00:06.540) 0:00:51.737 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.028) 0:00:51.765 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.029) 0:00:51.794 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.030) 0:00:51.825 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.058) 0:00:51.883 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:110 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.204) 0:00:52.088 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.069) 0:00:52.157 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.055) 0:00:52.212 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369030.115047, "block_size": 4096, "blocks": 0, "ctime": 1701369030.115047, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1701369030.115047, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Assert that the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.208) 0:00:52.421 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:112 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.030) 0:00:52.452 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.091) 0:00:52.543 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.067) 0:00:52.611 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.033) 0:00:52.644 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369035.4485998, "block_size": 4096, "blocks": 8, "ctime": 1701369035.4285996, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798130, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369035.4285996, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 263, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.214) 0:00:52.859 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.032) 0:00:52.891 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.021328", "end": "2023-11-30 18:30:43.046211", "rc": 1, "start": "2023-11-30 18:30:43.024883" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.244) 0:00:53.136 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.032) 0:00:53.168 ***** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.003380", "end": "2023-11-30 18:30:43.302288", "rc": 0, "start": "2023-11-30 18:30:43.298908" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.216) 0:00:53.384 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.046) 0:00:53.430 ***** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.003333", "end": "2023-11-30 18:30:43.565742", "rc": 0, "start": "2023-11-30 18:30:43.562409" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.215) 0:00:53.646 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.040) 0:00:53.686 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.033) 0:00:53.719 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.042) 0:00:53.761 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:116 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.041) 0:00:53.802 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003846", "end": "2023-11-30 18:30:43.933378", "rc": 0, "start": "2023-11-30 18:30:43.929532" } STDOUT: default via 10.31.44.1 dev eth0 proto dhcp src 10.31.47.191 metric 100 10.31.44.0/22 dev eth0 proto kernel scope link src 10.31.47.191 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 TASK [Assert default ipv4 route is absent] ************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:120 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.209) 0:00:54.012 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:126 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.066) 0:00:54.078 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003855", "end": "2023-11-30 18:30:44.207837", "rc": 0, "start": "2023-11-30 18:30:44.203982" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Assert default ipv6 route is absent] ************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:130 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.207) 0:00:54.286 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEARDOWN: remove profiles.] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:137 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.026) 0:00:54.313 ***** ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.028) 0:00:54.341 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.052) 0:00:54.394 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.034) 0:00:54.428 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.028) 0:00:54.457 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:30:44 +0000 (0:00:00.028) 0:00:54.485 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:30:46 +0000 (0:00:01.739) 0:00:56.224 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:30:47 +0000 (0:00:01.258) 0:00:57.482 ***** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.032) 0:00:57.514 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.032) 0:00:57.547 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.032) 0:00:57.579 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.084) 0:00:57.664 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.030) 0:00:57.694 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.034) 0:00:57.728 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.033) 0:00:57.762 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.076) 0:00:57.839 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.032) 0:00:57.871 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.368) 0:00:58.240 ***** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-2365b9ixmf_8/tmpa3olp9ij" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.318) 0:00:58.559 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.475) 0:00:59.035 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.027) 0:00:59.063 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.035) 0:00:59.098 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.040) 0:00:59.139 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.028) 0:00:59.167 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_auto_gateway.yml:149 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.207) 0:00:59.375 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.141) 0:00:59.516 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.035) 0:00:59.552 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.037) 0:00:59.589 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.063) 0:00:59.653 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.047) 0:00:59.701 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003400", "end": "2023-11-30 18:30:49.835392", "rc": 0, "start": "2023-11-30 18:30:49.831992" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.213) 0:00:59.914 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.031) 0:00:59.946 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.028) 0:00:59.974 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 18:30:51 +0000 (0:00:01.452) 0:01:01.426 ***** skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.043) 0:01:01.470 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.030) 0:01:01.500 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.011616", "end": "2023-11-30 18:30:51.639885", "rc": 0, "start": "2023-11-30 18:30:51.628269" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.219) 0:01:01.720 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.028) 0:01:01.748 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.028) 0:01:01.776 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.035) 0:01:01.811 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=138 changed=7 unreachable=0 failed=0 skipped=89 rescued=0 ignored=2 Thursday 30 November 2023 18:30:51 +0000 (0:00:00.011) 0:01:01.823 ***** =============================================================================== Install iproute --------------------------------------------------------- 7.77s /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 linux-system-roles.network : Configure networking connection profiles --- 6.69s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Configure networking connection profiles --- 6.54s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Install packages --------------------------- 3.19s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 linux-system-roles.network : Check which services are running ----------- 1.84s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.74s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.71s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Install iproute --------------------------------------------------------- 1.45s /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 linux-system-roles.network : Check which packages are installed --------- 1.45s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Install iproute --------------------------------------------------------- 1.42s /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 1.40s /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:16 linux-system-roles.network : Check which packages are installed --------- 1.28s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Check which packages are installed --------- 1.26s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Check which packages are installed --------- 1.26s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Configure networking connection profiles --- 0.94s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable network service --------------------- 0.88s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Create EPEL 8 ----------------------------------------------------------- 0.82s /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:8 -------------- linux-system-roles.network : Enable network service --------------------- 0.75s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Create veth interface veth0 --------------------------------------------- 0.72s /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/manage_test_interface.yml:24 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper 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. [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf 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. ---^---^---^---^---^---