# 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 16:27:18 +0000 (0:00:00.656) 0:00:00.656 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:27:31 +0000 (0:00:13.458) 0:00:14.114 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 16:27:32 +0000 (0:00:01.256) 0:00:15.371 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:27:33 +0000 (0:00:00.694) 0:00:16.085 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 16:27:34 +0000 (0:00:01.313) 0:00:17.475 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.338982", "end": "2022-08-05 16:27:45.439119", "rc": 0, "start": "2022-08-05 16:27:43.100137" } STDOUT: Last metadata expiration check: 0:01:57 ago on Fri Aug 5 16:25:46 2022. epel-release-latest-8.noarch.rpm 282 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 16:27:45 +0000 (0:00:10.840) 0:00:28.316 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 16:27:46 +0000 (0:00:00.643) 0:00:28.959 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:01.535455", "end": "2022-08-05 16:27:48.954494", "rc": 0, "start": "2022-08-05 16:27:47.419039" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 16:27:49 +0000 (0:00:03.023) 0:00:31.983 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 16:27:51 +0000 (0:00:01.860) 0:00:33.843 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:27:53 +0000 (0:00:02.519) 0:00:36.363 ********* ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:27:58 +0000 (0:00:04.314) 0:00:40.678 ********* ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 05 August 2022 16:28:03 +0000 (0:00:05.451) 0:00:46.130 ********* ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:04 +0000 (0:00:00.775) 0:00:46.905 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:05 +0000 (0:00:01.647) 0:00:48.553 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 16:28:07 +0000 (0:00:01.573) 0:00:50.126 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004021", "end": "2022-08-05 16:28:08.289995", "rc": 0, "start": "2022-08-05 16:28:08.285974" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:28:08 +0000 (0:00:01.227) 0:00:51.353 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:28:10 +0000 (0:00:01.301) 0:00:52.655 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:11 +0000 (0:00:01.581) 0:00:54.237 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 16:28:13 +0000 (0:00:01.671) 0:00:55.908 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:28:14 +0000 (0:00:01.077) 0:00:56.986 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:15 +0000 (0:00:00.661) 0:00:57.648 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:16 +0000 (0:00:00.961) 0:00:58.609 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 16:28:17 +0000 (0:00:01.097) 0:00:59.706 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003869", "end": "2022-08-05 16:28:18.649152", "rc": 0, "start": "2022-08-05 16:28:18.645283" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:28:19 +0000 (0:00:02.106) 0:01:01.813 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:28:20 +0000 (0:00:01.478) 0:01:03.291 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:28:22 +0000 (0:00:01.701) 0:01:04.993 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 05 August 2022 16:28:41 +0000 (0:00:19.317) 0:01:24.311 ********* 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.061239", "end": "2022-08-05 16:28:43.643716", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-08-05 16:28:43.582477" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.010001", "end": "2022-08-05 16:28:45.235414", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-08-05 16:28:45.225413" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.009031", "end": "2022-08-05 16:28:46.852808", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-08-05 16:28:46.843777" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:28:47 +0000 (0:00:05.875) 0:01:30.186 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.100590", "end": "2022-08-05 16:28:49.491604", "rc": 0, "start": "2022-08-05 16:28:49.391014" } TASK [Delete veth interface ethtest0] ****************************************** Friday 05 August 2022 16:28:50 +0000 (0:00:02.754) 0:01:32.941 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 05 August 2022 16:28:51 +0000 (0:00:01.618) 0:01:34.560 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 05 August 2022 16:28:52 +0000 (0:00:00.895) 0:01:35.455 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 05 August 2022 16:28:53 +0000 (0:00:00.528) 0:01:35.983 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 05 August 2022 16:28:53 +0000 (0:00:00.507) 0:01:36.491 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:54 +0000 (0:00:00.551) 0:01:37.043 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:28:55 +0000 (0:00:01.433) 0:01:38.476 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 16:28:56 +0000 (0:00:00.642) 0:01:39.119 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659716923.6414578, "block_size": 4096, "blocks": 0, "ctime": 1659716923.6414578, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "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": 1659716923.6414578, "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 16:29:00 +0000 (0:00:03.603) 0:01:42.722 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:29:01 +0000 (0:00:00.902) 0:01:43.625 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 16:29:02 +0000 (0:00:01.594) 0:01:45.219 ********* 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 16:29:06 +0000 (0:00:04.084) 0:01:49.303 ********* 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 16:29:11 +0000 (0:00:05.259) 0:01:54.563 ********* 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 16:29:23 +0000 (0:00:11.527) 0:02:06.090 ********* 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 16:29:24 +0000 (0:00:01.409) 0:02:07.499 ********* 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 16:29:25 +0000 (0:00:00.610) 0:02:08.110 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:29:26 +0000 (0:00:01.332) 0:02:09.442 ********* 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 16:29:29 +0000 (0:00:02.353) 0:02:11.795 ********* 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 16:29:30 +0000 (0:00:01.499) 0:02:13.295 ********* 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 16:29:31 +0000 (0:00:01.225) 0:02:14.520 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:29:33 +0000 (0:00:01.453) 0:02:15.974 ********* 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 16:29:51 +0000 (0:00:17.875) 0:02:33.870 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:29:53 +0000 (0:00:02.199) 0:02:36.069 ********* 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 16:29:54 +0000 (0:00:01.381) 0:02:37.451 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:29:57 +0000 (0:00:02.483) 0:02:39.934 ********* 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, 2b8618db-f731-46c7-bf30-1c77d487d087 [004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:30:07 +0000 (0:00:10.379) 0:02:50.313 ********* 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 16:30:07 +0000 (0:00:00.212) 0:02:50.526 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:30:08 +0000 (0:00:00.164) 0:02:50.691 ********* 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, 2b8618db-f731-46c7-bf30-1c77d487d087\n[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'ethtest0': add connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087", "[004] #0, state:up persistent_state:present, 'ethtest0': up connection ethtest0, 2b8618db-f731-46c7-bf30-1c77d487d087 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:30:08 +0000 (0:00:00.195) 0:02:50.886 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:30:08 +0000 (0:00:00.128) 0:02:51.015 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Verify nmcli connection DNS entry for IPv4] ****************************** Friday 05 August 2022 16:30:09 +0000 (0:00:01.140) 0:02:52.156 ********* ok: [sut] => { "changed": false, "cmd": "set -euxo pipefail\nnmcli connection show ethtest0 | grep ipv4.dns\n", "delta": "0:00:00.026977", "end": "2022-08-05 16:30:09.884271", "rc": 0, "start": "2022-08-05 16:30:09.857294" } 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 16:30:09 +0000 (0:00:00.374) 0:02:52.530 ********* ok: [sut] => { "changed": false, "cmd": "set -euxo pipefail\nnmcli connection show ethtest0 | grep ipv6.dns\n", "delta": "0:00:00.026699", "end": "2022-08-05 16:30:10.211442", "rc": 0, "start": "2022-08-05 16:30:10.184743" } 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 16:30:10 +0000 (0:00:00.313) 0:02:52.843 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that DNS search domains are configured correctly] ***************** Friday 05 August 2022 16:30:10 +0000 (0:00:00.120) 0:02:52.964 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that DNS options are configured correctly] ************************ Friday 05 August 2022 16:30:10 +0000 (0:00:00.207) 0:02:53.171 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:30:11 +0000 (0:00:00.548) 0:02:53.719 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:30:13 +0000 (0:00:02.144) 0:02:55.864 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 16:30:13 +0000 (0:00:00.219) 0:02:56.083 ********* 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 16:30:15 +0000 (0:00:01.640) 0:02:57.724 ********* 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 16:30:17 +0000 (0:00:01.918) 0:02:59.642 ********* 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 16:30:18 +0000 (0:00:01.838) 0:03:01.480 ********* 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 16:30:19 +0000 (0:00:00.090) 0:03:01.571 ********* 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 16:30:19 +0000 (0:00:00.064) 0:03:01.635 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:30:19 +0000 (0:00:00.084) 0:03:01.720 ********* 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 16:30:19 +0000 (0:00:00.261) 0:03:01.981 ********* 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 16:30:19 +0000 (0:00:00.104) 0:03:02.086 ********* 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 16:30:19 +0000 (0:00:00.091) 0:03:02.177 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:30:19 +0000 (0:00:00.096) 0:03:02.274 ********* 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 16:30:20 +0000 (0:00:00.552) 0:03:02.826 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:30:20 +0000 (0:00:00.146) 0:03:02.973 ********* 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 16:30:20 +0000 (0:00:00.152) 0:03:03.125 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:30:20 +0000 (0:00:00.092) 0:03:03.217 ********* 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 16:30:21 +0000 (0:00:00.659) 0:03:03.877 ********* 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 16:30:21 +0000 (0:00:00.254) 0:03:04.132 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:30:21 +0000 (0:00:00.103) 0:03:04.235 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "ethtest0", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:30:21 +0000 (0:00:00.161) 0:03:04.397 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:30:21 +0000 (0:00:00.141) 0:03:04.539 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:30:22 +0000 (0:00:00.422) 0:03:04.961 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:30:23 +0000 (0:00:00.866) 0:03:05.828 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 16:30:23 +0000 (0:00:00.119) 0:03:05.947 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.012545", "end": "2022-08-05 16:30:23.656095", "rc": 0, "start": "2022-08-05 16:30:23.643550" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:30:23 +0000 (0:00:00.582) 0:03:06.530 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:30:24 +0000 (0:00:00.840) 0:03:07.371 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 16:30:24 +0000 (0:00:00.101) 0:03:07.472 ********* 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 16:30:25 +0000 (0:00:00.528) 0:03:08.001 ********* 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 16:30:27 +0000 (0:00:01.840) 0:03:09.841 ********* 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 16:30:28 +0000 (0:00:01.705) 0:03:11.546 ********* 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 16:30:29 +0000 (0:00:00.127) 0:03:11.674 ********* 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 16:30:29 +0000 (0:00:00.061) 0:03:11.736 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:30:29 +0000 (0:00:00.063) 0:03:11.800 ********* 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 16:30:29 +0000 (0:00:00.152) 0:03:11.952 ********* 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 16:30:29 +0000 (0:00:00.066) 0:03:12.019 ********* 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 16:30:29 +0000 (0:00:00.072) 0:03:12.091 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:30:29 +0000 (0:00:00.089) 0:03:12.180 ********* 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 16:30:30 +0000 (0:00:00.519) 0:03:12.700 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:30:30 +0000 (0:00:00.086) 0:03:12.787 ********* 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 16:30:30 +0000 (0:00:00.054) 0:03:12.842 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:30:30 +0000 (0:00:00.059) 0:03:12.901 ********* 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 16:30:30 +0000 (0:00:00.581) 0:03:13.482 ********* 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 16:30:30 +0000 (0:00:00.079) 0:03:13.562 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:30:31 +0000 (0:00:00.080) 0:03:13.643 ********* 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 16:30:31 +0000 (0:00:00.092) 0:03:13.736 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:30:31 +0000 (0:00:00.064) 0:03:13.800 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert profile and device are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:30:31 +0000 (0:00:00.372) 0:03:14.173 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:30:32 +0000 (0:00:00.803) 0:03:14.976 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:30:32 +0000 (0:00:00.115) 0:03:15.091 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 16:30:32 +0000 (0:00:00.210) 0:03:15.301 ********* 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 16:30:32 +0000 (0:00:00.094) 0:03:15.397 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.299) 0:03:15.696 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.062) 0:03:15.759 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.022309", "end": "2022-08-05 16:30:33.457234", "rc": 1, "start": "2022-08-05 16:30:33.434925" } 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 16:30:33 +0000 (0:00:00.327) 0:03:16.086 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.066) 0:03:16.153 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.087) 0:03:16.240 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.096) 0:03:16.337 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:30:33 +0000 (0:00:00.144) 0:03:16.482 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:30:34 +0000 (0:00:00.123) 0:03:16.605 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** Friday 05 August 2022 16:30:34 +0000 (0:00:00.112) 0:03:16.717 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 05 August 2022 16:30:34 +0000 (0:00:00.306) 0:03:17.024 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=78 changed=7 unreachable=0 failed=0 skipped=47 rescued=0 ignored=1 Friday 05 August 2022 16:30:34 +0000 (0:00:00.264) 0:03:17.288 ********* =============================================================================== Install iproute -------------------------------------------------------- 19.32s linux-system-roles.network : Enable and start NetworkManager ----------- 17.90s Gathering Facts -------------------------------------------------------- 13.46s linux-system-roles.network : Check which packages are installed -------- 11.53s Create EPEL 8 ---------------------------------------------------------- 10.84s linux-system-roles.network : Configure networking connection profiles -- 10.38s Create veth interface ethtest0 ------------------------------------------ 5.88s Gathering Facts --------------------------------------------------------- 5.45s linux-system-roles.network : Check which services are running ----------- 5.26s Gathering Facts --------------------------------------------------------- 4.31s linux-system-roles.network : Ensure ansible_facts used by role are present --- 4.08s Get stat for interface ethtest0 ----------------------------------------- 3.60s Enable EPEL 8 ----------------------------------------------------------- 3.02s Set up veth as managed by NetworkManager -------------------------------- 2.75s Set network provider to 'nm' -------------------------------------------- 2.52s linux-system-roles.network : Ensure initscripts network file dependency is present --- 2.48s linux-system-roles.network : Install packages --------------------------- 2.35s linux-system-roles.network : Enable and start wpa_supplicant ------------ 2.20s Gathering Facts --------------------------------------------------------- 2.14s Gather current interface info ------------------------------------------- 2.11s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---