# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_route_table.yml' with nm as provider] ****** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.642567", "end": "2022-05-25 22:37:38.192117", "rc": 0, "start": "2022-05-25 22:37:35.549550" } 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:01:47 ago on Wed May 25 22:35:49 2022. epel-release-latest-8.noarch.rpm 778 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] *********************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.858762", "end": "2022-05-25 22:37:42.027317", "rc": 0, "start": "2022-05-25 22:37:41.168555" } 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] *********************************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003121", "end": "2022-05-25 22:37:56.044725", "rc": 0, "start": "2022-05-25 22:37:56.041604" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003211", "end": "2022-05-25 22:38:05.577340", "rc": 0, "start": "2022-05-25 22:38:05.574129" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** 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.036225", "end": "2022-05-25 22:38:22.372406", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-05-25 22:38:22.336181" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.003650", "end": "2022-05-25 22:38:24.168299", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-05-25 22:38:24.164649" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.004760", "end": "2022-05-25 22:38:25.116977", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-05-25 22:38:25.112217" } TASK [Set up veth as managed by NetworkManager] ******************************** changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.056323", "end": "2022-05-25 22:38:27.811187", "rc": 0, "start": "2022-05-25 22:38:27.754864" } TASK [Delete veth interface ethtest0] ****************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** ok: [sut] => { "changed": false, "stat": { "atime": 1653518302.3707204, "block_size": 4096, "blocks": 0, "ctime": 1653518302.3707204, "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": 1653518302.3707204, "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] ******************************* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/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] *** 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] *********** 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] ********* 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] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ 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] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* 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] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": 30400 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": 30200 } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the route table 30200] ******************************* ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30200" ], "delta": "0:00:00.003831", "end": "2022-05-25 22:39:52.886479", "rc": 0, "start": "2022-05-25 22:39:52.882648" } STDOUT: 198.51.100.64/26 via 198.51.100.6 dev ethtest0 proto static metric 4 TASK [Get the routes from the route table 30400] ******************************* ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "30400" ], "delta": "0:00:00.003349", "end": "2022-05-25 22:39:55.270123", "rc": 0, "start": "2022-05-25 22:39:55.266774" } STDOUT: 198.51.100.128/26 via 198.51.100.1 dev ethtest0 proto static metric 2 TASK [Assert that the route table 30200 contains the specified route] ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the route table 30400 contains the specified route] ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Create a dedicated test file in `/etc/iproute2/rt_tables.d/` and add a new routing table] *** changed: [sut] => { "backup": "", "changed": true } MSG: line added TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/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] *** 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] *********** 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] ********* 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] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ 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] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* 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] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": "custom" }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": "custom" } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (is-modified) [005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied TASK [linux-system-roles.network : Show stderr messages] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } TASK [linux-system-roles.network : Show debug messages] ************************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "198.51.100.3/26" ], "dhcp4": false, "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26, "table": "custom" }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26, "table": "custom" } ] }, "name": "ethtest0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (is-modified)\n[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': update connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, ad34554e-e8a8-41fb-bf2d-a176ed95e517 (is-modified)", "[005] #0, state:up persistent_state:present, 'ethtest0': connection reapplied" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the routes from the named route table 'custom'] ********************** ok: [sut] => { "changed": false, "cmd": [ "ip", "route", "show", "table", "custom" ], "delta": "0:00:00.003307", "end": "2022-05-25 22:40:14.384905", "rc": 0, "start": "2022-05-25 22:40:14.381598" } STDOUT: 198.51.100.64/26 via 198.51.100.6 dev ethtest0 proto static metric 4 198.51.100.128/26 via 198.51.100.1 dev ethtest0 proto static metric 2 TASK [Assert that the named route table 'custom' contains the specified route] *** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove the dedicated test file in `/etc/iproute2/rt_tables.d/`] ********** changed: [sut] => { "changed": true, "path": "/etc/iproute2/rt_tables.d/table.conf", "state": "absent" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/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] *** 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] *********** 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] ********* 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] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ 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] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* 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] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** 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] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ 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] *********************** ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.016763", "end": "2022-05-25 22:40:24.422483", "rc": 0, "start": "2022-05-25 22:40:24.405720" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/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] *** 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] *********** 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] ********* 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] ********************* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ 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] ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* 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] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** 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] *********************** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ 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] *********************** ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* ok: [sut] TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.021367", "end": "2022-05-25 22:40:32.166884", "rc": 1, "start": "2022-05-25 22:40:32.145517" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** included: /WORKDIR/dist-git-network-bond_fix-k5AHLb/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=91 changed=10 unreachable=0 failed=0 skipped=34 rescued=0 ignored=1 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---