# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ethernet.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:47:19 +0000 (0:00:00.790) 0:00:00.790 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:36 +0000 (0:00:17.291) 0:00:18.081 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 16:47:37 +0000 (0:00:00.737) 0:00:18.819 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:38 +0000 (0:00:00.744) 0:00:19.584 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 16:47:39 +0000 (0:00:00.943) 0:00:20.527 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.296024", "end": "2022-08-05 16:47:48.209010", "rc": 0, "start": "2022-08-05 16:47:45.912986" } STDOUT: Last metadata expiration check: 0:01:54 ago on Fri Aug 5 16:45:52 2022. epel-release-latest-8.noarch.rpm 592 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 16:47:48 +0000 (0:00:09.219) 0:00:29.746 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 16:47:49 +0000 (0:00:00.672) 0:00:30.418 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.537170", "end": "2022-08-05 16:47:51.421509", "rc": 0, "start": "2022-08-05 16:47:50.884339" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 16:47:51 +0000 (0:00:02.578) 0:00:32.996 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 16:47:52 +0000 (0:00:00.445) 0:00:33.442 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:47:53 +0000 (0:00:01.692) 0:00:35.134 ********* ok: [sut] TASK [Show inside ethernet tests] ********************************************** Friday 05 August 2022 16:47:57 +0000 (0:00:04.016) 0:00:39.151 ********* ok: [sut] => {} MSG: Inside ethernet tests TASK [Show network_provider] *************************************************** Friday 05 August 2022 16:48:01 +0000 (0:00:03.920) 0:00:43.071 ********* ok: [sut] => { "network_provider": "nm" } PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:48:04 +0000 (0:00:02.455) 0:00:45.527 ********* ok: [sut] TASK [set type=veth and interface=lsr27] *************************************** Friday 05 August 2022 16:48:08 +0000 (0:00:04.627) 0:00:50.154 ********* ok: [sut] => { "ansible_facts": { "interface": "lsr27", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:10 +0000 (0:00:01.070) 0:00:51.225 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:11 +0000 (0:00:01.598) 0:00:52.844 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 16:48:13 +0000 (0:00:01.491) 0:00:54.336 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003848", "end": "2022-08-05 16:48:15.690494", "rc": 0, "start": "2022-08-05 16:48:15.686646" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:48:16 +0000 (0:00:02.995) 0:00:57.331 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:48:17 +0000 (0:00:01.454) 0:00:58.786 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:19 +0000 (0:00:01.422) 0:01:00.209 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 16:48:20 +0000 (0:00:01.245) 0:01:01.455 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:48:20 +0000 (0:00:00.534) 0:01:01.989 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:21 +0000 (0:00:01.188) 0:01:03.178 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:23 +0000 (0:00:01.638) 0:01:04.816 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 16:48:25 +0000 (0:00:01.744) 0:01:06.561 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003658", "end": "2022-08-05 16:48:26.385966", "rc": 0, "start": "2022-08-05 16:48:26.382308" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:48:26 +0000 (0:00:01.481) 0:01:08.042 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:48:28 +0000 (0:00:01.463) 0:01:09.505 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:48:29 +0000 (0:00:00.854) 0:01:10.360 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr27] ********************************************* Friday 05 August 2022 16:48:43 +0000 (0:00:14.738) 0:01:25.098 ********* changed: [sut] => (item=ip link add lsr27 type veth peer name peerlsr27) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr27", "type", "veth", "peer", "name", "peerlsr27" ], "delta": "0:00:00.042813", "end": "2022-08-05 16:48:45.102942", "item": "ip link add lsr27 type veth peer name peerlsr27", "rc": 0, "start": "2022-08-05 16:48:45.060129" } changed: [sut] => (item=ip link set peerlsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr27", "up" ], "delta": "0:00:00.007342", "end": "2022-08-05 16:48:46.162752", "item": "ip link set peerlsr27 up", "rc": 0, "start": "2022-08-05 16:48:46.155410" } changed: [sut] => (item=ip link set lsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr27", "up" ], "delta": "0:00:00.009186", "end": "2022-08-05 16:48:47.542709", "item": "ip link set lsr27 up", "rc": 0, "start": "2022-08-05 16:48:47.533523" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:48:47 +0000 (0:00:03.932) 0:01:29.031 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr27", "managed", "true" ], "delta": "0:00:00.066866", "end": "2022-08-05 16:48:48.665827", "rc": 0, "start": "2022-08-05 16:48:48.598961" } TASK [Delete veth interface lsr27] ********************************************* Friday 05 August 2022 16:48:49 +0000 (0:00:01.269) 0:01:30.300 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr27] ******************************************** Friday 05 August 2022 16:48:49 +0000 (0:00:00.905) 0:01:31.206 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr27] ******************************************** Friday 05 August 2022 16:48:50 +0000 (0:00:00.754) 0:01:31.960 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr27] ********************************************** Friday 05 August 2022 16:48:51 +0000 (0:00:00.320) 0:01:32.281 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr27] ********************************************** Friday 05 August 2022 16:48:51 +0000 (0:00:00.306) 0:01:32.587 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:51 +0000 (0:00:00.320) 0:01:32.907 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:52 +0000 (0:00:00.563) 0:01:33.470 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 16:48:52 +0000 (0:00:00.620) 0:01:34.090 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659718125.1012158, "block_size": 4096, "blocks": 0, "ctime": 1659718125.1012158, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr27", "lnk_target": "../../devices/virtual/net/lsr27", "mode": "0777", "mtime": 1659718125.1012158, "nlink": 1, "path": "/sys/class/net/lsr27", "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 interface lsr27 is present] ********************************** Friday 05 August 2022 16:48:57 +0000 (0:00:04.938) 0:01:39.028 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Test static interface up] ************************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:48:59 +0000 (0:00:01.585) 0:01:40.614 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:49:02 +0000 (0:00:03.401) 0:01:44.016 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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] *** Friday 05 August 2022 16:49:03 +0000 (0:00:01.014) 0:01:45.030 ********* 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 services are running] *********** Friday 05 August 2022 16:49:06 +0000 (0:00:02.610) 0:01:47.641 ********* 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] ********* Friday 05 August 2022 16:49:15 +0000 (0:00:08.714) 0:01:56.355 ********* 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] ********************* Friday 05 August 2022 16:49:27 +0000 (0:00:11.899) 0:02:08.255 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:49:28 +0000 (0:00:01.477) 0:02:09.733 ********* 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] *** Friday 05 August 2022 16:49:29 +0000 (0:00:00.867) 0:02:10.641 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:49:30 +0000 (0:00:01.544) 0:02:12.186 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 16:49:33 +0000 (0:00:02.832) 0:02:15.019 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 16:49:34 +0000 (0:00:00.770) 0:02:15.790 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 16:49:35 +0000 (0:00:00.741) 0:02:16.531 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:49:37 +0000 (0:00:02.113) 0:02:18.645 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:49:45 +0000 (0:00:08.477) 0:02:27.123 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:49:47 +0000 (0:00:01.152) 0:02:28.275 ********* 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 : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:49:47 +0000 (0:00:00.688) 0:02:28.964 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:49:48 +0000 (0:00:00.879) 0:02:29.844 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa [004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:03 +0000 (0:00:14.498) 0:02:44.342 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 16:50:05 +0000 (0:00:02.504) 0:02:46.847 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:07 +0000 (0:00:01.424) 0:02:48.271 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa\n[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 2f4c0fb8-8251-4314-9967-97c508fad2aa (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:07 +0000 (0:00:00.298) 0:02:48.570 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:07 +0000 (0:00:00.209) 0:02:48.780 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:08 +0000 (0:00:01.060) 0:02:49.840 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_output_in_stderr_without_warnings.yml for sut TASK [Assert that warnings is empty] ******************************************* Friday 05 August 2022 16:50:08 +0000 (0:00:00.253) 0:02:50.094 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that there is output in stderr] *********************************** Friday 05 August 2022 16:50:09 +0000 (0:00:00.167) 0:02:50.261 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:09 +0000 (0:00:00.429) 0:02:50.693 ********* ok: [sut] TASK [Show network_provider] *************************************************** Friday 05 August 2022 16:50:10 +0000 (0:00:01.368) 0:02:52.061 ********* ok: [sut] => { "network_provider": "nm" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:11 +0000 (0:00:00.796) 0:02:52.858 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:50:12 +0000 (0:00:01.017) 0:02:53.875 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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] *** Friday 05 August 2022 16:50:12 +0000 (0:00:00.173) 0:02:54.049 ********* 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 services are running] *********** Friday 05 August 2022 16:50:13 +0000 (0:00:00.605) 0:02:54.654 ********* 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] ********* Friday 05 August 2022 16:50:15 +0000 (0:00:01.941) 0:02:56.596 ********* 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] ********************* Friday 05 August 2022 16:50:17 +0000 (0:00:01.702) 0:02:58.298 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:50:17 +0000 (0:00:00.226) 0:02:58.525 ********* 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] *** Friday 05 August 2022 16:50:17 +0000 (0:00:00.136) 0:02:58.661 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:50:17 +0000 (0:00:00.098) 0:02:58.760 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 16:50:17 +0000 (0:00:00.235) 0:02:58.995 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 16:50:17 +0000 (0:00:00.135) 0:02:59.131 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 16:50:18 +0000 (0:00:00.077) 0:02:59.208 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:50:18 +0000 (0:00:00.143) 0:02:59.351 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:50:18 +0000 (0:00:00.625) 0:02:59.977 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:50:18 +0000 (0:00:00.122) 0:03:00.099 ********* 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 : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:50:18 +0000 (0:00:00.061) 0:03:00.161 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:50:19 +0000 (0:00:00.089) 0:03:00.250 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:19 +0000 (0:00:00.718) 0:03:00.968 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 16:50:19 +0000 (0:00:00.119) 0:03:01.087 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:20 +0000 (0:00:00.157) 0:03:01.245 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:20 +0000 (0:00:00.144) 0:03:01.389 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:20 +0000 (0:00:00.147) 0:03:01.537 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:20 +0000 (0:00:00.511) 0:03:02.048 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:21 +0000 (0:00:00.903) 0:03:02.951 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 16:50:21 +0000 (0:00:00.102) 0:03:03.054 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "lsr27" ], "delta": "0:00:00.013516", "end": "2022-08-05 16:50:22.087207", "rc": 0, "start": "2022-08-05 16:50:22.073691" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:22 +0000 (0:00:00.431) 0:03:03.485 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:50:23 +0000 (0:00:00.823) 0:03:04.308 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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] *** Friday 05 August 2022 16:50:23 +0000 (0:00:00.146) 0:03:04.454 ********* 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 services are running] *********** Friday 05 August 2022 16:50:23 +0000 (0:00:00.565) 0:03:05.020 ********* 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] ********* Friday 05 August 2022 16:50:25 +0000 (0:00:01.854) 0:03:06.874 ********* 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] ********************* Friday 05 August 2022 16:50:27 +0000 (0:00:01.577) 0:03:08.452 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.079) 0:03:08.531 ********* 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] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.072) 0:03:08.603 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:50:27 +0000 (0:00:00.067) 0:03:08.670 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.132) 0:03:08.803 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.076) 0:03:08.879 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.079) 0:03:08.959 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:50:27 +0000 (0:00:00.088) 0:03:09.047 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:50:28 +0000 (0:00:00.501) 0:03:09.549 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:50:28 +0000 (0:00:00.085) 0:03:09.634 ********* 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 : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:50:28 +0000 (0:00:00.075) 0:03:09.709 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:50:28 +0000 (0:00:00.064) 0:03:09.774 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:29 +0000 (0:00:00.544) 0:03:10.319 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 16:50:29 +0000 (0:00:00.062) 0:03:10.382 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:29 +0000 (0:00:00.077) 0:03:10.460 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:29 +0000 (0:00:00.087) 0:03:10.547 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:29 +0000 (0:00:00.087) 0:03:10.635 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:29 +0000 (0:00:00.373) 0:03:11.008 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:30 +0000 (0:00:00.827) 0:03:11.836 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:30 +0000 (0:00:00.101) 0:03:11.937 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 16:50:30 +0000 (0:00:00.136) 0:03:12.074 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 16:50:31 +0000 (0:00:00.174) 0:03:12.249 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.306) 0:03:12.555 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.063) 0:03:12.619 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr27 | grep /etc", "delta": "0:00:00.022672", "end": "2022-08-05 16:50:31.664967", "rc": 1, "start": "2022-08-05 16:50:31.642295" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 16:50:31 +0000 (0:00:00.300) 0:03:12.920 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr27] ************************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.059) 0:03:12.979 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-lsr27] *********************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.057) 0:03:13.036 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'lsr27' is absent] *********************************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.062) 0:03:13.099 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:31 +0000 (0:00:00.077) 0:03:13.176 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:32 +0000 (0:00:00.108) 0:03:13.285 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 16:50:32 +0000 (0:00:00.174) 0:03:13.459 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface lsr27 is absent] *********************************** Friday 05 August 2022 16:50:32 +0000 (0:00:00.356) 0:03:13.815 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=81 changed=7 unreachable=0 failed=0 skipped=47 rescued=0 ignored=1 Friday 05 August 2022 16:50:32 +0000 (0:00:00.355) 0:03:14.171 ********* =============================================================================== Gathering Facts -------------------------------------------------------- 17.29s Install iproute -------------------------------------------------------- 14.74s linux-system-roles.network : Configure networking connection profiles -- 14.50s linux-system-roles.network : Check which packages are installed -------- 11.90s Create EPEL 8 ----------------------------------------------------------- 9.22s linux-system-roles.network : Check which services are running ----------- 8.71s linux-system-roles.network : Enable and start NetworkManager ------------ 8.48s Get stat for interface lsr27 -------------------------------------------- 4.94s Gathering Facts --------------------------------------------------------- 4.63s Gathering Facts --------------------------------------------------------- 4.02s Create veth interface lsr27 --------------------------------------------- 3.93s Show inside ethernet tests ---------------------------------------------- 3.92s Gathering Facts --------------------------------------------------------- 3.40s Gather current interface info ------------------------------------------- 3.00s linux-system-roles.network : Install packages --------------------------- 2.90s linux-system-roles.network : Ensure ansible_facts used by role are present --- 2.61s Enable EPEL 8 ----------------------------------------------------------- 2.58s linux-system-roles.network : Configure networking state ----------------- 2.50s Show network_provider --------------------------------------------------- 2.46s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 2.11s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---