# 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] ********************************************************* Tuesday 31 May 2022 01:54:38 +0000 (0:00:00.027) 0:00:00.027 *********** ok: [sut] TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.969) 0:00:00.997 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.028) 0:00:01.026 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.041) 0:00:01.067 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.048) 0:00:01.116 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.028) 0:00:01.145 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.027) 0:00:01.173 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.029) 0:00:01.203 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.027) 0:00:01.230 *********** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:54:39 +0000 (0:00:00.027) 0:00:01.258 *********** ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:54:40 +0000 (0:00:00.552) 0:00:01.811 *********** ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Tuesday 31 May 2022 01:54:41 +0000 (0:00:00.561) 0:00:02.373 *********** ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:54:41 +0000 (0:00:00.036) 0:00:02.410 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:54:41 +0000 (0:00:00.047) 0:00:02.458 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Tuesday 31 May 2022 01:54:41 +0000 (0:00:00.035) 0:00:02.494 *********** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.004844", "end": "2022-05-31 01:54:41.955919", "rc": 0, "start": "2022-05-31 01:54:40.951075" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Tuesday 31 May 2022 01:54:42 +0000 (0:00:01.377) 0:00:03.871 *********** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.056) 0:00:03.927 *********** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.047) 0:00:03.975 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.057) 0:00:04.033 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.031) 0:00:04.064 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.039) 0:00:04.103 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.045) 0:00:04.148 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Tuesday 31 May 2022 01:54:42 +0000 (0:00:00.044) 0:00:04.193 *********** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003518", "end": "2022-05-31 01:54:42.543258", "rc": 0, "start": "2022-05-31 01:54:42.539740" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Tuesday 31 May 2022 01:54:43 +0000 (0:00:00.260) 0:00:04.453 *********** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Tuesday 31 May 2022 01:54:43 +0000 (0:00:00.040) 0:00:04.493 *********** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Tuesday 31 May 2022 01:54:43 +0000 (0:00:00.039) 0:00:04.532 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Tuesday 31 May 2022 01:54:46 +0000 (0:00:03.116) 0:00:07.649 *********** 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.070644", "end": "2022-05-31 01:54:46.136519", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-05-31 01:54:46.065875" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.004082", "end": "2022-05-31 01:54:46.395494", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-05-31 01:54:46.391412" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.006347", "end": "2022-05-31 01:54:46.634149", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-05-31 01:54:46.627802" } TASK [Set up veth as managed by NetworkManager] ******************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.910) 0:00:08.559 *********** changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.097005", "end": "2022-05-31 01:54:47.035484", "rc": 0, "start": "2022-05-31 01:54:46.938479" } TASK [Delete veth interface ethtest0] ****************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.385) 0:00:08.944 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.036) 0:00:08.981 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.037) 0:00:09.018 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.035) 0:00:09.054 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.033) 0:00:09.087 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.035) 0:00:09.123 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.059) 0:00:09.183 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Tuesday 31 May 2022 01:54:47 +0000 (0:00:00.040) 0:00:09.223 *********** ok: [sut] => { "changed": false, "stat": { "atime": 1653962086.1298177, "block_size": 4096, "blocks": 0, "ctime": 1653962086.1298177, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24614, "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": 1653962086.1298177, "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] ******************************* Tuesday 31 May 2022 01:54:48 +0000 (0:00:00.385) 0:00:09.608 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:54:48 +0000 (0:00:00.047) 0:00:09.656 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:54:48 +0000 (0:00:00.165) 0:00:09.821 *********** 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] *********** Tuesday 31 May 2022 01:54:48 +0000 (0:00:00.409) 0:00:10.231 *********** 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] ********* Tuesday 31 May 2022 01:54:51 +0000 (0:00:02.062) 0:00:12.294 *********** 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] ********************* Tuesday 31 May 2022 01:54:52 +0000 (0:00:01.147) 0:00:13.442 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:54:52 +0000 (0:00:00.083) 0:00:13.525 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:54:52 +0000 (0:00:00.142) 0:00:13.667 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:54:52 +0000 (0:00:00.090) 0:00:13.757 *********** 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] ************ Tuesday 31 May 2022 01:54:53 +0000 (0:00:00.778) 0:00:14.536 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:54:53 +0000 (0:00:00.089) 0:00:14.625 *********** 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] *** Tuesday 31 May 2022 01:54:53 +0000 (0:00:00.075) 0:00:14.700 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:54:53 +0000 (0:00:00.074) 0:00:14.775 *********** 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, 5c7b7391-6e35-4f5b-8279-d060e12147de [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Tuesday 31 May 2022 01:54:54 +0000 (0:00:00.892) 0:00:15.668 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:54:54 +0000 (0:00:00.086) 0:00:15.754 *********** 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, 5c7b7391-6e35-4f5b-8279-d060e12147de\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Tuesday 31 May 2022 01:54:54 +0000 (0:00:00.081) 0:00:15.835 *********** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the route table 30200] ******************************* Tuesday 31 May 2022 01:54:54 +0000 (0:00:00.419) 0:00:16.255 *********** ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30200" ], "delta": "0:00:00.004001", "end": "2022-05-31 01:54:54.601779", "rc": 0, "start": "2022-05-31 01:54:54.597778" } 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] ******************************* Tuesday 31 May 2022 01:54:55 +0000 (0:00:00.292) 0:00:16.547 *********** ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30400" ], "delta": "0:00:00.003647", "end": "2022-05-31 01:54:54.892576", "rc": 0, "start": "2022-05-31 01:54:54.888929" } 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] ********** Tuesday 31 May 2022 01:54:55 +0000 (0:00:00.293) 0:00:16.841 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the route table 30400 contains the specified route] ********** Tuesday 31 May 2022 01:54:55 +0000 (0:00:00.078) 0:00:16.919 *********** 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] *** Tuesday 31 May 2022 01:54:55 +0000 (0:00:00.073) 0:00:16.993 *********** changed: [sut] => { "backup": "", "changed": true } MSG: line added TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:54:56 +0000 (0:00:00.387) 0:00:17.381 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:54:56 +0000 (0:00:00.131) 0:00:17.512 *********** 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] *********** Tuesday 31 May 2022 01:54:56 +0000 (0:00:00.465) 0:00:17.978 *********** 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] ********* Tuesday 31 May 2022 01:54:58 +0000 (0:00:01.937) 0:00:19.915 *********** 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] ********************* Tuesday 31 May 2022 01:54:59 +0000 (0:00:00.827) 0:00:20.743 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:54:59 +0000 (0:00:00.079) 0:00:20.823 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:54:59 +0000 (0:00:00.155) 0:00:20.978 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:54:59 +0000 (0:00:00.084) 0:00:21.063 *********** 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] ************ Tuesday 31 May 2022 01:55:00 +0000 (0:00:00.506) 0:00:21.569 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:55:00 +0000 (0:00:00.086) 0:00:21.655 *********** 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] *** Tuesday 31 May 2022 01:55:00 +0000 (0:00:00.079) 0:00:21.735 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:55:00 +0000 (0:00:00.075) 0:00:21.810 *********** 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, 5c7b7391-6e35-4f5b-8279-d060e12147de [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (is-modified) [005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied TASK [linux-system-roles.network : Show stderr messages] *********************** Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.627) 0:00:22.438 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.083) 0:00:22.521 *********** 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, 5c7b7391-6e35-4f5b-8279-d060e12147de\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (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, 5c7b7391-6e35-4f5b-8279-d060e12147de", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 5c7b7391-6e35-4f5b-8279-d060e12147de (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.081) 0:00:22.603 *********** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the named route table 'custom'] ********************** Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.290) 0:00:22.893 *********** ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "custom" ], "delta": "0:00:00.003672", "end": "2022-05-31 01:55:01.239952", "rc": 0, "start": "2022-05-31 01:55:01.236280" } 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] *** Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.294) 0:00:23.188 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove the dedicated test file in `/etc/iproute2/rt_tables.d/`] ********** Tuesday 31 May 2022 01:55:01 +0000 (0:00:00.080) 0:00:23.269 *********** changed: [sut] => { "changed": true, "path": "/etc/iproute2/rt_tables.d/table.conf", "state": "absent" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:55:02 +0000 (0:00:00.483) 0:00:23.753 *********** ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:55:03 +0000 (0:00:00.625) 0:00:24.378 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:55:03 +0000 (0:00:00.127) 0:00:24.506 *********** 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] *********** Tuesday 31 May 2022 01:55:03 +0000 (0:00:00.508) 0:00:25.015 *********** 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] ********* Tuesday 31 May 2022 01:55:05 +0000 (0:00:01.943) 0:00:26.959 *********** 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] ********************* Tuesday 31 May 2022 01:55:06 +0000 (0:00:00.822) 0:00:27.781 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:55:06 +0000 (0:00:00.080) 0:00:27.861 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:55:06 +0000 (0:00:00.129) 0:00:27.991 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:55:06 +0000 (0:00:00.081) 0:00:28.072 *********** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Tuesday 31 May 2022 01:55:07 +0000 (0:00:00.545) 0:00:28.618 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:55:07 +0000 (0:00:00.085) 0:00:28.703 *********** 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] *** Tuesday 31 May 2022 01:55:07 +0000 (0:00:00.075) 0:00:28.779 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:55:07 +0000 (0:00:00.071) 0:00:28.851 *********** 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] *********************** Tuesday 31 May 2022 01:55:08 +0000 (0:00:00.578) 0:00:29.429 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:55:08 +0000 (0:00:00.074) 0:00:29.504 *********** 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] *********************** Tuesday 31 May 2022 01:55:08 +0000 (0:00:00.075) 0:00:29.579 *********** ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:55:08 +0000 (0:00:00.286) 0:00:29.866 *********** ok: [sut] TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:55:09 +0000 (0:00:00.606) 0:00:30.473 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Tuesday 31 May 2022 01:55:09 +0000 (0:00:00.126) 0:00:30.599 *********** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.012740", "end": "2022-05-31 01:55:08.959311", "rc": 0, "start": "2022-05-31 01:55:08.946571" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:55:09 +0000 (0:00:00.359) 0:00:30.959 *********** ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:55:10 +0000 (0:00:00.588) 0:00:31.547 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:55:10 +0000 (0:00:00.120) 0:00:31.667 *********** 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] *********** Tuesday 31 May 2022 01:55:10 +0000 (0:00:00.466) 0:00:32.134 *********** 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] ********* Tuesday 31 May 2022 01:55:12 +0000 (0:00:01.938) 0:00:34.072 *********** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Tuesday 31 May 2022 01:55:13 +0000 (0:00:00.905) 0:00:34.978 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:55:13 +0000 (0:00:00.079) 0:00:35.058 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:55:13 +0000 (0:00:00.124) 0:00:35.182 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:55:13 +0000 (0:00:00.081) 0:00:35.263 *********** 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] ************ Tuesday 31 May 2022 01:55:14 +0000 (0:00:00.499) 0:00:35.763 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:55:14 +0000 (0:00:00.081) 0:00:35.845 *********** 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] *** Tuesday 31 May 2022 01:55:14 +0000 (0:00:00.070) 0:00:35.916 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:55:14 +0000 (0:00:00.078) 0:00:35.995 *********** 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] *********************** Tuesday 31 May 2022 01:55:15 +0000 (0:00:00.535) 0:00:36.530 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:55:15 +0000 (0:00:00.073) 0:00:36.604 *********** 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] *********************** Tuesday 31 May 2022 01:55:15 +0000 (0:00:00.075) 0:00:36.679 *********** ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:55:15 +0000 (0:00:00.286) 0:00:36.966 *********** ok: [sut] TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.583) 0:00:37.550 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.117) 0:00:37.667 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.123) 0:00:37.791 *********** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.073) 0:00:37.864 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.293) 0:00:38.158 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Tuesday 31 May 2022 01:55:16 +0000 (0:00:00.072) 0:00:38.230 *********** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.020892", "end": "2022-05-31 01:55:16.594691", "rc": 1, "start": "2022-05-31 01:55:16.573799" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.309) 0:00:38.539 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.080) 0:00:38.620 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.080) 0:00:38.700 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.076) 0:00:38.776 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.077) 0:00:38.854 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.126) 0:00:38.980 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Tuesday 31 May 2022 01:55:17 +0000 (0:00:00.161) 0:00:39.142 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Tuesday 31 May 2022 01:55:18 +0000 (0:00:00.287) 0:00:39.430 *********** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=89 changed=8 unreachable=0 failed=0 skipped=36 rescued=0 ignored=1 Tuesday 31 May 2022 01:55:18 +0000 (0:00:00.030) 0:00:39.460 *********** =============================================================================== Install iproute --------------------------------------------------------- 3.12s linux-system-roles.network : Check which services are running ----------- 2.06s linux-system-roles.network : Check which services are running ----------- 1.94s linux-system-roles.network : Check which services are running ----------- 1.94s linux-system-roles.network : Check which services are running ----------- 1.94s Gather current interface info ------------------------------------------- 1.38s linux-system-roles.network : Check which packages are installed --------- 1.15s Gathering Facts --------------------------------------------------------- 0.97s Create veth interface ethtest0 ------------------------------------------ 0.91s linux-system-roles.network : Check which packages are installed --------- 0.91s linux-system-roles.network : Configure networking connection profiles --- 0.89s linux-system-roles.network : Check which packages are installed --------- 0.83s linux-system-roles.network : Check which packages are installed --------- 0.82s linux-system-roles.network : Enable and start NetworkManager ------------ 0.78s linux-system-roles.network : Configure networking connection profiles --- 0.63s Gathering Facts --------------------------------------------------------- 0.63s Gathering Facts --------------------------------------------------------- 0.61s Gathering Facts --------------------------------------------------------- 0.59s Gathering Facts --------------------------------------------------------- 0.58s linux-system-roles.network : Configure networking connection profiles --- 0.58s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---