# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_routing_rules.yml' with nm as provider] **** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:07:09 +0000 (0:00:00.324) 0:00:00.324 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:16 +0000 (0:00:07.333) 0:00:07.658 ********* 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 19:07:17 +0000 (0:00:00.695) 0:00:08.353 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:18 +0000 (0:00:00.618) 0:00:08.972 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 19:07:19 +0000 (0:00:00.919) 0:00:09.892 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.340422", "end": "2022-08-05 19:07:24.959896", "rc": 0, "start": "2022-08-05 19:07:22.619474" } STDOUT: Last metadata expiration check: 0:01:25 ago on Fri Aug 5 19:05:58 2022. epel-release-latest-8.noarch.rpm 506 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 19:07:25 +0000 (0:00:06.256) 0:00:16.148 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 19:07:25 +0000 (0:00:00.688) 0:00:16.837 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.543057", "end": "2022-08-05 19:07:27.729652", "rc": 0, "start": "2022-08-05 19:07:27.186595" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 19:07:28 +0000 (0:00:02.269) 0:00:19.106 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 19:07:29 +0000 (0:00:00.899) 0:00:20.006 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:07:30 +0000 (0:00:01.471) 0:00:21.478 ********* ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:07:33 +0000 (0:00:02.664) 0:00:24.142 ********* ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 05 August 2022 19:07:36 +0000 (0:00:03.054) 0:00:27.197 ********* ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:37 +0000 (0:00:01.523) 0:00:28.721 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:39 +0000 (0:00:01.173) 0:00:29.894 ********* 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 19:07:40 +0000 (0:00:00.972) 0:00:30.867 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003798", "end": "2022-08-05 19:07:42.211026", "rc": 0, "start": "2022-08-05 19:07:42.207228" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:07:42 +0000 (0:00:02.576) 0:00:33.443 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:07:44 +0000 (0:00:01.449) 0:00:34.893 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:45 +0000 (0:00:01.032) 0:00:35.925 ********* 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 19:07:46 +0000 (0:00:01.793) 0:00:37.718 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 19:07:47 +0000 (0:00:00.791) 0:00:38.510 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:48 +0000 (0:00:00.353) 0:00:38.863 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:07:49 +0000 (0:00:01.088) 0:00:39.951 ********* 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 19:07:49 +0000 (0:00:00.629) 0:00:40.581 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003961", "end": "2022-08-05 19:07:50.752973", "rc": 0, "start": "2022-08-05 19:07:50.749012" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:07:51 +0000 (0:00:01.471) 0:00:42.053 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:07:52 +0000 (0:00:01.096) 0:00:43.150 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 19:07:53 +0000 (0:00:00.909) 0:00:44.060 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 05 August 2022 19:08:07 +0000 (0:00:14.169) 0:00:58.229 ********* changed: [sut] => (item=ip link add ethtest0 type veth peer name peerethtest0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "ethtest0", "type", "veth", "peer", "name", "peerethtest0" ], "delta": "0:00:00.037577", "end": "2022-08-05 19:08:08.899118", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-08-05 19:08:08.861541" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.007666", "end": "2022-08-05 19:08:09.808547", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-08-05 19:08:09.800881" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.010851", "end": "2022-08-05 19:08:10.768008", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-08-05 19:08:10.757157" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 19:08:11 +0000 (0:00:03.835) 0:01:02.064 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.082562", "end": "2022-08-05 19:08:12.276806", "rc": 0, "start": "2022-08-05 19:08:12.194244" } TASK [Delete veth interface ethtest0] ****************************************** Friday 05 August 2022 19:08:13 +0000 (0:00:02.008) 0:01:04.073 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 05 August 2022 19:08:14 +0000 (0:00:00.995) 0:01:05.069 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 05 August 2022 19:08:14 +0000 (0:00:00.465) 0:01:05.535 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 05 August 2022 19:08:15 +0000 (0:00:00.710) 0:01:06.245 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 05 August 2022 19:08:15 +0000 (0:00:00.574) 0:01:06.820 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:08:16 +0000 (0:00:00.485) 0:01:07.306 ********* 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 19:08:17 +0000 (0:00:00.783) 0:01:08.090 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 19:08:18 +0000 (0:00:01.145) 0:01:09.235 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659726488.8964767, "block_size": 4096, "blocks": 0, "ctime": 1659726488.8964767, "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/ethtest0", "lnk_target": "../../devices/virtual/net/ethtest0", "mode": "0777", "mtime": 1659726488.8964767, "nlink": 1, "path": "/sys/class/net/ethtest0", "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 ethtest0 is present] ******************************* Friday 05 August 2022 19:08:25 +0000 (0:00:06.875) 0:01:16.110 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:08:25 +0000 (0:00:00.636) 0:01:16.746 ********* 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 19:08:26 +0000 (0:00:00.741) 0:01:17.488 ********* 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 19:08:28 +0000 (0:00:01.763) 0:01:19.252 ********* 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 19:08:37 +0000 (0:00:09.121) 0:01:28.374 ********* 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 19:08:52 +0000 (0:00:15.130) 0:01:43.505 ********* 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 19:08:53 +0000 (0:00:01.220) 0:01:44.725 ********* 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 19:08:54 +0000 (0:00:01.080) 0:01:45.805 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:08:55 +0000 (0:00:00.958) 0:01:46.764 ********* 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 19:08:58 +0000 (0:00:02.596) 0:01:49.361 ********* 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 19:08:59 +0000 (0:00:01.067) 0:01:50.429 ********* 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 19:09:01 +0000 (0:00:01.622) 0:01:52.051 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:09:03 +0000 (0:00:02.091) 0:01:54.143 ********* 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 19:09:16 +0000 (0:00:12.717) 0:02:06.860 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:09:17 +0000 (0:00:01.512) 0:02:08.373 ********* 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 19:09:18 +0000 (0:00:00.662) 0:02:09.036 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:09:18 +0000 (0:00:00.539) 0:02:09.575 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26", "2001:db8::2/32" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 }, { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "2001:db8::1", "metric": 2, "network": "2001:db8::4", "prefix": 32, "table": 30600 } ], "routing_rule": [ { "from": "198.51.100.58/26", "priority": 30200, "table": 30200 }, { "family": "ipv4", "fwmark": 1, "fwmask": 1, "priority": 30201, "table": 30200 }, { "family": "ipv4", "ipproto": 6, "priority": 30202, "table": 30200 }, { "family": "ipv4", "priority": 30203, "sport": "128 - 256", "table": 30200 }, { "family": "ipv4", "priority": 30204, "table": 30200, "tos": 8 }, { "priority": 30400, "table": 30400, "to": "198.51.100.128/26" }, { "family": "ipv4", "iif": "iiftest", "priority": 30401, "table": 30400 }, { "family": "ipv4", "oif": "oiftest", "priority": 30402, "table": 30400 }, { "priority": 30600, "table": 30600, "to": "2001:db8::4/32" }, { "dport": "128 - 256", "family": "ipv6", "invert": true, "priority": 30601, "table": 30600 } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:09:32 +0000 (0:00:13.384) 0:02:22.960 ********* 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 19:09:34 +0000 (0:00:02.385) 0:02:25.345 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:09:36 +0000 (0:00:01.745) 0:02:27.091 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26", "2001:db8::2/32" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 }, { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "2001:db8::1", "metric": 2, "network": "2001:db8::4", "prefix": 32, "table": 30600 } ], "routing_rule": [ { "from": "198.51.100.58/26", "priority": 30200, "table": 30200 }, { "family": "ipv4", "fwmark": 1, "fwmask": 1, "priority": 30201, "table": 30200 }, { "family": "ipv4", "ipproto": 6, "priority": 30202, "table": 30200 }, { "family": "ipv4", "priority": 30203, "sport": "128 - 256", "table": 30200 }, { "family": "ipv4", "priority": 30204, "table": 30200, "tos": 8 }, { "priority": 30400, "table": 30400, "to": "198.51.100.128/26" }, { "family": "ipv4", "iif": "iiftest", "priority": 30401, "table": 30400 }, { "family": "ipv4", "oif": "oiftest", "priority": 30402, "table": 30400 }, { "priority": 30600, "table": 30600, "to": "2001:db8::4/32" }, { "dport": "128 - 256", "family": "ipv6", "invert": true, "priority": 30601, "table": 30600 } ] }, "name": "ethtest0", "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, 'ethtest0': add connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 932f9914-7195-435c-8b5a-3eaec96301dc (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:09:38 +0000 (0:00:02.064) 0:02:29.155 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:09:40 +0000 (0:00:02.242) 0:02:31.398 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routing rule for looking up the table 30200] ********************* Friday 05 August 2022 19:09:52 +0000 (0:00:11.847) 0:02:43.245 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "rule", "list", "table", "30200" ], "delta": "0:00:00.005891", "end": "2022-08-05 19:09:54.382769", "rc": 0, "start": "2022-08-05 19:09:54.376878" } STDOUT: 30200: from 198.51.100.58/26 lookup 30200 30201: from all fwmark 0x1/0x1 lookup 30200 30202: from all ipproto tcp lookup 30200 30203: from all sport 128-256 lookup 30200 30204: from all tos throughput lookup 30200 TASK [Get the routing rule for looking up the table 30400] ********************* Friday 05 August 2022 19:09:56 +0000 (0:00:03.617) 0:02:46.862 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "rule", "list", "table", "30400" ], "delta": "0:00:00.003869", "end": "2022-08-05 19:09:58.886581", "rc": 0, "start": "2022-08-05 19:09:58.882712" } STDOUT: 30400: from all to 198.51.100.128/26 lookup 30400 30401: from all iif iiftest [detached] lookup 30400 30402: from all oif oiftest [detached] lookup 30400 TASK [Get the routing rule for looking up the table 30600] ********************* Friday 05 August 2022 19:10:00 +0000 (0:00:04.018) 0:02:50.881 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "rule", "list", "table", "30600" ], "delta": "0:00:00.004171", "end": "2022-08-05 19:10:02.145922", "rc": 0, "start": "2022-08-05 19:10:02.141751" } STDOUT: 30600: from all to 2001:db8::4/32 lookup 30600 30601: not from all dport 128-256 lookup 30600 TASK [Get the IPv4 routing rule for the connection "ethtest0"] ***************** Friday 05 August 2022 19:10:04 +0000 (0:00:04.072) 0:02:54.954 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv4.routing-rules", "c", "show", "ethtest0" ], "delta": "0:00:00.022767", "end": "2022-08-05 19:10:06.053561", "rc": 0, "start": "2022-08-05 19:10:06.030794" } STDOUT: ipv4.routing-rules: priority 30200 from 198.51.100.58/26 table 30200, priority 30201 from 0.0.0.0/0 fwmark 0x1/0x1 table 30200, priority 30202 from 0.0.0.0/0 ipproto 6 table 30200, priority 30203 from 0.0.0.0/0 sport 128-256 table 30200, priority 30204 from 0.0.0.0/0 tos 0x08 table 30200, priority 30400 to 198.51.100.128/26 table 30400, priority 30401 from 0.0.0.0/0 iif iiftest table 30400, priority 30402 from 0.0.0.0/0 oif oiftest table 30400 TASK [Get the IPv6 routing rule for the connection "ethtest0"] ***************** Friday 05 August 2022 19:10:07 +0000 (0:00:03.036) 0:02:57.990 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv6.routing-rules", "c", "show", "ethtest0" ], "delta": "0:00:00.022327", "end": "2022-08-05 19:10:07.757411", "rc": 0, "start": "2022-08-05 19:10:07.735084" } STDOUT: ipv6.routing-rules: priority 30600 to 2001:db8::4/32 table 30600, priority 30601 not from ::/0 dport 128-256 table 30600 TASK [Assert that the routing rule with table lookup 30200 matches the specified rule] *** Friday 05 August 2022 19:10:08 +0000 (0:00:00.878) 0:02:58.868 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the routing rule with table lookup 30400 matches the specified rule] *** Friday 05 August 2022 19:10:08 +0000 (0:00:00.302) 0:02:59.171 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the routing rule with table lookup 30600 matches the specified rule] *** Friday 05 August 2022 19:10:08 +0000 (0:00:00.129) 0:02:59.301 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the IPv4 routing rule in the connection "ethtest0" matches the specified rule] *** Friday 05 August 2022 19:10:08 +0000 (0:00:00.235) 0:02:59.536 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the IPv6 routing rule in the connection "ethtest0" matches the specified rule] *** Friday 05 August 2022 19:10:08 +0000 (0:00:00.215) 0:02:59.752 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:10:09 +0000 (0:00:00.371) 0:03:00.124 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:10:10 +0000 (0:00:00.989) 0:03:01.114 ********* 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 19:10:10 +0000 (0:00:00.258) 0:03:01.372 ********* 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 19:10:11 +0000 (0:00:00.848) 0:03:02.221 ********* 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 19:10:13 +0000 (0:00:01.958) 0:03:04.180 ********* 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 19:10:15 +0000 (0:00:01.681) 0:03:05.862 ********* 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 19:10:15 +0000 (0:00:00.148) 0:03:06.011 ********* 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 19:10:15 +0000 (0:00:00.092) 0:03:06.104 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:10:15 +0000 (0:00:00.129) 0:03:06.233 ********* 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 19:10:15 +0000 (0:00:00.395) 0:03:06.629 ********* 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 19:10:15 +0000 (0:00:00.169) 0:03:06.798 ********* 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 19:10:16 +0000 (0:00:00.138) 0:03:06.937 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:10:16 +0000 (0:00:00.178) 0:03:07.116 ********* 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 19:10:17 +0000 (0:00:00.779) 0:03:07.895 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:10:17 +0000 (0:00:00.270) 0:03:08.165 ********* 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 19:10:17 +0000 (0:00:00.186) 0:03:08.352 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:10:17 +0000 (0:00:00.095) 0:03:08.447 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "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 19:10:18 +0000 (0:00:00.818) 0:03:09.265 ********* 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 19:10:18 +0000 (0:00:00.115) 0:03:09.381 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:10:18 +0000 (0:00:00.133) 0:03:09.515 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "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 19:10:18 +0000 (0:00:00.082) 0:03:09.597 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:10:18 +0000 (0:00:00.075) 0:03:09.673 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:10:19 +0000 (0:00:00.581) 0:03:10.254 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:10:20 +0000 (0:00:00.897) 0:03:11.152 ********* 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 19:10:20 +0000 (0:00:00.175) 0:03:11.327 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.011536", "end": "2022-08-05 19:10:20.744523", "rc": 0, "start": "2022-08-05 19:10:20.732987" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:10:20 +0000 (0:00:00.460) 0:03:11.788 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:10:21 +0000 (0:00:00.963) 0:03:12.752 ********* 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 19:10:22 +0000 (0:00:00.114) 0:03:12.866 ********* 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 19:10:22 +0000 (0:00:00.768) 0:03:13.634 ********* 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 19:10:24 +0000 (0:00:01.961) 0:03:15.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 19:10:26 +0000 (0:00:01.770) 0:03:17.366 ********* 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 19:10:26 +0000 (0:00:00.161) 0:03:17.527 ********* 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 19:10:26 +0000 (0:00:00.101) 0:03:17.629 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:10:26 +0000 (0:00:00.107) 0:03:17.737 ********* 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 19:10:27 +0000 (0:00:00.190) 0:03:17.928 ********* 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 19:10:27 +0000 (0:00:00.076) 0:03:18.004 ********* 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 19:10:27 +0000 (0:00:00.083) 0:03:18.088 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:10:27 +0000 (0:00:00.123) 0:03:18.212 ********* 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 19:10:27 +0000 (0:00:00.609) 0:03:18.821 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:10:28 +0000 (0:00:00.174) 0:03:18.995 ********* 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 19:10:28 +0000 (0:00:00.102) 0:03:19.098 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:10:28 +0000 (0:00:00.107) 0:03:19.205 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "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 19:10:28 +0000 (0:00:00.571) 0:03:19.777 ********* 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 19:10:29 +0000 (0:00:00.107) 0:03:19.885 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:10:29 +0000 (0:00:00.111) 0:03:19.997 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "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 19:10:29 +0000 (0:00:00.106) 0:03:20.103 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:10:29 +0000 (0:00:00.097) 0:03:20.201 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:10:29 +0000 (0:00:00.443) 0:03:20.644 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:10:30 +0000 (0:00:00.811) 0:03:21.456 ********* 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 19:10:30 +0000 (0:00:00.117) 0:03:21.574 ********* 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 19:10:30 +0000 (0:00:00.255) 0:03:21.829 ********* 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 19:10:31 +0000 (0:00:00.079) 0:03:21.908 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:10:31 +0000 (0:00:00.309) 0:03:22.217 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:10:31 +0000 (0:00:00.079) 0:03:22.296 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.022785", "end": "2022-08-05 19:10:31.711948", "rc": 1, "start": "2022-08-05 19:10:31.689163" } 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 19:10:31 +0000 (0:00:00.311) 0:03:22.608 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 05 August 2022 19:10:31 +0000 (0:00:00.095) 0:03:22.703 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 05 August 2022 19:10:31 +0000 (0:00:00.098) 0:03:22.801 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 05 August 2022 19:10:32 +0000 (0:00:00.069) 0:03:22.871 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:10:32 +0000 (0:00:00.118) 0:03:22.989 ********* 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 19:10:32 +0000 (0:00:00.122) 0:03:23.112 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 19:10:32 +0000 (0:00:00.142) 0:03:23.254 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 05 August 2022 19:10:32 +0000 (0:00:00.356) 0:03:23.610 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=83 changed=7 unreachable=0 failed=0 skipped=47 rescued=0 ignored=1 Friday 05 August 2022 19:10:33 +0000 (0:00:00.313) 0:03:23.924 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 15.13s Install iproute -------------------------------------------------------- 14.17s linux-system-roles.network : Configure networking connection profiles -- 13.38s linux-system-roles.network : Enable and start NetworkManager ----------- 12.72s linux-system-roles.network : Re-test connectivity ---------------------- 11.85s linux-system-roles.network : Check which services are running ----------- 9.12s Gathering Facts --------------------------------------------------------- 7.33s Get stat for interface ethtest0 ----------------------------------------- 6.88s Create EPEL 8 ----------------------------------------------------------- 6.26s Get the routing rule for looking up the table 30600 --------------------- 4.05s Get the routing rule for looking up the table 30400 --------------------- 4.02s Create veth interface ethtest0 ------------------------------------------ 3.84s Get the routing rule for looking up the table 30200 --------------------- 3.62s Gathering Facts --------------------------------------------------------- 3.05s Get the IPv4 routing rule for the connection "ethtest0" ----------------- 3.04s Gathering Facts --------------------------------------------------------- 2.66s linux-system-roles.network : Install packages --------------------------- 2.60s Gather current interface info ------------------------------------------- 2.58s linux-system-roles.network : Configure networking state ----------------- 2.39s Enable EPEL 8 ----------------------------------------------------------- 2.27s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---