# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 13:49:33 +0000 (0:00:00.050) 0:00:00.050 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:34 +0000 (0:00:01.148) 0:00:01.199 ************ 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 13:49:34 +0000 (0:00:00.033) 0:00:01.232 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:34 +0000 (0:00:00.051) 0:00:01.284 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 13:49:34 +0000 (0:00:00.055) 0:00:01.339 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.423528", "end": "2022-05-27 13:49:37.174738", "rc": 0, "start": "2022-05-27 13:49:34.751210" } 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:15 ago on Fri May 27 13:49:20 2022. epel-release-latest-8.noarch.rpm 124 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 13:49:37 +0000 (0:00:02.795) 0:00:04.135 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 13:49:37 +0000 (0:00:00.089) 0:00:04.224 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.519246", "end": "2022-05-27 13:49:38.078686", "rc": 0, "start": "2022-05-27 13:49:37.559440" } 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 13:49:38 +0000 (0:00:00.799) 0:00:05.024 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 13:49:38 +0000 (0:00:00.035) 0:00:05.059 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 13:49:38 +0000 (0:00:00.047) 0:00:05.107 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.579) 0:00:05.687 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.072) 0:00:05.759 ************ 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 13:49:39 +0000 (0:00:00.044) 0:00:05.804 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003354", "end": "2022-05-27 13:49:39.116421", "rc": 0, "start": "2022-05-27 13:49:39.113067" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.252) 0:00:06.056 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 13:49:39 +0000 (0:00:00.043) 0:00:06.100 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.038) 0:00:06.138 ************ 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 13:49:39 +0000 (0:00:00.078) 0:00:06.217 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 13:49:39 +0000 (0:00:00.046) 0:00:06.263 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.047) 0:00:06.310 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:49:39 +0000 (0:00:00.073) 0:00:06.384 ************ 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 13:49:40 +0000 (0:00:00.053) 0:00:06.437 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003049", "end": "2022-05-27 13:49:39.744322", "rc": 0, "start": "2022-05-27 13:49:39.741273" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 13:49:40 +0000 (0:00:00.256) 0:00:06.694 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 13:49:40 +0000 (0:00:00.048) 0:00:06.743 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 13:49:40 +0000 (0:00:00.061) 0:00:06.804 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 13:49:49 +0000 (0:00:09.540) 0:00:16.344 ************ changed: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.089408", "end": "2022-05-27 13:49:49.753727", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-05-27 13:49:49.664319" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.004539", "end": "2022-05-27 13:49:49.999619", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-05-27 13:49:49.995080" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.004340", "end": "2022-05-27 13:49:50.236561", "item": "ip link set veth0 up", "rc": 0, "start": "2022-05-27 13:49:50.232221" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 13:49:50 +0000 (0:00:00.839) 0:00:17.183 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.098972", "end": "2022-05-27 13:49:50.620197", "rc": 0, "start": "2022-05-27 13:49:50.521225" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 13:49:51 +0000 (0:00:00.378) 0:00:17.562 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.042) 0:00:17.604 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.041) 0:00:17.645 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.051) 0:00:17.697 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.040) 0:00:17.738 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.045) 0:00:17.784 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.089) 0:00:17.873 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.058) 0:00:17.931 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659389.743061, "block_size": 4096, "blocks": 0, "ctime": 1653659389.743061, "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/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1653659389.743061, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface veth0 is present] ********************************** Friday 27 May 2022 13:49:51 +0000 (0:00:00.412) 0:00:18.344 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Friday 27 May 2022 13:49:51 +0000 (0:00:00.044) 0:00:18.388 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:49:52 +0000 (0:00:00.035) 0:00:18.424 ************ 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 13:49:52 +0000 (0:00:00.150) 0:00:18.574 ************ 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 13:49:52 +0000 (0:00:00.417) 0:00:18.992 ************ 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 13:49:54 +0000 (0:00:01.733) 0:00:20.725 ************ 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 13:49:56 +0000 (0:00:01.739) 0:00:22.464 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:49:56 +0000 (0:00:00.080) 0:00:22.545 ************ 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 13:49:56 +0000 (0:00:00.195) 0:00:22.740 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:49:56 +0000 (0:00:00.093) 0:00:22.834 ************ 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 13:49:57 +0000 (0:00:00.784) 0:00:23.618 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:49:57 +0000 (0:00:00.086) 0:00:23.705 ************ 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 13:49:57 +0000 (0:00:00.077) 0:00:23.783 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:49:57 +0000 (0:00:00.078) 0:00:23.861 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 13:49:58 +0000 (0:00:00.816) 0:00:24.678 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:49:58 +0000 (0:00:00.083) 0:00:24.761 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "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, 'veth0': add connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 849ecfd7-9849-4a44-b813-d4e39daaaa32 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 13:49:58 +0000 (0:00:00.086) 0:00:24.847 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:58 +0000 (0:00:00.441) 0:00:25.288 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:49:59 +0000 (0:00:00.209) 0:00:25.498 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 27 May 2022 13:49:59 +0000 (0:00:00.136) 0:00:25.634 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659389.743061, "block_size": 4096, "blocks": 0, "ctime": 1653659389.743061, "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/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1653659389.743061, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface veth0 is present] ********************************** Friday 27 May 2022 13:49:59 +0000 (0:00:00.299) 0:00:25.934 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:49:59 +0000 (0:00:00.084) 0:00:26.019 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:49:59 +0000 (0:00:00.175) 0:00:26.194 ************ 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 13:49:59 +0000 (0:00:00.138) 0:00:26.332 ************ 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 13:50:00 +0000 (0:00:00.080) 0:00:26.412 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659397.6676314, "block_size": 4096, "blocks": 8, "ctime": 1653659397.617631, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566164, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653659397.617631, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 379, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 13:50:00 +0000 (0:00:00.293) 0:00:26.705 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 13:50:00 +0000 (0:00:00.081) 0:00:26.787 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.024765", "end": "2022-05-27 13:50:00.118530", "rc": 0, "start": "2022-05-27 13:50:00.093765" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 13:50:00 +0000 (0:00:00.318) 0:00:27.106 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Friday 27 May 2022 13:50:00 +0000 (0:00:00.146) 0:00:27.252 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 27 May 2022 13:50:00 +0000 (0:00:00.086) 0:00:27.339 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 27 May 2022 13:50:01 +0000 (0:00:00.089) 0:00:27.428 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 27 May 2022 13:50:01 +0000 (0:00:00.088) 0:00:27.517 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 27 May 2022 13:50:01 +0000 (0:00:00.085) 0:00:27.602 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003360", "end": "2022-05-27 13:50:00.912497", "rc": 0, "start": "2022-05-27 13:50:00.909137" } STDOUT: default via 10.29.163.65 dev eth0 proto dhcp metric 100 default via 203.0.113.1 dev veth0 proto static metric 101 10.29.163.64/26 dev eth0 proto kernel scope link src 10.29.163.101 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is present] ************************************ Friday 27 May 2022 13:50:01 +0000 (0:00:00.299) 0:00:27.902 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 27 May 2022 13:50:01 +0000 (0:00:00.093) 0:00:27.995 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003555", "end": "2022-05-27 13:50:01.309186", "rc": 0, "start": "2022-05-27 13:50:01.305631" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 proto static metric 101 pref medium TASK [Assert default ipv6 route is present] ************************************ Friday 27 May 2022 13:50:01 +0000 (0:00:00.303) 0:00:28.298 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 27 May 2022 13:50:01 +0000 (0:00:00.090) 0:00:28.389 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:50:02 +0000 (0:00:00.081) 0:00:28.470 ************ 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 13:50:02 +0000 (0:00:00.149) 0:00:28.620 ************ 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 13:50:02 +0000 (0:00:00.467) 0:00:29.087 ************ 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 13:50:04 +0000 (0:00:01.673) 0:00:30.761 ************ 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 13:50:05 +0000 (0:00:01.500) 0:00:32.261 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:50:05 +0000 (0:00:00.083) 0:00:32.345 ************ 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 13:50:06 +0000 (0:00:00.138) 0:00:32.483 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:50:06 +0000 (0:00:00.092) 0:00:32.576 ************ 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 13:50:06 +0000 (0:00:00.551) 0:00:33.127 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:50:06 +0000 (0:00:00.086) 0:00:33.214 ************ 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 13:50:06 +0000 (0:00:00.082) 0:00:33.297 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:50:06 +0000 (0:00:00.079) 0:00:33.377 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "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 13:50:07 +0000 (0:00:00.606) 0:00:33.983 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:50:07 +0000 (0:00:00.095) 0:00:34.079 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "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 13:50:07 +0000 (0:00:00.099) 0:00:34.178 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:50:08 +0000 (0:00:00.324) 0:00:34.503 ************ 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 13:50:08 +0000 (0:00:00.179) 0:00:34.682 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 13:50:08 +0000 (0:00:00.076) 0:00:34.758 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 13:50:08 +0000 (0:00:00.080) 0:00:34.839 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:50:08 +0000 (0:00:00.150) 0:00:34.989 ************ 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 13:50:08 +0000 (0:00:00.203) 0:00:35.193 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003173", "end": "2022-05-27 13:50:08.506674", "rc": 0, "start": "2022-05-27 13:50:08.503501" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 13:50:09 +0000 (0:00:00.302) 0:00:35.496 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 13:50:09 +0000 (0:00:00.085) 0:00:35.581 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 13:50:09 +0000 (0:00:00.087) 0:00:35.668 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 13:50:11 +0000 (0:00:01.810) 0:00:37.479 ************ skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 13:50:11 +0000 (0:00:00.105) 0:00:37.585 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 13:50:11 +0000 (0:00:00.083) 0:00:37.668 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.013240", "end": "2022-05-27 13:50:10.996520", "rc": 0, "start": "2022-05-27 13:50:10.983280" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:11 +0000 (0:00:00.324) 0:00:37.993 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:11 +0000 (0:00:00.084) 0:00:38.077 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 13:50:11 +0000 (0:00:00.140) 0:00:38.218 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 13:50:11 +0000 (0:00:00.084) 0:00:38.303 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** Friday 27 May 2022 13:50:11 +0000 (0:00:00.081) 0:00:38.384 ************ ok: [sut] => {} MSG: ################################################## TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:50:12 +0000 (0:00:00.083) 0:00:38.467 ************ 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 13:50:12 +0000 (0:00:00.183) 0:00:38.651 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 13:50:12 +0000 (0:00:00.083) 0:00:38.734 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 13:50:12 +0000 (0:00:00.081) 0:00:38.815 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:50:12 +0000 (0:00:00.142) 0:00:38.958 ************ 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 13:50:12 +0000 (0:00:00.145) 0:00:39.103 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003259", "end": "2022-05-27 13:50:12.420113", "rc": 0, "start": "2022-05-27 13:50:12.416854" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 13:50:13 +0000 (0:00:00.306) 0:00:39.409 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 13:50:13 +0000 (0:00:00.084) 0:00:39.493 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 13:50:13 +0000 (0:00:00.085) 0:00:39.579 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 13:50:14 +0000 (0:00:01.796) 0:00:41.375 ************ changed: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.015470", "end": "2022-05-27 13:50:14.709077", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-05-27 13:50:14.693607" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003928", "end": "2022-05-27 13:50:14.956999", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-05-27 13:50:14.953071" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.004079", "end": "2022-05-27 13:50:15.182968", "item": "ip link set veth0 up", "rc": 0, "start": "2022-05-27 13:50:15.178889" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 13:50:15 +0000 (0:00:00.796) 0:00:42.172 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.027444", "end": "2022-05-27 13:50:15.509347", "rc": 0, "start": "2022-05-27 13:50:15.481903" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 13:50:16 +0000 (0:00:00.329) 0:00:42.501 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:16 +0000 (0:00:00.084) 0:00:42.586 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:16 +0000 (0:00:00.084) 0:00:42.671 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 13:50:16 +0000 (0:00:00.084) 0:00:42.755 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 13:50:16 +0000 (0:00:00.083) 0:00:42.839 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:50:16 +0000 (0:00:00.084) 0:00:42.923 ************ 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 13:50:16 +0000 (0:00:00.207) 0:00:43.131 ************ 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 13:50:17 +0000 (0:00:00.464) 0:00:43.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 : Check which packages are installed] ********* Friday 27 May 2022 13:50:18 +0000 (0:00:01.679) 0:00:45.275 ************ 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 13:50:20 +0000 (0:00:01.483) 0:00:46.758 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:50:20 +0000 (0:00:00.084) 0:00:46.842 ************ 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 13:50:20 +0000 (0:00:00.219) 0:00:47.062 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:50:20 +0000 (0:00:00.094) 0:00:47.157 ************ 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 13:50:21 +0000 (0:00:00.518) 0:00:47.676 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:50:21 +0000 (0:00:00.096) 0:00:47.772 ************ 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 13:50:21 +0000 (0:00:00.085) 0:00:47.858 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:50:21 +0000 (0:00:00.081) 0:00:47.939 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 13:50:22 +0000 (0:00:00.595) 0:00:48.535 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:50:22 +0000 (0:00:00.086) 0:00:48.622 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 6cc7e49d-c25a-42bd-9673-af6a5e56b085 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 13:50:22 +0000 (0:00:00.089) 0:00:48.711 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:50:22 +0000 (0:00:00.294) 0:00:49.005 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:50:22 +0000 (0:00:00.189) 0:00:49.195 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 27 May 2022 13:50:23 +0000 (0:00:00.218) 0:00:49.414 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659414.6968088, "block_size": 4096, "blocks": 0, "ctime": 1653659414.6968088, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21932, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1653659414.6968088, "nlink": 1, "path": "/sys/class/net/veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface veth0 is present] ********************************** Friday 27 May 2022 13:50:23 +0000 (0:00:00.301) 0:00:49.715 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:50:23 +0000 (0:00:00.085) 0:00:49.801 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:50:23 +0000 (0:00:00.182) 0:00:49.983 ************ 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 13:50:23 +0000 (0:00:00.148) 0:00:50.131 ************ 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 13:50:23 +0000 (0:00:00.088) 0:00:50.220 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659421.5238898, "block_size": 4096, "blocks": 8, "ctime": 1653659421.4738889, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566164, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653659421.4738889, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 330, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.294) 0:00:50.515 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.090) 0:00:50.606 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.023858", "end": "2022-05-27 13:50:23.942876", "rc": 0, "start": "2022-05-27 13:50:23.919018" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 13:50:24 +0000 (0:00:00.325) 0:00:50.932 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.095) 0:00:51.027 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.087) 0:00:51.115 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.156) 0:00:51.272 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 27 May 2022 13:50:24 +0000 (0:00:00.090) 0:00:51.362 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 27 May 2022 13:50:25 +0000 (0:00:00.084) 0:00:51.447 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003734", "end": "2022-05-27 13:50:24.757001", "rc": 0, "start": "2022-05-27 13:50:24.753267" } STDOUT: default via 10.29.163.65 dev eth0 proto dhcp metric 100 10.29.163.64/26 dev eth0 proto kernel scope link src 10.29.163.101 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is absent] ************************************* Friday 27 May 2022 13:50:25 +0000 (0:00:00.299) 0:00:51.746 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 27 May 2022 13:50:25 +0000 (0:00:00.086) 0:00:51.833 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003517", "end": "2022-05-27 13:50:25.142984", "rc": 0, "start": "2022-05-27 13:50:25.139467" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium TASK [Assert default ipv6 route is absent] ************************************* Friday 27 May 2022 13:50:25 +0000 (0:00:00.305) 0:00:52.138 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 27 May 2022 13:50:25 +0000 (0:00:00.091) 0:00:52.229 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:50:25 +0000 (0:00:00.084) 0:00:52.313 ************ 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 13:50:26 +0000 (0:00:00.140) 0:00:52.454 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 13:50:26 +0000 (0:00:00.466) 0:00:52.920 ************ 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 13:50:28 +0000 (0:00:01.683) 0:00:54.603 ************ 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 13:50:29 +0000 (0:00:01.522) 0:00:56.125 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:50:29 +0000 (0:00:00.088) 0:00:56.214 ************ 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 13:50:29 +0000 (0:00:00.143) 0:00:56.358 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:50:30 +0000 (0:00:00.097) 0:00:56.455 ************ 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 13:50:30 +0000 (0:00:00.511) 0:00:56.966 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:50:30 +0000 (0:00:00.166) 0:00:57.133 ************ 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 13:50:30 +0000 (0:00:00.083) 0:00:57.217 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:50:30 +0000 (0:00:00.085) 0:00:57.302 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "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 13:50:31 +0000 (0:00:00.631) 0:00:57.933 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:50:31 +0000 (0:00:00.085) 0:00:58.018 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "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 13:50:31 +0000 (0:00:00.087) 0:00:58.106 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:50:32 +0000 (0:00:00.310) 0:00:58.417 ************ 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 13:50:32 +0000 (0:00:00.186) 0:00:58.604 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 13:50:32 +0000 (0:00:00.082) 0:00:58.686 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 13:50:32 +0000 (0:00:00.093) 0:00:58.779 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 13:50:32 +0000 (0:00:00.150) 0:00:58.930 ************ 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 13:50:32 +0000 (0:00:00.209) 0:00:59.139 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002996", "end": "2022-05-27 13:50:32.455488", "rc": 0, "start": "2022-05-27 13:50:32.452492" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 13:50:33 +0000 (0:00:00.304) 0:00:59.444 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 13:50:33 +0000 (0:00:00.091) 0:00:59.536 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 13:50:33 +0000 (0:00:00.086) 0:00:59.622 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 13:50:34 +0000 (0:00:01.771) 0:01:01.394 ************ skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 13:50:35 +0000 (0:00:00.114) 0:01:01.508 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 13:50:35 +0000 (0:00:00.085) 0:01:01.594 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.011012", "end": "2022-05-27 13:50:34.913355", "rc": 0, "start": "2022-05-27 13:50:34.902343" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:35 +0000 (0:00:00.326) 0:01:01.921 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 13:50:35 +0000 (0:00:00.090) 0:01:02.011 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 13:50:35 +0000 (0:00:00.089) 0:01:02.100 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 13:50:35 +0000 (0:00:00.161) 0:01:02.262 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=128 changed=12 unreachable=0 failed=0 skipped=57 rescued=0 ignored=0 Friday 27 May 2022 13:50:35 +0000 (0:00:00.032) 0:01:02.295 ************ =============================================================================== Install iproute --------------------------------------------------------- 9.54s Create EPEL 8 ----------------------------------------------------------- 2.80s Install iproute --------------------------------------------------------- 1.81s Install iproute --------------------------------------------------------- 1.80s Install iproute --------------------------------------------------------- 1.77s linux-system-roles.network : Check which packages are installed --------- 1.74s linux-system-roles.network : Check which services are running ----------- 1.73s linux-system-roles.network : Check which services are running ----------- 1.68s 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 packages are installed --------- 1.52s linux-system-roles.network : Check which packages are installed --------- 1.50s linux-system-roles.network : Check which packages are installed --------- 1.48s Gathering Facts --------------------------------------------------------- 1.15s Create veth interface veth0 --------------------------------------------- 0.84s linux-system-roles.network : Configure networking connection profiles --- 0.82s Enable EPEL 8 ----------------------------------------------------------- 0.80s Create veth interface veth0 --------------------------------------------- 0.80s linux-system-roles.network : Enable and start NetworkManager ------------ 0.78s linux-system-roles.network : Configure networking connection profiles --- 0.63s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---