# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ipv6_disabled.yml' with nm as provider] **** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:41:42 +0000 (0:00:00.598) 0:00:00.598 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:41:50 +0000 (0:00:07.655) 0:00:08.253 ********* 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:41:51 +0000 (0:00:00.583) 0:00:08.837 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:41:51 +0000 (0:00:00.616) 0:00:09.453 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 19:41:52 +0000 (0:00:00.944) 0:00:10.398 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 19:41:53 +0000 (0:00:00.731) 0:00:11.130 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 19:41:53 +0000 (0:00:00.463) 0:00:11.594 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 19:41:54 +0000 (0:00:00.564) 0:00:12.158 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 19:41:54 +0000 (0:00:00.523) 0:00:12.682 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:41:56 +0000 (0:00:01.883) 0:00:14.565 ********* ok: [sut] PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:41:59 +0000 (0:00:03.167) 0:00:17.733 ********* ok: [sut] TASK [set type=veth and interface=ethtest0] ************************************ Friday 05 August 2022 19:42:02 +0000 (0:00:02.787) 0:00:20.520 ********* ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:04 +0000 (0:00:01.325) 0:00:21.845 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:04 +0000 (0:00:00.827) 0:00:22.673 ********* 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 19:42:06 +0000 (0:00:01.229) 0:00:23.903 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003517", "end": "2022-08-05 19:42:14.199299", "rc": 0, "start": "2022-08-05 19:42:14.195782" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:42:15 +0000 (0:00:09.239) 0:00:33.143 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:42:17 +0000 (0:00:01.793) 0:00:34.936 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:20 +0000 (0:00:03.740) 0:00:38.676 ********* 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 19:42:22 +0000 (0:00:01.407) 0:00:40.083 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 19:42:23 +0000 (0:00:01.025) 0:00:41.109 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:24 +0000 (0:00:00.732) 0:00:41.841 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:25 +0000 (0:00:01.094) 0:00:42.936 ********* 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 19:42:26 +0000 (0:00:01.029) 0:00:43.965 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003569", "end": "2022-08-05 19:42:28.332290", "rc": 0, "start": "2022-08-05 19:42:28.328721" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:42:28 +0000 (0:00:02.647) 0:00:46.613 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:42:29 +0000 (0:00:00.810) 0:00:47.423 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 19:42:30 +0000 (0:00:01.099) 0:00:48.523 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** Friday 05 August 2022 19:42:36 +0000 (0:00:05.955) 0:00:54.478 ********* 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.068665", "end": "2022-08-05 19:42:38.832287", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2022-08-05 19:42:38.763622" } changed: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.003920", "end": "2022-08-05 19:42:40.657334", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2022-08-05 19:42:40.653414" } changed: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.012476", "end": "2022-08-05 19:42:42.074598", "item": "ip link set ethtest0 up", "rc": 0, "start": "2022-08-05 19:42:42.062122" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 19:42:42 +0000 (0:00:05.908) 0:01:00.387 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.159915", "end": "2022-08-05 19:42:44.732523", "rc": 0, "start": "2022-08-05 19:42:44.572608" } TASK [Delete veth interface ethtest0] ****************************************** Friday 05 August 2022 19:42:45 +0000 (0:00:02.910) 0:01:03.297 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** Friday 05 August 2022 19:42:46 +0000 (0:00:00.962) 0:01:04.260 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** Friday 05 August 2022 19:42:48 +0000 (0:00:01.581) 0:01:05.841 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* Friday 05 August 2022 19:42:48 +0000 (0:00:00.595) 0:01:06.436 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* Friday 05 August 2022 19:42:49 +0000 (0:00:01.155) 0:01:07.592 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:50 +0000 (0:00:00.958) 0:01:08.551 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:42:53 +0000 (0:00:02.462) 0:01:11.014 ********* 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 19:42:54 +0000 (0:00:01.791) 0:01:12.805 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659728558.8262656, "block_size": 4096, "blocks": 0, "ctime": 1659728558.8262656, "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": 1659728558.8262656, "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 19:43:02 +0000 (0:00:07.296) 0:01:20.101 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Initialize the connection_failed flag] *********************************** Friday 05 August 2022 19:43:03 +0000 (0:00:00.708) 0:01:20.810 ********* ok: [sut] => { "ansible_facts": { "connection_failed": false }, "changed": false } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:43:04 +0000 (0:00:01.341) 0:01:22.152 ********* 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:05 +0000 (0:00:01.538) 0:01:23.690 ********* 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:08 +0000 (0:00:02.420) 0:01:26.110 ********* 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:15 +0000 (0:00:07.129) 0:01:33.239 ********* 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:43:28 +0000 (0:00:12.684) 0:01:45.924 ********* 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:43:32 +0000 (0:00:03.918) 0:01:49.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:43:33 +0000 (0:00:01.202) 0:01:51.046 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:43:33 +0000 (0:00:00.640) 0:01:51.686 ********* 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:43:35 +0000 (0:00:02.044) 0:01:53.730 ********* 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:43:37 +0000 (0:00:01.754) 0:01:55.485 ********* 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:43:38 +0000 (0:00:00.958) 0:01:56.443 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:43:40 +0000 (0:00:01.522) 0:01:57.965 ********* 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:52 +0000 (0:00:12.130) 0:02:10.096 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:43:53 +0000 (0:00:01.589) 0:02:11.685 ********* 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:55 +0000 (0:00:01.678) 0:02:13.428 ********* 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:56 +0000 (0:00:01.227) 0:02:14.656 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "ethtest0", "ip": { "ipv6_disabled": true }, "name": "ethtest0", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'ethtest0': add connection ethtest0, 3d26d023-ac62-498d-bc9b-994fd050ff23 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:44:04 +0000 (0:00:07.844) 0:02:22.500 ********* 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:05 +0000 (0:00:01.150) 0:02:23.650 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'ethtest0': add connection ethtest0, 3d26d023-ac62-498d-bc9b-994fd050ff23" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:44:08 +0000 (0:00:02.518) 0:02:26.169 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "ethtest0", "ip": { "ipv6_disabled": true }, "name": "ethtest0", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'ethtest0': add connection ethtest0, 3d26d023-ac62-498d-bc9b-994fd050ff23\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'ethtest0': add connection ethtest0, 3d26d023-ac62-498d-bc9b-994fd050ff23" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:44:09 +0000 (0:00:00.769) 0:02:26.938 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:44:10 +0000 (0:00:01.023) 0:02:27.962 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Assert that configuring `ipv6_disabled` will only fail when the running version of NetworKManager does not support it] *** Friday 05 August 2022 19:44:13 +0000 (0:00:03.292) 0:02:31.254 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify nmcli connection ipv6.method] ************************************* Friday 05 August 2022 19:44:14 +0000 (0:00:00.831) 0:02:32.085 ********* ok: [sut] => { "changed": false, "cmd": "set -euxo pipefail\nnmcli connection show ethtest0 | grep ipv6.method\n", "delta": "0:00:00.023505", "end": "2022-08-05 19:44:15.355006", "rc": 0, "start": "2022-08-05 19:44:15.331501" } STDOUT: ipv6.method: disabled STDERR: + nmcli connection show ethtest0 + grep ipv6.method TASK [Assert that ipv6.method disabled is configured correctly] **************** Friday 05 August 2022 19:44:15 +0000 (0:00:01.634) 0:02:33.720 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [set the connection_failed flag] ****************************************** Friday 05 August 2022 19:44:17 +0000 (0:00:01.295) 0:02:35.016 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:44:19 +0000 (0:00:01.860) 0:02:36.877 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:44:23 +0000 (0:00:04.746) 0:02:41.623 ********* 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:26 +0000 (0:00:03.011) 0:02:44.635 ********* 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:30 +0000 (0:00:03.725) 0:02:48.360 ********* 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:34 +0000 (0:00:04.228) 0:02:52.588 ********* 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:40 +0000 (0:00:05.620) 0:02:58.209 ********* 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:41 +0000 (0:00:01.277) 0:02:59.487 ********* 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:44 +0000 (0:00:02.414) 0:03:01.901 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:44:44 +0000 (0:00:00.710) 0:03:02.612 ********* 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:49 +0000 (0:00:04.653) 0:03:07.265 ********* 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:51 +0000 (0:00:01.814) 0:03:09.080 ********* 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:53 +0000 (0:00:02.626) 0:03:11.707 ********* 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:56 +0000 (0:00:02.524) 0:03:14.231 ********* 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:01 +0000 (0:00:05.151) 0:03:19.431 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:45:06 +0000 (0:00:04.652) 0:03:24.084 ********* 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:07 +0000 (0:00:01.254) 0:03:25.338 ********* 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:07 +0000 (0:00:00.254) 0:03:25.593 ********* 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 19:45:08 +0000 (0:00:00.963) 0:03:26.556 ********* 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:09 +0000 (0:00:00.320) 0:03:26.877 ********* 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:09 +0000 (0:00:00.383) 0:03:27.260 ********* 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 19:45:09 +0000 (0:00:00.359) 0:03:27.620 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:45:09 +0000 (0:00:00.120) 0:03:27.740 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:45:10 +0000 (0:00:00.830) 0:03:28.571 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:45:11 +0000 (0:00:01.091) 0:03:29.662 ********* 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:12 +0000 (0:00:00.189) 0:03:29.851 ********* 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:13 +0000 (0:00:00.962) 0:03:30.814 ********* 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:14 +0000 (0:00:01.799) 0:03:32.613 ********* 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:15 +0000 (0:00:00.962) 0:03:33.576 ********* 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:16 +0000 (0:00:00.283) 0:03:33.859 ********* 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:16 +0000 (0:00:00.157) 0:03:34.016 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:45:16 +0000 (0:00:00.161) 0:03:34.178 ********* 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:16 +0000 (0:00:00.197) 0:03:34.375 ********* 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:16 +0000 (0:00:00.153) 0:03:34.529 ********* 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:16 +0000 (0:00:00.110) 0:03:34.639 ********* 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:17 +0000 (0:00:00.185) 0:03:34.824 ********* 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:18 +0000 (0:00:01.378) 0:03:36.203 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:45:18 +0000 (0:00:00.145) 0:03:36.349 ********* 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:18 +0000 (0:00:00.095) 0:03:36.445 ********* 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:18 +0000 (0:00:00.093) 0:03:36.538 ********* 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 19:45:19 +0000 (0:00:00.671) 0:03:37.210 ********* 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:19 +0000 (0:00:00.148) 0:03:37.359 ********* 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:19 +0000 (0:00:00.178) 0:03:37.537 ********* 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 19:45:19 +0000 (0:00:00.146) 0:03:37.684 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:45:19 +0000 (0:00:00.116) 0:03:37.800 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface, then assert that device and profile are absent] **** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:45:20 +0000 (0:00:00.665) 0:03:38.466 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:45:21 +0000 (0:00:00.947) 0:03:39.413 ********* 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 19:45:21 +0000 (0:00:00.313) 0:03:39.727 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.011078", "end": "2022-08-05 19:45:22.211594", "rc": 0, "start": "2022-08-05 19:45:22.200516" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:45:22 +0000 (0:00:00.417) 0:03:40.144 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:45:22 +0000 (0:00:00.191) 0:03:40.336 ********* 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 19:45:22 +0000 (0:00:00.204) 0:03:40.540 ********* 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 19:45:22 +0000 (0:00:00.110) 0:03:40.651 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:45:23 +0000 (0:00:00.408) 0:03:41.059 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:45:23 +0000 (0:00:00.205) 0:03:41.265 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep ethtest0 | grep /etc", "delta": "0:00:00.020306", "end": "2022-08-05 19:45:23.818397", "rc": 1, "start": "2022-08-05 19:45:23.798091" } 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 19:45:23 +0000 (0:00:00.473) 0:03:41.738 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-ethtest0] *********************** Friday 05 August 2022 19:45:24 +0000 (0:00:00.107) 0:03:41.846 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-ethtest0] ******************** Friday 05 August 2022 19:45:24 +0000 (0:00:00.155) 0:03:42.001 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'ethtest0' is absent] ******************************** Friday 05 August 2022 19:45:24 +0000 (0:00:00.200) 0:03:42.202 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:45:24 +0000 (0:00:00.174) 0:03:42.376 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:45:24 +0000 (0:00:00.165) 0:03:42.541 ********* 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 19:45:24 +0000 (0:00:00.200) 0:03:42.742 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface ethtest0 is absent] ******************************** Friday 05 August 2022 19:45:25 +0000 (0:00:00.327) 0:03:43.069 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=73 changed=5 unreachable=0 failed=0 skipped=51 rescued=0 ignored=1 Friday 05 August 2022 19:45:25 +0000 (0:00:00.149) 0:03:43.219 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 12.68s linux-system-roles.network : Enable and start NetworkManager ----------- 12.13s Gather current interface info ------------------------------------------- 9.24s linux-system-roles.network : Configure networking connection profiles --- 7.84s Gathering Facts --------------------------------------------------------- 7.66s Get stat for interface ethtest0 ----------------------------------------- 7.30s linux-system-roles.network : Check which services are running ----------- 7.13s Install iproute --------------------------------------------------------- 5.96s Create veth interface ethtest0 ------------------------------------------ 5.91s linux-system-roles.network : Check which packages are installed --------- 5.62s linux-system-roles.network : Enable and start NetworkManager ------------ 5.20s Gathering Facts --------------------------------------------------------- 4.75s linux-system-roles.network : Install packages --------------------------- 4.65s linux-system-roles.network : Enable and start wpa_supplicant ------------ 4.65s linux-system-roles.network : Check which services are running ----------- 4.23s linux-system-roles.network : Print network provider --------------------- 3.92s Show current_interfaces ------------------------------------------------- 3.74s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.73s linux-system-roles.network : Re-test connectivity ----------------------- 3.29s Gathering Facts --------------------------------------------------------- 3.17s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---