# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_routing_rules.yml' with nm as provider] **** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:58:56 +0000 (0:00:00.037) 0:00:00.037 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:58:57 +0000 (0:00:00.865) 0:00:00.903 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 17:58:57 +0000 (0:00:00.033) 0:00:00.936 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:58:57 +0000 (0:00:00.049) 0:00:00.986 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 17:58:57 +0000 (0:00:00.054) 0:00:01.040 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.372493", "end": "2022-05-27 17:58:59.853160", "rc": 0, "start": "2022-05-27 17:58:57.480667" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:13 ago on Fri May 27 17:58:45 2022. epel-release-latest-8.noarch.rpm 712 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 17:59:00 +0000 (0:00:02.729) 0:00:03.769 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 17:59:00 +0000 (0:00:00.034) 0:00:03.804 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.543083", "end": "2022-05-27 17:59:00.684961", "rc": 0, "start": "2022-05-27 17:59:00.141878" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 17:59:01 +0000 (0:00:00.795) 0:00:04.599 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 17:59:01 +0000 (0:00:00.032) 0:00:04.631 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:01 +0000 (0:00:00.030) 0:00:04.661 ************ ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:01 +0000 (0:00:00.584) 0:00:05.246 ************ ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 27 May 2022 17:59:02 +0000 (0:00:00.580) 0:00:05.826 ************ ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:02 +0000 (0:00:00.035) 0:00:05.861 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:59:02 +0000 (0:00:00.053) 0:00:05.915 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:59:02 +0000 (0:00:00.043) 0:00:05.959 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003584", "end": "2022-05-27 17:59:02.294831", "rc": 0, "start": "2022-05-27 17:59:02.291247" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:59:02 +0000 (0:00:00.249) 0:00:06.209 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:59:02 +0000 (0:00:00.035) 0:00:06.245 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:02 +0000 (0:00:00.045) 0:00:06.290 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 27 May 2022 17:59:02 +0000 (0:00:00.064) 0:00:06.354 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 17:59:03 +0000 (0:00:00.032) 0:00:06.387 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 17:59:03 +0000 (0:00:00.033) 0:00:06.420 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:59:03 +0000 (0:00:00.047) 0:00:06.468 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:59:03 +0000 (0:00:00.043) 0:00:06.511 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003225", "end": "2022-05-27 17:59:02.848833", "rc": 0, "start": "2022-05-27 17:59:02.845608" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:59:03 +0000 (0:00:00.251) 0:00:06.763 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:59:03 +0000 (0:00:00.037) 0:00:06.800 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 17:59:03 +0000 (0:00:00.035) 0:00:06.835 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 27 May 2022 17:59:13 +0000 (0:00:09.969) 0:00:16.805 ************ 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.054622", "end": "2022-05-27 17:59:13.207574", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-05-27 17:59:13.152952" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.004254", "end": "2022-05-27 17:59:13.461840", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-05-27 17:59:13.457586" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.005483", "end": "2022-05-27 17:59:13.695226", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-05-27 17:59:13.689743" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.808) 0:00:17.614 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.081888", "end": "2022-05-27 17:59:14.036515", "rc": 0, "start": "2022-05-27 17:59:13.954627" } TASK [Delete veth interface ethtest0] ****************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.339) 0:00:17.954 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.037) 0:00:17.991 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.045) 0:00:18.037 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 27 May 2022 17:59:14 +0000 (0:00:00.038) 0:00:18.075 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 27 May 2022 17:59:14 +0000 (0:00:00.038) 0:00:18.113 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.032) 0:00:18.146 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.056) 0:00:18.203 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 27 May 2022 17:59:14 +0000 (0:00:00.043) 0:00:18.246 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653674353.201784, "block_size": 4096, "blocks": 0, "ctime": 1653674353.201784, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21346, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/ethtest0", "lnk_target": "../../devices/virtual/net/ethtest0", "mode": "0777", "mtime": 1653674353.201784, "nlink": 1, "path": "/sys/class/net/ethtest0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface ethtest0 is present] ******************************* Friday 27 May 2022 17:59:15 +0000 (0:00:00.432) 0:00:18.679 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:59:15 +0000 (0:00:00.043) 0:00:18.723 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 17:59:15 +0000 (0:00:00.168) 0:00:18.891 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 17:59:15 +0000 (0:00:00.405) 0:00:19.297 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 17:59:17 +0000 (0:00:01.848) 0:00:21.146 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 17:59:19 +0000 (0:00:01.801) 0:00:22.947 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:59:19 +0000 (0:00:00.089) 0:00:23.037 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:59:19 +0000 (0:00:00.149) 0:00:23.187 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:59:19 +0000 (0:00:00.095) 0:00:23.282 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 17:59:20 +0000 (0:00:00.778) 0:00:24.061 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:59:20 +0000 (0:00:00.101) 0:00:24.162 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 17:59:20 +0000 (0:00:00.082) 0:00:24.244 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:59:21 +0000 (0:00:00.136) 0:00:24.380 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26", "2001:db8::2/32" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 }, { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "2001:db8::1", "metric": 2, "network": "2001:db8::4", "prefix": 32, "table": 30600 } ], "routing_rule": [ { "from": "198.51.100.58/26", "priority": 30200, "table": 30200 }, { "family": "ipv4", "fwmark": 1, "fwmask": 1, "priority": 30201, "table": 30200 }, { "family": "ipv4", "ipproto": 6, "priority": 30202, "table": 30200 }, { "family": "ipv4", "priority": 30203, "sport": "128 - 256", "table": 30200 }, { "family": "ipv4", "priority": 30204, "table": 30200, "tos": 8 }, { "priority": 30400, "table": 30400, "to": "198.51.100.128/26" }, { "family": "ipv4", "iif": "iiftest", "priority": 30401, "table": 30400 }, { "family": "ipv4", "oif": "oiftest", "priority": 30402, "table": 30400 }, { "priority": 30600, "table": 30600, "to": "2001:db8::4/32" }, { "dport": "128 - 256", "family": "ipv6", "invert": true, "priority": 30601, "table": 30600 } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4 [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:59:21 +0000 (0:00:00.841) 0:00:25.222 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:59:21 +0000 (0:00:00.088) 0:00:25.311 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26", "2001:db8::2/32" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 }, { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "2001:db8::1", "metric": 2, "network": "2001:db8::4", "prefix": 32, "table": 30600 } ], "routing_rule": [ { "from": "198.51.100.58/26", "priority": 30200, "table": 30200 }, { "family": "ipv4", "fwmark": 1, "fwmask": 1, "priority": 30201, "table": 30200 }, { "family": "ipv4", "ipproto": 6, "priority": 30202, "table": 30200 }, { "family": "ipv4", "priority": 30203, "sport": "128 - 256", "table": 30200 }, { "family": "ipv4", "priority": 30204, "table": 30200, "tos": 8 }, { "priority": 30400, "table": 30400, "to": "198.51.100.128/26" }, { "family": "ipv4", "iif": "iiftest", "priority": 30401, "table": 30400 }, { "family": "ipv4", "oif": "oiftest", "priority": 30402, "table": 30400 }, { "priority": 30600, "table": 30600, "to": "2001:db8::4/32" }, { "dport": "128 - 256", "family": "ipv6", "invert": true, "priority": 30601, "table": 30600 } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 15d36248-fe8a-4a77-8ea1-9eac21c380e4 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:59:22 +0000 (0:00:00.097) 0:00:25.408 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routing rule for looking up the table 30200] ********************* Friday 27 May 2022 17:59:22 +0000 (0:00:00.394) 0:00:25.803 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "rule", "list", "table", "30200" ], "delta": "0:00:00.004993", "end": "2022-05-27 17:59:22.142747", "rc": 0, "start": "2022-05-27 17:59:22.137754" } STDOUT: 30200: from 198.51.100.58/26 lookup 30200 30201: from all fwmark 0x1/0x1 lookup 30200 30202: from all ipproto tcp lookup 30200 30203: from all sport 128-256 lookup 30200 30204: from all tos throughput lookup 30200 TASK [Get the routing rule for looking up the table 30400] ********************* Friday 27 May 2022 17:59:22 +0000 (0:00:00.298) 0:00:26.101 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "rule", "list", "table", "30400" ], "delta": "0:00:00.003533", "end": "2022-05-27 17:59:22.437674", "rc": 0, "start": "2022-05-27 17:59:22.434141" } STDOUT: 30400: from all to 198.51.100.128/26 lookup 30400 30401: from all iif iiftest [detached] lookup 30400 30402: from all oif oiftest [detached] lookup 30400 TASK [Get the routing rule for looking up the table 30600] ********************* Friday 27 May 2022 17:59:23 +0000 (0:00:00.306) 0:00:26.408 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "rule", "list", "table", "30600" ], "delta": "0:00:00.003566", "end": "2022-05-27 17:59:22.750054", "rc": 0, "start": "2022-05-27 17:59:22.746488" } STDOUT: 30600: from all to 2001:db8::4/32 lookup 30600 30601: not from all dport 128-256 lookup 30600 TASK [Get the IPv4 routing rule for the connection "ethtest0"] ***************** Friday 27 May 2022 17:59:23 +0000 (0:00:00.311) 0:00:26.719 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv4.routing-rules", "c", "show", "ethtest0" ], "delta": "0:00:00.021853", "end": "2022-05-27 17:59:23.073885", "rc": 0, "start": "2022-05-27 17:59:23.052032" } STDOUT: ipv4.routing-rules: priority 30200 from 198.51.100.58/26 table 30200, priority 30201 from 0.0.0.0/0 fwmark 0x1/0x1 table 30200, priority 30202 from 0.0.0.0/0 ipproto 6 table 30200, priority 30203 from 0.0.0.0/0 sport 128-256 table 30200, priority 30204 from 0.0.0.0/0 tos 0x08 table 30200, priority 30400 to 198.51.100.128/26 table 30400, priority 30401 from 0.0.0.0/0 iif iiftest table 30400, priority 30402 from 0.0.0.0/0 oif oiftest table 30400 TASK [Get the IPv6 routing rule for the connection "ethtest0"] ***************** Friday 27 May 2022 17:59:23 +0000 (0:00:00.319) 0:00:27.038 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv6.routing-rules", "c", "show", "ethtest0" ], "delta": "0:00:00.020978", "end": "2022-05-27 17:59:23.394714", "rc": 0, "start": "2022-05-27 17:59:23.373736" } STDOUT: ipv6.routing-rules: priority 30600 to 2001:db8::4/32 table 30600, priority 30601 not from ::/0 dport 128-256 table 30600 TASK [Assert that the routing rule with table lookup 30200 matches the specified rule] *** Friday 27 May 2022 17:59:23 +0000 (0:00:00.316) 0:00:27.355 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the routing rule with table lookup 30400 matches the specified rule] *** Friday 27 May 2022 17:59:24 +0000 (0:00:00.162) 0:00:27.518 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the routing rule with table lookup 30600 matches the specified rule] *** Friday 27 May 2022 17:59:24 +0000 (0:00:00.092) 0:00:27.611 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the IPv4 routing rule in the connection "ethtest0" matches the specified rule] *** Friday 27 May 2022 17:59:24 +0000 (0:00:00.100) 0:00:27.711 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the IPv6 routing rule in the connection "ethtest0" matches the specified rule] *** Friday 27 May 2022 17:59:24 +0000 (0:00:00.111) 0:00:27.822 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:24 +0000 (0:00:00.110) 0:00:27.932 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:59:25 +0000 (0:00:00.656) 0:00:28.589 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 17:59:25 +0000 (0:00:00.147) 0:00:28.737 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 17:59:25 +0000 (0:00:00.486) 0:00:29.223 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 17:59:27 +0000 (0:00:01.685) 0:00:30.909 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 17:59:29 +0000 (0:00:01.488) 0:00:32.398 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:59:29 +0000 (0:00:00.083) 0:00:32.481 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:59:29 +0000 (0:00:00.150) 0:00:32.632 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:59:29 +0000 (0:00:00.100) 0:00:32.732 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 17:59:29 +0000 (0:00:00.506) 0:00:33.238 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:59:29 +0000 (0:00:00.097) 0:00:33.336 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 17:59:30 +0000 (0:00:00.084) 0:00:33.421 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:59:30 +0000 (0:00:00.135) 0:00:33.556 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:59:30 +0000 (0:00:00.588) 0:00:34.145 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:59:30 +0000 (0:00:00.090) 0:00:34.235 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:59:30 +0000 (0:00:00.101) 0:00:34.337 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:31 +0000 (0:00:00.297) 0:00:34.635 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:31 +0000 (0:00:00.667) 0:00:35.303 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 27 May 2022 17:59:32 +0000 (0:00:00.139) 0:00:35.443 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.014961", "end": "2022-05-27 17:59:31.793189", "rc": 0, "start": "2022-05-27 17:59:31.778228" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:32 +0000 (0:00:00.330) 0:00:35.773 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:59:33 +0000 (0:00:00.677) 0:00:36.450 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 17:59:33 +0000 (0:00:00.160) 0:00:36.610 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 17:59:33 +0000 (0:00:00.489) 0:00:37.100 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 17:59:35 +0000 (0:00:01.698) 0:00:38.799 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 17:59:36 +0000 (0:00:01.530) 0:00:40.330 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:59:37 +0000 (0:00:00.083) 0:00:40.413 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:59:37 +0000 (0:00:00.141) 0:00:40.554 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:59:37 +0000 (0:00:00.092) 0:00:40.646 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 17:59:37 +0000 (0:00:00.500) 0:00:41.147 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:59:37 +0000 (0:00:00.091) 0:00:41.239 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 17:59:37 +0000 (0:00:00.105) 0:00:41.345 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:59:38 +0000 (0:00:00.102) 0:00:41.447 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:59:38 +0000 (0:00:00.541) 0:00:41.989 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:59:38 +0000 (0:00:00.084) 0:00:42.074 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:59:38 +0000 (0:00:00.087) 0:00:42.161 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:59:39 +0000 (0:00:00.299) 0:00:42.460 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:39 +0000 (0:00:00.614) 0:00:43.075 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:59:39 +0000 (0:00:00.144) 0:00:43.219 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 17:59:40 +0000 (0:00:00.179) 0:00:43.399 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 17:59:40 +0000 (0:00:00.093) 0:00:43.492 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 17:59:40 +0000 (0:00:00.309) 0:00:43.802 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 17:59:40 +0000 (0:00:00.092) 0:00:43.895 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.022356", "end": "2022-05-27 17:59:40.253875", "rc": 1, "start": "2022-05-27 17:59:40.231519" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 17:59:40 +0000 (0:00:00.336) 0:00:44.231 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 27 May 2022 17:59:40 +0000 (0:00:00.086) 0:00:44.317 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.084) 0:00:44.401 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.085) 0:00:44.486 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.094) 0:00:44.581 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.206) 0:00:44.787 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.164) 0:00:44.951 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 27 May 2022 17:59:41 +0000 (0:00:00.313) 0:00:45.265 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=83 changed=7 unreachable=0 failed=0 skipped=29 rescued=0 ignored=1 Friday 27 May 2022 17:59:41 +0000 (0:00:00.031) 0:00:45.297 ************ =============================================================================== Install iproute --------------------------------------------------------- 9.97s Create EPEL 8 ----------------------------------------------------------- 2.73s linux-system-roles.network : Check which services are running ----------- 1.85s linux-system-roles.network : Check which packages are installed --------- 1.80s linux-system-roles.network : Check which services are running ----------- 1.70s linux-system-roles.network : Check which services are running ----------- 1.69s linux-system-roles.network : Check which packages are installed --------- 1.53s linux-system-roles.network : Check which packages are installed --------- 1.49s Gathering Facts --------------------------------------------------------- 0.87s linux-system-roles.network : Configure networking connection profiles --- 0.84s Create veth interface ethtest0 ------------------------------------------ 0.81s Enable EPEL 8 ----------------------------------------------------------- 0.80s linux-system-roles.network : Enable and start NetworkManager ------------ 0.78s Gathering Facts --------------------------------------------------------- 0.68s Gathering Facts --------------------------------------------------------- 0.67s Gathering Facts --------------------------------------------------------- 0.66s Gathering Facts --------------------------------------------------------- 0.61s linux-system-roles.network : Configure networking connection profiles --- 0.59s Gathering Facts --------------------------------------------------------- 0.58s Gathering Facts --------------------------------------------------------- 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 ---^---^---^---^---^---