# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ipv6_dns_search.yml' with nm as provider] *** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:41:55 +0000 (0:00:00.501) 0:00:00.501 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:06 +0000 (0:00:11.467) 0:00:11.968 ********* 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 19:42:07 +0000 (0:00:00.775) 0:00:12.743 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:07 +0000 (0:00:00.628) 0:00:13.372 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 19:42:10 +0000 (0:00:02.968) 0:00:16.340 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 19:42:11 +0000 (0:00:00.972) 0:00:17.313 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 19:42:12 +0000 (0:00:00.457) 0:00:17.771 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 19:42:13 +0000 (0:00:00.977) 0:00:18.748 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 19:42:13 +0000 (0:00:00.668) 0:00:19.416 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:42:16 +0000 (0:00:02.771) 0:00:22.188 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:42:20 +0000 (0:00:03.896) 0:00:26.085 ********* 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 19:42:21 +0000 (0:00:01.131) 0:00:27.216 ********* 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 19:42:25 +0000 (0:00:03.949) 0:00:31.165 ********* 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 19:42:33 +0000 (0:00:07.627) 0:00:38.793 ********* 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 19:42:46 +0000 (0:00:13.281) 0:00:52.075 ********* 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 19:42:47 +0000 (0:00:01.221) 0:00:53.296 ********* 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 19:42:48 +0000 (0:00:00.638) 0:00:53.935 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:42:49 +0000 (0:00:01.400) 0:00:55.336 ********* 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 19:42:54 +0000 (0:00:04.640) 0:00:59.976 ********* 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 19:42:55 +0000 (0:00:00.660) 0:01:00.636 ********* 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 19:42:55 +0000 (0:00:00.779) 0:01:01.416 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:42:57 +0000 (0:00:01.700) 0:01:03.116 ********* 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 19:43:08 +0000 (0:00:11.212) 0:01:14.329 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:43:10 +0000 (0:00:01.172) 0:01:15.501 ********* 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 19:43:10 +0000 (0:00:00.963) 0:01:16.465 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:43:11 +0000 (0:00:00.946) 0:01:17.412 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.1/24" ], "auto6": false, "dhcp4": false, "dns": "203.0.113.113", "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'br-example': add connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 [004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:43:18 +0000 (0:00:06.162) 0:01:23.574 ********* 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 19:43:19 +0000 (0:00:00.974) 0:01:24.549 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': add connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:43:21 +0000 (0:00:01.971) 0:01:26.521 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.1/24" ], "auto6": false, "dhcp4": false, "dns": "203.0.113.113", "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'br-example': add connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1\n[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': add connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:43:22 +0000 (0:00:01.797) 0:01:28.319 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:43:23 +0000 (0:00:01.092) 0:01:29.411 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get DNS search entry for IPv4] ******************************************* Friday 05 August 2022 19:43:31 +0000 (0:00:07.930) 0:01:37.342 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv4.dns-search", "connection", "show", "br-example" ], "delta": "0:00:00.139092", "end": "2022-08-05 19:43:38.473529", "rc": 0, "start": "2022-08-05 19:43:38.334437" } STDOUT: ipv4.dns-search: example.com TASK [Get DNS search entry for IPv6] ******************************************* Friday 05 August 2022 19:43:39 +0000 (0:00:07.288) 0:01:44.631 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv6.dns-search", "connection", "show", "br-example" ], "delta": "0:00:00.018374", "end": "2022-08-05 19:43:41.128363", "rc": 0, "start": "2022-08-05 19:43:41.109989" } STDOUT: ipv6.dns-search: -- TASK [Assert that IPv4 DNS search entry is configured correctly] *************** Friday 05 August 2022 19:43:42 +0000 (0:00:03.735) 0:01:48.366 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that DNS search setting for IPv6 is not configured when IPv6 address is not configured] *** Friday 05 August 2022 19:43:46 +0000 (0:00:04.000) 0:01:52.367 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:43:48 +0000 (0:00:01.204) 0:01:53.572 ********* 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 19:43:50 +0000 (0:00:02.540) 0:01:56.112 ********* 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 19:43:54 +0000 (0:00:04.060) 0:02:00.173 ********* 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 19:43:58 +0000 (0:00:04.035) 0:02:04.209 ********* 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 19:44:05 +0000 (0:00:06.345) 0:02:10.554 ********* 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 19:44:06 +0000 (0:00:00.899) 0:02:11.454 ********* 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 19:44:07 +0000 (0:00:01.277) 0:02:12.731 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:44:08 +0000 (0:00:01.085) 0:02:13.817 ********* 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 19:44:10 +0000 (0:00:02.106) 0:02:15.944 ********* 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 19:44:11 +0000 (0:00:01.460) 0:02:17.404 ********* 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 19:44:13 +0000 (0:00:01.333) 0:02:18.737 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:44:14 +0000 (0:00:01.455) 0:02:20.193 ********* 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 19:44:18 +0000 (0:00:04.242) 0:02:24.436 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:44:20 +0000 (0:00:01.486) 0:02:25.922 ********* 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 19:44:21 +0000 (0:00:00.692) 0:02:26.636 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:44:22 +0000 (0:00:01.248) 0:02:27.884 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.1/24", "2001:db8::2/32" ], "auto6": false, "dhcp4": false, "dns": [ "203.0.113.113", "2001:db8::20" ], "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 [004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified) [005] #0, state:up persistent_state:present, 'br-example': connection reapplied TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:44:25 +0000 (0:00:03.043) 0:02:30.928 ********* 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 19:44:26 +0000 (0:00:00.733) 0:02:31.661 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)", "[005] #0, state:up persistent_state:present, 'br-example': connection reapplied" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:44:27 +0000 (0:00:01.485) 0:02:33.146 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.1/24", "2001:db8::2/32" ], "auto6": false, "dhcp4": false, "dns": [ "203.0.113.113", "2001:db8::20" ], "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1\n[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)\n[005] #0, state:up persistent_state:present, 'br-example': connection reapplied\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)", "[005] #0, state:up persistent_state:present, 'br-example': connection reapplied" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:44:29 +0000 (0:00:01.939) 0:02:35.086 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:44:30 +0000 (0:00:01.165) 0:02:36.252 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get DNS search entry for IPv6] ******************************************* Friday 05 August 2022 19:44:33 +0000 (0:00:02.245) 0:02:38.497 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv6.dns-search", "connection", "show", "br-example" ], "delta": "0:00:00.018588", "end": "2022-08-05 19:44:34.306078", "rc": 0, "start": "2022-08-05 19:44:34.287490" } STDOUT: ipv6.dns-search: example.com TASK [Assert that DNS search setting for IPv6 is configured when the static IPv6 address is configured] *** Friday 05 August 2022 19:44:35 +0000 (0:00:02.326) 0:02:40.824 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:44:37 +0000 (0:00:02.281) 0:02:43.105 ********* 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 19:44:40 +0000 (0:00:03.143) 0:02:46.248 ********* 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 19:44:45 +0000 (0:00:04.307) 0:02:50.556 ********* 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 19:44:49 +0000 (0:00:04.659) 0:02:55.215 ********* 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 19:44:54 +0000 (0:00:05.087) 0:03:00.303 ********* 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 19:44:57 +0000 (0:00:02.404) 0:03:02.707 ********* 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 19:44:59 +0000 (0:00:02.674) 0:03:05.382 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:45:02 +0000 (0:00:02.219) 0:03:07.601 ********* 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 19:45:06 +0000 (0:00:04.775) 0:03:12.377 ********* 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 19:45:07 +0000 (0:00:00.530) 0:03:12.908 ********* 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 19:45:07 +0000 (0:00:00.218) 0:03:13.126 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:45:08 +0000 (0:00:00.443) 0:03:13.569 ********* 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 19:45:09 +0000 (0:00:01.241) 0:03:14.811 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:45:10 +0000 (0:00:00.814) 0:03:15.626 ********* 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 19:45:10 +0000 (0:00:00.262) 0:03:15.888 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:45:10 +0000 (0:00:00.191) 0:03:16.079 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32" ], "auto6": false, "dhcp4": false, "dns": [ "2001:db8::20" ], "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 [004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified) [005] #0, state:up persistent_state:present, 'br-example': connection reapplied TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:45:11 +0000 (0:00:00.710) 0:03:16.789 ********* 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 19:45:11 +0000 (0:00:00.188) 0:03:16.978 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)", "[005] #0, state:up persistent_state:present, 'br-example': connection reapplied" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:45:11 +0000 (0:00:00.267) 0:03:17.246 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32" ], "auto6": false, "dhcp4": false, "dns": [ "2001:db8::20" ], "dns_search": "example.com" }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1\n[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)\n[005] #0, state:up persistent_state:present, 'br-example': connection reapplied\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'br-example': update connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1", "[004] #0, state:up persistent_state:present, 'br-example': up connection br-example, ee9068f4-b75b-4c55-86ca-d0572c069bc1 (is-modified)", "[005] #0, state:up persistent_state:present, 'br-example': connection reapplied" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:45:12 +0000 (0:00:00.207) 0:03:17.453 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:45:12 +0000 (0:00:00.173) 0:03:17.627 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get DNS search entry for IPv6] ******************************************* Friday 05 August 2022 19:45:12 +0000 (0:00:00.572) 0:03:18.199 ********* ok: [sut] => { "changed": false, "cmd": [ "nmcli", "-f", "ipv6.dns-search", "connection", "show", "br-example" ], "delta": "0:00:00.018852", "end": "2022-08-05 19:45:13.069498", "rc": 0, "start": "2022-08-05 19:45:13.050646" } STDOUT: ipv6.dns-search: example.com TASK [Assert that DNS search setting for IPv6 is configured when only the static IPv6 address is configured] *** Friday 05 August 2022 19:45:13 +0000 (0:00:00.465) 0:03:18.665 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:45:13 +0000 (0:00:00.230) 0:03:18.896 ********* 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 19:45:13 +0000 (0:00:00.416) 0:03:19.313 ********* 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 19:45:14 +0000 (0:00:00.762) 0:03:20.075 ********* 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 19:45:16 +0000 (0:00:02.345) 0:03:22.420 ********* 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 19:45:18 +0000 (0:00:01.129) 0:03:23.549 ********* 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 19:45:18 +0000 (0:00:00.293) 0:03:23.843 ********* 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 19:45:18 +0000 (0:00:00.141) 0:03:23.985 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:45:18 +0000 (0:00:00.270) 0:03:24.255 ********* 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 19:45:19 +0000 (0:00:00.234) 0:03:24.490 ********* 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 19:45:19 +0000 (0:00:00.183) 0:03:24.673 ********* 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 19:45:19 +0000 (0:00:00.206) 0:03:24.879 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:45:19 +0000 (0:00:00.161) 0:03:25.041 ********* 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 19:45:20 +0000 (0:00:00.818) 0:03:25.860 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:45:20 +0000 (0:00:00.346) 0:03:26.206 ********* 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 19:45:20 +0000 (0:00:00.160) 0:03:26.367 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:45:21 +0000 (0:00:00.242) 0:03:26.610 ********* fatal: [sut]: FAILED! => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "dhcp4": false, "dns_search": "example.com", "ipv6_disabled": true }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled. MSG: error: connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled. ...ignoring TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:45:21 +0000 (0:00:00.750) 0:03:27.360 ********* 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 19:45:22 +0000 (0:00:00.196) 0:03:27.556 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled." ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:45:22 +0000 (0:00:00.125) 0:03:27.682 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "dhcp4": false, "dns_search": "example.com", "ipv6_disabled": true }, "name": "br-example", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": true, "msg": "error: connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled.", "stderr": "[001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled.\n", "stderr_lines": [ "[001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled." ], "warnings": [ "[001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled." ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:45:22 +0000 (0:00:00.254) 0:03:27.936 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:45:22 +0000 (0:00:00.134) 0:03:28.070 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Assert that reconfiguring network connection is failed] ****************** Friday 05 August 2022 19:45:23 +0000 (0:00:00.466) 0:03:28.537 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that configuring DNS search setting is not allowed when both IPv4 and IPv6 are disabled] *** Friday 05 August 2022 19:45:23 +0000 (0:00:00.120) 0:03:28.657 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:45:23 +0000 (0:00:00.194) 0:03:28.852 ********* 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 19:45:23 +0000 (0:00:00.223) 0:03:29.075 ********* 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 19:45:24 +0000 (0:00:00.603) 0:03:29.678 ********* 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 19:45:26 +0000 (0:00:01.951) 0:03:31.630 ********* 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 19:45:26 +0000 (0:00:00.786) 0:03:32.416 ********* 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 19:45:27 +0000 (0:00:00.084) 0:03:32.501 ********* 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 19:45:27 +0000 (0:00:00.063) 0:03:32.565 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:45:27 +0000 (0:00:00.063) 0:03:32.628 ********* 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 19:45:27 +0000 (0:00:00.113) 0:03:32.742 ********* 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 19:45:27 +0000 (0:00:00.061) 0:03:32.803 ********* 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 19:45:27 +0000 (0:00:00.061) 0:03:32.865 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:45:27 +0000 (0:00:00.096) 0:03:32.962 ********* 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 19:45:28 +0000 (0:00:00.576) 0:03:33.539 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:45:28 +0000 (0:00:00.138) 0:03:33.677 ********* 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 19:45:28 +0000 (0:00:00.059) 0:03:33.737 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:45:28 +0000 (0:00:00.059) 0:03:33.797 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "br-example", "persistent_state": "absent", "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 19:45:28 +0000 (0:00:00.605) 0:03:34.402 ********* 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 19:45:29 +0000 (0:00:00.065) 0:03:34.468 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:45:29 +0000 (0:00:00.071) 0:03:34.539 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "br-example", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:45:29 +0000 (0:00:00.073) 0:03:34.613 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:45:29 +0000 (0:00:00.060) 0:03:34.674 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY RECAP ********************************************************************* sut : ok=65 changed=4 unreachable=0 failed=0 skipped=60 rescued=0 ignored=1 Friday 05 August 2022 19:45:29 +0000 (0:00:00.351) 0:03:35.026 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 13.28s Gathering Facts -------------------------------------------------------- 11.47s linux-system-roles.network : Enable and start NetworkManager ----------- 11.21s linux-system-roles.network : Re-test connectivity ----------------------- 7.93s linux-system-roles.network : Check which services are running ----------- 7.63s Get DNS search entry for IPv4 ------------------------------------------- 7.29s linux-system-roles.network : Check which packages are installed --------- 6.35s linux-system-roles.network : Configure networking connection profiles --- 6.16s linux-system-roles.network : Check which packages are installed --------- 5.09s linux-system-roles.network : Install packages --------------------------- 4.78s linux-system-roles.network : Check which services are running ----------- 4.66s linux-system-roles.network : Install packages --------------------------- 4.64s linux-system-roles.network : Ensure ansible_facts used by role are present --- 4.31s linux-system-roles.network : Enable and start NetworkManager ------------ 4.24s linux-system-roles.network : Ensure ansible_facts used by role are present --- 4.06s linux-system-roles.network : Check which services are running ----------- 4.04s Assert that IPv4 DNS search entry is configured correctly --------------- 4.00s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.95s Gathering Facts --------------------------------------------------------- 3.90s Get DNS search entry for IPv6 ------------------------------------------- 3.74s ---^---^---^---^---^--- # 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. [WARNING]: [001] #0, state:up persistent_state:present, 'br-example': connection[0]: Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled. ---^---^---^---^---^---