# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_eth_dns_support.yml' with nm as provider] *** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:21:56 +0000 (0:00:00.482) 0:00:00.482 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:05 +0000 (0:00:09.435) 0:00:09.917 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 18:22:06 +0000 (0:00:00.998) 0:00:10.916 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:07 +0000 (0:00:00.861) 0:00:11.778 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 18:22:09 +0000 (0:00:01.705) 0:00:13.483 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 18:22:10 +0000 (0:00:00.855) 0:00:14.339 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 18:22:10 +0000 (0:00:00.603) 0:00:14.943 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 18:22:11 +0000 (0:00:00.782) 0:00:15.725 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 18:22:12 +0000 (0:00:01.169) 0:00:16.894 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:22:15 +0000 (0:00:02.598) 0:00:19.493 ********* ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:22:18 +0000 (0:00:03.315) 0:00:22.809 ********* ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 05 August 2022 18:22:22 +0000 (0:00:03.366) 0:00:26.176 ********* ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:22 +0000 (0:00:00.799) 0:00:26.975 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:24 +0000 (0:00:01.424) 0:00:28.399 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:22:25 +0000 (0:00:01.126) 0:00:29.526 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003925", "end": "2022-08-05 18:22:31.387124", "rc": 0, "start": "2022-08-05 18:22:31.383199" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:22:31 +0000 (0:00:06.345) 0:00:35.871 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:22:35 +0000 (0:00:03.731) 0:00:39.603 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:36 +0000 (0:00:01.236) 0:00:40.840 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 18:22:38 +0000 (0:00:01.924) 0:00:42.765 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 18:22:39 +0000 (0:00:00.902) 0:00:43.667 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:40 +0000 (0:00:00.685) 0:00:44.352 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:22:42 +0000 (0:00:01.944) 0:00:46.297 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:22:43 +0000 (0:00:01.649) 0:00:47.946 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003924", "end": "2022-08-05 18:22:45.500831", "rc": 0, "start": "2022-08-05 18:22:45.496907" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:22:46 +0000 (0:00:02.226) 0:00:50.173 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:22:47 +0000 (0:00:01.567) 0:00:51.740 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 18:22:49 +0000 (0:00:01.781) 0:00:53.522 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 05 August 2022 18:22:58 +0000 (0:00:09.312) 0:01:02.834 ********* 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.062796", "end": "2022-08-05 18:23:00.573787", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-08-05 18:23:00.510991" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.004392", "end": "2022-08-05 18:23:01.878581", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-08-05 18:23:01.874189" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.008754", "end": "2022-08-05 18:23:03.814540", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-08-05 18:23:03.805786" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 18:23:04 +0000 (0:00:05.709) 0:01:08.544 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.175588", "end": "2022-08-05 18:23:07.164538", "rc": 0, "start": "2022-08-05 18:23:06.988950" } TASK [Delete veth interface ethtest0] ****************************************** Friday 05 August 2022 18:23:07 +0000 (0:00:03.192) 0:01:11.736 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 05 August 2022 18:23:08 +0000 (0:00:00.914) 0:01:12.651 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 05 August 2022 18:23:09 +0000 (0:00:00.779) 0:01:13.430 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 05 August 2022 18:23:10 +0000 (0:00:01.522) 0:01:14.973 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 05 August 2022 18:23:11 +0000 (0:00:00.825) 0:01:15.799 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:23:12 +0000 (0:00:01.107) 0:01:16.906 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:23:14 +0000 (0:00:01.138) 0:01:18.045 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 18:23:15 +0000 (0:00:01.321) 0:01:19.367 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659723780.5676022, "block_size": 4096, "blocks": 0, "ctime": 1659723780.5676022, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22436, "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": 1659723780.5676022, "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 05 August 2022 18:23:23 +0000 (0:00:07.862) 0:01:27.230 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:23:24 +0000 (0:00:01.379) 0:01:28.609 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 05 August 2022 18:23:26 +0000 (0:00:01.727) 0:01:30.337 ********* 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 05 August 2022 18:23:29 +0000 (0:00:03.257) 0:01:33.595 ********* 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 05 August 2022 18:23:42 +0000 (0:00:13.077) 0:01:46.672 ********* 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 05 August 2022 18:23:59 +0000 (0:00:16.389) 0:02:03.061 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:24:02 +0000 (0:00:03.856) 0:02:06.918 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:24:04 +0000 (0:00:01.943) 0:02:08.862 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:24:06 +0000 (0:00:01.877) 0:02:10.739 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:24:09 +0000 (0:00:02.304) 0:02:13.044 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:24:11 +0000 (0:00:02.161) 0:02:15.205 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:24:12 +0000 (0:00:01.210) 0:02:16.415 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:24:13 +0000 (0:00:01.353) 0:02:17.786 ********* 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 05 August 2022 18:24:25 +0000 (0:00:12.211) 0:02:29.998 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:24:28 +0000 (0:00:02.637) 0:02:32.635 ********* 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 05 August 2022 18:24:30 +0000 (0:00:01.534) 0:02:34.170 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:24:31 +0000 (0:00:01.248) 0:02:35.418 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "192.0.2.3/24", "198.51.100.3/26", "2001:db8::80/7" ], "auto6": false, "dhcp4": false, "dns": [ "192.0.2.2", "198.51.100.5", "2001:db8::20" ], "dns_options": [ "rotate", "timeout:1" ], "dns_search": [ "example.com", "example.org" ], "gateway4": "192.0.2.1", "gateway6": "2001:db8::1", "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26 } ], "route_append_only": false, "route_metric4": 100, "route_metric6": -1, "rule_append_only": true }, "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, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 18:24:50 +0000 (0:00:18.722) 0:02:54.141 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:24:51 +0000 (0:00:01.669) 0:02:55.810 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:24:53 +0000 (0:00:02.034) 0:02:57.845 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "ethtest0", "ip": { "address": [ "192.0.2.3/24", "198.51.100.3/26", "2001:db8::80/7" ], "auto6": false, "dhcp4": false, "dns": [ "192.0.2.2", "198.51.100.5", "2001:db8::20" ], "dns_options": [ "rotate", "timeout:1" ], "dns_search": [ "example.com", "example.org" ], "gateway4": "192.0.2.1", "gateway6": "2001:db8::1", "route": [ { "gateway": "198.51.100.1", "metric": 2, "network": "198.51.100.128", "prefix": 26 }, { "gateway": "198.51.100.6", "metric": 4, "network": "198.51.100.64", "prefix": 26 } ], "route_append_only": false, "route_metric4": 100, "route_metric6": -1, "rule_append_only": true }, "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, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, d2c71c08-faad-4d20-a2c2-26d75ca0ba9f (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 18:24:56 +0000 (0:00:02.273) 0:03:00.118 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:24:58 +0000 (0:00:02.210) 0:03:02.329 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Verify nmcli connection DNS entry for IPv4] ****************************** Friday 05 August 2022 18:25:04 +0000 (0:00:05.692) 0:03:08.021 ********* ok: [sut] => { "changed": false, "cmd": "set -euxo pipefail\nnmcli connection show ethtest0 | grep ipv4.dns\n", "delta": "0:00:00.026591", "end": "2022-08-05 18:25:05.672294", "rc": 0, "start": "2022-08-05 18:25:05.645703" } STDOUT: ipv4.dns: 192.0.2.2,198.51.100.5 ipv4.dns-search: example.com,example.org ipv4.dns-options: rotate,timeout:1 ipv4.dns-priority: 0 STDERR: + nmcli connection show ethtest0 + grep ipv4.dns TASK [Verify nmcli connection DNS entry for IPv6] ****************************** Friday 05 August 2022 18:25:06 +0000 (0:00:02.273) 0:03:10.295 ********* ok: [sut] => { "changed": false, "cmd": "set -euxo pipefail\nnmcli connection show ethtest0 | grep ipv6.dns\n", "delta": "0:00:00.026247", "end": "2022-08-05 18:25:07.408886", "rc": 0, "start": "2022-08-05 18:25:07.382639" } STDOUT: ipv6.dns: 2001:db8::20 ipv6.dns-search: example.com,example.org ipv6.dns-options: rotate,timeout:1 ipv6.dns-priority: 0 STDERR: + nmcli connection show ethtest0 + grep ipv6.dns TASK [Assert that DNS addresses are configured correctly] ********************** Friday 05 August 2022 18:25:07 +0000 (0:00:01.224) 0:03:11.519 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that DNS search domains are configured correctly] ***************** Friday 05 August 2022 18:25:07 +0000 (0:00:00.190) 0:03:11.709 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that DNS options are configured correctly] ************************ Friday 05 August 2022 18:25:07 +0000 (0:00:00.172) 0:03:11.882 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:25:08 +0000 (0:00:00.258) 0:03:12.141 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:25:09 +0000 (0:00:01.323) 0:03:13.464 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 05 August 2022 18:25:09 +0000 (0:00:00.128) 0:03:13.593 ********* 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 05 August 2022 18:25:10 +0000 (0:00:00.778) 0:03:14.371 ********* 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 05 August 2022 18:25:12 +0000 (0:00:01.820) 0:03:16.192 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:25:13 +0000 (0:00:00.929) 0:03:17.122 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:25:13 +0000 (0:00:00.140) 0:03:17.262 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:25:13 +0000 (0:00:00.118) 0:03:17.381 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:25:13 +0000 (0:00:00.070) 0:03:17.451 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:25:13 +0000 (0:00:00.213) 0:03:17.665 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:25:13 +0000 (0:00:00.128) 0:03:17.794 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:25:13 +0000 (0:00:00.109) 0:03:17.904 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:25:14 +0000 (0:00:00.216) 0:03:18.121 ********* 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 05 August 2022 18:25:14 +0000 (0:00:00.595) 0:03:18.716 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:25:14 +0000 (0:00:00.086) 0:03:18.803 ********* 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 05 August 2022 18:25:14 +0000 (0:00:00.063) 0:03:18.867 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:25:14 +0000 (0:00:00.061) 0:03:18.928 ********* 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 : Configure networking state] ***************** Friday 05 August 2022 18:25:15 +0000 (0:00:00.605) 0:03:19.534 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:25:15 +0000 (0:00:00.062) 0:03:19.596 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:25:15 +0000 (0:00:00.070) 0:03:19.667 ********* 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 : Show debug messages for the network_state] *** Friday 05 August 2022 18:25:15 +0000 (0:00:00.102) 0:03:19.770 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:25:15 +0000 (0:00:00.071) 0:03:19.841 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:25:16 +0000 (0:00:00.472) 0:03:20.313 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:25:17 +0000 (0:00:00.947) 0:03:21.261 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 18:25:17 +0000 (0:00:00.102) 0:03:21.363 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.010725", "end": "2022-08-05 18:25:17.653010", "rc": 0, "start": "2022-08-05 18:25:17.642285" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:25:17 +0000 (0:00:00.440) 0:03:21.804 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:25:18 +0000 (0:00:00.800) 0:03:22.604 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 05 August 2022 18:25:18 +0000 (0:00:00.122) 0:03:22.727 ********* 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 05 August 2022 18:25:19 +0000 (0:00:00.564) 0:03:23.292 ********* 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 05 August 2022 18:25:21 +0000 (0:00:01.828) 0:03:25.120 ********* 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 05 August 2022 18:25:21 +0000 (0:00:00.806) 0:03:25.926 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:25:22 +0000 (0:00:00.074) 0:03:26.001 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:25:22 +0000 (0:00:00.062) 0:03:26.063 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:25:22 +0000 (0:00:00.060) 0:03:26.124 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:25:22 +0000 (0:00:00.119) 0:03:26.244 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:25:22 +0000 (0:00:00.092) 0:03:26.337 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:25:22 +0000 (0:00:00.086) 0:03:26.423 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:25:22 +0000 (0:00:00.091) 0:03:26.515 ********* 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 05 August 2022 18:25:23 +0000 (0:00:00.617) 0:03:27.132 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:25:23 +0000 (0:00:00.155) 0:03:27.288 ********* 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 05 August 2022 18:25:23 +0000 (0:00:00.094) 0:03:27.383 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:25:23 +0000 (0:00:00.053) 0:03:27.436 ********* 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 : Configure networking state] ***************** Friday 05 August 2022 18:25:23 +0000 (0:00:00.535) 0:03:27.971 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:25:24 +0000 (0:00:00.071) 0:03:28.043 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:25:24 +0000 (0:00:00.074) 0:03:28.117 ********* 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 : Show debug messages for the network_state] *** Friday 05 August 2022 18:25:24 +0000 (0:00:00.070) 0:03:28.187 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:25:24 +0000 (0:00:00.099) 0:03:28.287 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert profile and device are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:25:24 +0000 (0:00:00.370) 0:03:28.657 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:25:25 +0000 (0:00:00.772) 0:03:29.430 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:25:25 +0000 (0:00:00.086) 0:03:29.517 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 18:25:25 +0000 (0:00:00.131) 0:03:29.649 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 18:25:25 +0000 (0:00:00.074) 0:03:29.723 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.285) 0:03:30.008 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.053) 0:03:30.061 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.021329", "end": "2022-08-05 18:25:26.322311", "rc": 1, "start": "2022-08-05 18:25:26.300982" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 18:25:26 +0000 (0:00:00.302) 0:03:30.364 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.058) 0:03:30.422 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.055) 0:03:30.478 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.074) 0:03:30.553 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.087) 0:03:30.640 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.085) 0:03:30.726 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 18:25:26 +0000 (0:00:00.086) 0:03:30.812 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 05 August 2022 18:25:27 +0000 (0:00:00.279) 0:03:31.092 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=76 changed=5 unreachable=0 failed=0 skipped=49 rescued=0 ignored=1 Friday 05 August 2022 18:25:27 +0000 (0:00:00.223) 0:03:31.315 ********* =============================================================================== linux-system-roles.network : Configure networking connection profiles -- 18.72s linux-system-roles.network : Check which packages are installed -------- 16.39s linux-system-roles.network : Check which services are running ---------- 13.08s linux-system-roles.network : Enable and start NetworkManager ----------- 12.21s Gathering Facts --------------------------------------------------------- 9.44s Install iproute --------------------------------------------------------- 9.31s Get stat for interface ethtest0 ----------------------------------------- 7.86s Gather current interface info ------------------------------------------- 6.35s Create veth interface ethtest0 ------------------------------------------ 5.71s linux-system-roles.network : Re-test connectivity ----------------------- 5.69s linux-system-roles.network : Print network provider --------------------- 3.86s Set current_interfaces -------------------------------------------------- 3.73s Gathering Facts --------------------------------------------------------- 3.37s Gathering Facts --------------------------------------------------------- 3.32s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.26s Set up veth as managed by NetworkManager -------------------------------- 3.19s linux-system-roles.network : Enable and start wpa_supplicant ------------ 2.64s Set network provider to 'nm' -------------------------------------------- 2.60s linux-system-roles.network : Install packages --------------------------- 2.30s linux-system-roles.network : Show debug messages for the network_connections --- 2.27s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---