# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_route_table.yml' with nm as provider] ****** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:12 +0000 (0:00:00.029) 0:00:00.029 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:13 +0000 (0:00:00.860) 0:00:00.890 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 17:53:13 +0000 (0:00:00.034) 0:00:00.925 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:13 +0000 (0:00:00.046) 0:00:00.971 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 17:53:13 +0000 (0:00:00.050) 0:00:01.021 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.285844", "end": "2022-05-27 17:53:15.382756", "rc": 0, "start": "2022-05-27 17:53:13.096912" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:13 ago on Fri May 27 17:53:00 2022. epel-release-latest-8.noarch.rpm 643 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 17:53:15 +0000 (0:00:02.619) 0:00:03.641 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 17:53:15 +0000 (0:00:00.032) 0:00:03.673 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.523018", "end": "2022-05-27 17:53:16.185886", "rc": 0, "start": "2022-05-27 17:53:15.662868" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 17:53:16 +0000 (0:00:00.769) 0:00:04.442 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 17:53:16 +0000 (0:00:00.029) 0:00:04.472 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:16 +0000 (0:00:00.033) 0:00:04.506 ************ ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:17 +0000 (0:00:00.569) 0:00:05.076 ************ ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 27 May 2022 17:53:17 +0000 (0:00:00.587) 0:00:05.663 ************ ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:17 +0000 (0:00:00.041) 0:00:05.704 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.051) 0:00:05.756 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.049) 0:00:05.805 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003051", "end": "2022-05-27 17:53:17.806639", "rc": 0, "start": "2022-05-27 17:53:17.803588" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.257) 0:00:06.062 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.033) 0:00:06.096 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.033) 0:00:06.130 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.060) 0:00:06.191 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.031) 0:00:06.222 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.030) 0:00:06.253 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.043) 0:00:06.297 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.043) 0:00:06.341 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002968", "end": "2022-05-27 17:53:18.330749", "rc": 0, "start": "2022-05-27 17:53:18.327781" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:53:18 +0000 (0:00:00.245) 0:00:06.586 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.034) 0:00:06.620 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 17:53:18 +0000 (0:00:00.035) 0:00:06.655 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 27 May 2022 17:53:28 +0000 (0:00:09.270) 0:00:15.926 ************ 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.082305", "end": "2022-05-27 17:53:28.010179", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-05-27 17:53:27.927874" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.003826", "end": "2022-05-27 17:53:28.276260", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-05-27 17:53:28.272434" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.004336", "end": "2022-05-27 17:53:28.505826", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-05-27 17:53:28.501490" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.838) 0:00:16.764 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.108182", "end": "2022-05-27 17:53:28.864429", "rc": 0, "start": "2022-05-27 17:53:28.756247" } TASK [Delete veth interface ethtest0] ****************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.358) 0:00:17.122 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.034) 0:00:17.157 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.036) 0:00:17.193 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 27 May 2022 17:53:29 +0000 (0:00:00.035) 0:00:17.229 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 27 May 2022 17:53:29 +0000 (0:00:00.036) 0:00:17.266 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.033) 0:00:17.300 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.063) 0:00:17.363 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 27 May 2022 17:53:29 +0000 (0:00:00.047) 0:00:17.410 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653674007.995697, "block_size": 4096, "blocks": 0, "ctime": 1653674007.995697, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21346, "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": 1653674007.995697, "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 27 May 2022 17:53:30 +0000 (0:00:00.417) 0:00:17.828 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:53:30 +0000 (0:00:00.037) 0:00:17.866 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:53:30 +0000 (0:00:00.150) 0:00:18.017 ************ 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 27 May 2022 17:53:30 +0000 (0:00:00.388) 0:00:18.405 ************ 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 27 May 2022 17:53:32 +0000 (0:00:01.786) 0:00:20.192 ************ 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 27 May 2022 17:53:34 +0000 (0:00:01.762) 0:00:21.955 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:53:34 +0000 (0:00:00.088) 0:00:22.043 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:53:34 +0000 (0:00:00.151) 0:00:22.195 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:53:34 +0000 (0:00:00.136) 0:00:22.331 ************ 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 27 May 2022 17:53:35 +0000 (0:00:00.807) 0:00:23.139 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:53:35 +0000 (0:00:00.093) 0:00:23.232 ************ 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 27 May 2022 17:53:35 +0000 (0:00:00.082) 0:00:23.315 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:53:35 +0000 (0:00:00.082) 0:00:23.397 ************ 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" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 } ] }, "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, c1787c3a-9952-41e9-9bd1-34f27c36817a [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:53:36 +0000 (0:00:00.846) 0:00:24.243 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:53:36 +0000 (0:00:00.086) 0:00:24.330 ************ 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" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 } ] }, "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, c1787c3a-9952-41e9-9bd1-34f27c36817a\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:53:36 +0000 (0:00:00.087) 0:00:24.418 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the route table 30200] ******************************* Friday 27 May 2022 17:53:37 +0000 (0:00:00.447) 0:00:24.865 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30200" ], "delta": "0:00:00.003947", "end": "2022-05-27 17:53:36.860837", "rc": 0, "start": "2022-05-27 17:53:36.856890" } STDOUT: 198.51.100.64/26 via 198.51.100.6 dev ethtest0 proto static metric 4 TASK [Get the routes from the route table 30400] ******************************* Friday 27 May 2022 17:53:37 +0000 (0:00:00.301) 0:00:25.166 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30400" ], "delta": "0:00:00.003432", "end": "2022-05-27 17:53:37.162882", "rc": 0, "start": "2022-05-27 17:53:37.159450" } STDOUT: 198.51.100.128/26 via 198.51.100.1 dev ethtest0 proto static metric 2 TASK [Assert that the route table 30200 contains the specified route] ********** Friday 27 May 2022 17:53:37 +0000 (0:00:00.346) 0:00:25.513 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the route table 30400 contains the specified route] ********** Friday 27 May 2022 17:53:37 +0000 (0:00:00.088) 0:00:25.601 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Create a dedicated test file in `/etc/iproute2/rt_tables.d/` and add a new routing table] *** Friday 27 May 2022 17:53:37 +0000 (0:00:00.088) 0:00:25.689 ************ changed: [sut] => { "backup": "", "changed": true } MSG: line added TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:53:38 +0000 (0:00:00.411) 0:00:26.101 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:53:38 +0000 (0:00:00.141) 0:00:26.242 ************ 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 27 May 2022 17:53:38 +0000 (0:00:00.458) 0:00:26.700 ************ 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 27 May 2022 17:53:40 +0000 (0:00:01.653) 0:00:28.354 ************ 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 27 May 2022 17:53:42 +0000 (0:00:01.525) 0:00:29.879 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:53:42 +0000 (0:00:00.083) 0:00:29.962 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:53:42 +0000 (0:00:00.135) 0:00:30.098 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:53:42 +0000 (0:00:00.089) 0:00:30.187 ************ 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 27 May 2022 17:53:42 +0000 (0:00:00.500) 0:00:30.688 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:53:43 +0000 (0:00:00.089) 0:00:30.778 ************ 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 27 May 2022 17:53:43 +0000 (0:00:00.085) 0:00:30.863 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:53:43 +0000 (0:00:00.078) 0:00:30.942 ************ 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" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": "custom" }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": "custom" } ] }, "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': update connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (is-modified) [005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:53:43 +0000 (0:00:00.669) 0:00:31.612 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:53:43 +0000 (0:00:00.090) 0:00:31.702 ************ 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" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": "custom" }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": "custom" } ] }, "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': update connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (is-modified)\n[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, c1787c3a-9952-41e9-9bd1-34f27c36817a (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:53:44 +0000 (0:00:00.090) 0:00:31.793 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the named route table 'custom'] ********************** Friday 27 May 2022 17:53:44 +0000 (0:00:00.288) 0:00:32.082 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "custom" ], "delta": "0:00:00.003137", "end": "2022-05-27 17:53:44.071420", "rc": 0, "start": "2022-05-27 17:53:44.068283" } STDOUT: 198.51.100.64/26 via 198.51.100.6 dev ethtest0 proto static metric 4 198.51.100.128/26 via 198.51.100.1 dev ethtest0 proto static metric 2 TASK [Assert that the named route table 'custom' contains the specified route] *** Friday 27 May 2022 17:53:44 +0000 (0:00:00.307) 0:00:32.389 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove the dedicated test file in `/etc/iproute2/rt_tables.d/`] ********** Friday 27 May 2022 17:53:44 +0000 (0:00:00.089) 0:00:32.479 ************ changed: [sut] => { "changed": true, "path": "/etc/iproute2/rt_tables.d/table.conf", "state": "absent" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:45 +0000 (0:00:00.490) 0:00:32.970 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:53:45 +0000 (0:00:00.642) 0:00:33.613 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:53:46 +0000 (0:00:00.138) 0:00:33.751 ************ 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 27 May 2022 17:53:46 +0000 (0:00:00.509) 0:00:34.261 ************ 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 27 May 2022 17:53:48 +0000 (0:00:01.673) 0:00:35.935 ************ 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 27 May 2022 17:53:49 +0000 (0:00:01.473) 0:00:37.408 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:53:49 +0000 (0:00:00.088) 0:00:37.496 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:53:49 +0000 (0:00:00.148) 0:00:37.645 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:53:50 +0000 (0:00:00.139) 0:00:37.785 ************ 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 27 May 2022 17:53:50 +0000 (0:00:00.505) 0:00:38.290 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:53:50 +0000 (0:00:00.091) 0:00:38.382 ************ 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 27 May 2022 17:53:50 +0000 (0:00:00.080) 0:00:38.463 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:53:50 +0000 (0:00:00.081) 0:00:38.545 ************ 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 : Show stderr messages] *********************** Friday 27 May 2022 17:53:51 +0000 (0:00:00.678) 0:00:39.223 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:53:51 +0000 (0:00:00.089) 0:00:39.312 ************ 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 : Re-test connectivity] *********************** Friday 27 May 2022 17:53:51 +0000 (0:00:00.089) 0:00:39.401 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:51 +0000 (0:00:00.297) 0:00:39.699 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:53:52 +0000 (0:00:00.681) 0:00:40.381 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 27 May 2022 17:53:52 +0000 (0:00:00.203) 0:00:40.584 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.014914", "end": "2022-05-27 17:53:52.611186", "rc": 0, "start": "2022-05-27 17:53:52.596272" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:53 +0000 (0:00:00.388) 0:00:40.972 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:53:53 +0000 (0:00:00.643) 0:00:41.616 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:53:54 +0000 (0:00:00.142) 0:00:41.759 ************ 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 27 May 2022 17:53:54 +0000 (0:00:00.457) 0:00:42.216 ************ 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 27 May 2022 17:53:56 +0000 (0:00:01.678) 0:00:43.895 ************ 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 27 May 2022 17:53:57 +0000 (0:00:01.530) 0:00:45.425 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:53:57 +0000 (0:00:00.088) 0:00:45.514 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:53:57 +0000 (0:00:00.143) 0:00:45.657 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:53:58 +0000 (0:00:00.095) 0:00:45.753 ************ 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 27 May 2022 17:53:58 +0000 (0:00:00.530) 0:00:46.284 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:53:58 +0000 (0:00:00.098) 0:00:46.383 ************ 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 27 May 2022 17:53:58 +0000 (0:00:00.082) 0:00:46.465 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:53:58 +0000 (0:00:00.082) 0:00:46.547 ************ 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 : Show stderr messages] *********************** Friday 27 May 2022 17:53:59 +0000 (0:00:00.626) 0:00:47.174 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:53:59 +0000 (0:00:00.085) 0:00:47.260 ************ 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 : Re-test connectivity] *********************** Friday 27 May 2022 17:53:59 +0000 (0:00:00.085) 0:00:47.345 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:53:59 +0000 (0:00:00.286) 0:00:47.632 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:54:00 +0000 (0:00:00.619) 0:00:48.252 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:54:00 +0000 (0:00:00.138) 0:00:48.391 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 17:54:00 +0000 (0:00:00.148) 0:00:48.539 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 17:54:00 +0000 (0:00:00.086) 0:00:48.625 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 17:54:01 +0000 (0:00:00.298) 0:00:48.924 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 17:54:01 +0000 (0:00:00.082) 0:00:49.006 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.021216", "end": "2022-05-27 17:54:01.022369", "rc": 1, "start": "2022-05-27 17:54:01.001153" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 17:54:01 +0000 (0:00:00.377) 0:00:49.384 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 27 May 2022 17:54:01 +0000 (0:00:00.088) 0:00:49.472 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 27 May 2022 17:54:01 +0000 (0:00:00.088) 0:00:49.561 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 27 May 2022 17:54:01 +0000 (0:00:00.085) 0:00:49.646 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:54:02 +0000 (0:00:00.087) 0:00:49.733 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:54:02 +0000 (0:00:00.136) 0:00:49.870 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 27 May 2022 17:54:02 +0000 (0:00:00.139) 0:00:50.010 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 27 May 2022 17:54:02 +0000 (0:00:00.306) 0:00:50.316 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=91 changed=10 unreachable=0 failed=0 skipped=34 rescued=0 ignored=1 Friday 27 May 2022 17:54:02 +0000 (0:00:00.032) 0:00:50.349 ************ =============================================================================== Install iproute --------------------------------------------------------- 9.27s Create EPEL 8 ----------------------------------------------------------- 2.62s linux-system-roles.network : Check which services are running ----------- 1.79s linux-system-roles.network : Check which packages are installed --------- 1.76s linux-system-roles.network : Check which services are running ----------- 1.68s linux-system-roles.network : Check which services are running ----------- 1.67s linux-system-roles.network : Check which services are running ----------- 1.65s linux-system-roles.network : Check which packages are installed --------- 1.53s linux-system-roles.network : Check which packages are installed --------- 1.53s linux-system-roles.network : Check which packages are installed --------- 1.47s Gathering Facts --------------------------------------------------------- 0.86s linux-system-roles.network : Configure networking connection profiles --- 0.85s Create veth interface ethtest0 ------------------------------------------ 0.84s linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s Enable EPEL 8 ----------------------------------------------------------- 0.77s Gathering Facts --------------------------------------------------------- 0.68s linux-system-roles.network : Configure networking connection profiles --- 0.68s linux-system-roles.network : Configure networking connection profiles --- 0.67s Gathering Facts --------------------------------------------------------- 0.64s Gathering Facts --------------------------------------------------------- 0.64s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---