# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ethernet.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:42:07 +0000 (0:00:00.489) 0:00:00.489 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:14 +0000 (0:00:06.703) 0:00:07.193 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 18:42:15 +0000 (0:00:00.881) 0:00:08.074 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:16 +0000 (0:00:00.729) 0:00:08.804 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 18:42:16 +0000 (0:00:00.638) 0:00:09.442 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 18:42:17 +0000 (0:00:00.963) 0:00:10.405 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 18:42:18 +0000 (0:00:00.645) 0:00:11.051 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 18:42:19 +0000 (0:00:00.752) 0:00:11.803 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 18:42:19 +0000 (0:00:00.647) 0:00:12.451 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:42:21 +0000 (0:00:01.538) 0:00:13.989 ********* ok: [sut] TASK [Show inside ethernet tests] ********************************************** Friday 05 August 2022 18:42:24 +0000 (0:00:03.504) 0:00:17.494 ********* ok: [sut] => {} MSG: Inside ethernet tests TASK [Show network_provider] *************************************************** Friday 05 August 2022 18:42:25 +0000 (0:00:00.884) 0:00:18.379 ********* ok: [sut] => { "network_provider": "nm" } PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:42:26 +0000 (0:00:01.014) 0:00:19.393 ********* ok: [sut] TASK [set type=veth and interface=lsr27] *************************************** Friday 05 August 2022 18:42:31 +0000 (0:00:04.378) 0:00:23.772 ********* ok: [sut] => { "ansible_facts": { "interface": "lsr27", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:32 +0000 (0:00:01.324) 0:00:25.096 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:33 +0000 (0:00:01.009) 0:00:26.105 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:42:34 +0000 (0:00:01.000) 0:00:27.105 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003408", "end": "2022-08-05 18:42:38.699333", "rc": 0, "start": "2022-08-05 18:42:38.695925" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:42:38 +0000 (0:00:04.414) 0:00:31.520 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:42:39 +0000 (0:00:00.978) 0:00:32.499 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:40 +0000 (0:00:00.726) 0:00:33.225 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 18:42:42 +0000 (0:00:01.572) 0:00:34.797 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 18:42:42 +0000 (0:00:00.594) 0:00:35.392 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:43 +0000 (0:00:00.766) 0:00:36.159 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:42:45 +0000 (0:00:01.574) 0:00:37.733 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:42:46 +0000 (0:00:01.048) 0:00:38.782 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003520", "end": "2022-08-05 18:42:47.575167", "rc": 0, "start": "2022-08-05 18:42:47.571647" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:42:47 +0000 (0:00:01.700) 0:00:40.482 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:42:49 +0000 (0:00:01.406) 0:00:41.889 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 18:42:50 +0000 (0:00:01.521) 0:00:43.410 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr27] ********************************************* Friday 05 August 2022 18:42:59 +0000 (0:00:08.888) 0:00:52.299 ********* changed: [sut] => (item=ip link add lsr27 type veth peer name peerlsr27) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr27", "type", "veth", "peer", "name", "peerlsr27" ], "delta": "0:00:00.046554", "end": "2022-08-05 18:43:02.372486", "item": "ip link add lsr27 type veth peer name peerlsr27", "rc": 0, "start": "2022-08-05 18:43:02.325932" } changed: [sut] => (item=ip link set peerlsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr27", "up" ], "delta": "0:00:00.003786", "end": "2022-08-05 18:43:03.432987", "item": "ip link set peerlsr27 up", "rc": 0, "start": "2022-08-05 18:43:03.429201" } changed: [sut] => (item=ip link set lsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr27", "up" ], "delta": "0:00:00.007445", "end": "2022-08-05 18:43:04.467427", "item": "ip link set lsr27 up", "rc": 0, "start": "2022-08-05 18:43:04.459982" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 18:43:04 +0000 (0:00:05.076) 0:00:57.375 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr27", "managed", "true" ], "delta": "0:00:00.158146", "end": "2022-08-05 18:43:05.912538", "rc": 0, "start": "2022-08-05 18:43:05.754392" } TASK [Delete veth interface lsr27] ********************************************* Friday 05 August 2022 18:43:06 +0000 (0:00:01.634) 0:00:59.010 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr27] ******************************************** Friday 05 August 2022 18:43:07 +0000 (0:00:00.854) 0:00:59.864 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr27] ******************************************** Friday 05 August 2022 18:43:07 +0000 (0:00:00.688) 0:01:00.552 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr27] ********************************************** Friday 05 August 2022 18:43:08 +0000 (0:00:00.645) 0:01:01.198 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr27] ********************************************** Friday 05 August 2022 18:43:09 +0000 (0:00:00.660) 0:01:01.858 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:43:10 +0000 (0:00:01.052) 0:01:02.911 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:43:11 +0000 (0:00:01.364) 0:01:04.275 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 18:43:12 +0000 (0:00:00.954) 0:01:05.230 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659724982.3677218, "block_size": 4096, "blocks": 0, "ctime": 1659724982.3677218, "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/lsr27", "lnk_target": "../../devices/virtual/net/lsr27", "mode": "0777", "mtime": 1659724982.3677218, "nlink": 1, "path": "/sys/class/net/lsr27", "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 lsr27 is present] ********************************** Friday 05 August 2022 18:43:16 +0000 (0:00:04.020) 0:01:09.250 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Test static interface up] ************************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:43:18 +0000 (0:00:01.583) 0:01:10.834 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:43:22 +0000 (0:00:04.335) 0:01:15.170 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 18:43:23 +0000 (0:00:01.071) 0:01:16.242 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 18:43:25 +0000 (0:00:02.284) 0:01:18.527 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 18:43:33 +0000 (0:00:07.805) 0:01:26.332 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:43:51 +0000 (0:00:17.423) 0:01:43.755 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:43:52 +0000 (0:00:01.027) 0:01:44.783 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:43:52 +0000 (0:00:00.736) 0:01:45.519 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:43:55 +0000 (0:00:02.145) 0:01:47.665 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:43:57 +0000 (0:00:02.895) 0:01:50.560 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:43:59 +0000 (0:00:01.893) 0:01:52.453 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:44:01 +0000 (0:00:01.299) 0:01:53.753 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:44:03 +0000 (0:00:01.985) 0:01:55.739 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 18:44:13 +0000 (0:00:10.622) 0:02:06.362 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:44:14 +0000 (0:00:00.701) 0:02:07.063 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 18:44:15 +0000 (0:00:00.812) 0:02:07.876 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:44:16 +0000 (0:00:01.215) 0:02:09.091 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb [004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 18:44:28 +0000 (0:00:11.713) 0:02:20.804 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:44:30 +0000 (0:00:02.409) 0:02:23.214 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:44:34 +0000 (0:00:03.977) 0:02:27.191 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "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, 'lsr27': add connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb\n[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27, 5f1be93b-f08d-4202-9fa3-54d66e46f0cb (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 18:44:36 +0000 (0:00:02.297) 0:02:29.488 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:44:40 +0000 (0:00:03.274) 0:02:32.763 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:44:46 +0000 (0:00:05.979) 0:02:38.742 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_output_in_stderr_without_warnings.yml for sut TASK [Assert that warnings is empty] ******************************************* Friday 05 August 2022 18:44:50 +0000 (0:00:04.461) 0:02:43.204 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that there is output in stderr] *********************************** Friday 05 August 2022 18:44:53 +0000 (0:00:02.690) 0:02:45.895 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:44:57 +0000 (0:00:04.350) 0:02:50.245 ********* ok: [sut] TASK [Show network_provider] *************************************************** Friday 05 August 2022 18:45:03 +0000 (0:00:06.303) 0:02:56.549 ********* ok: [sut] => { "network_provider": "nm" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:45:07 +0000 (0:00:03.815) 0:03:00.365 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:45:09 +0000 (0:00:01.402) 0:03:01.768 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 18:45:09 +0000 (0:00:00.671) 0:03:02.439 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 18:45:10 +0000 (0:00:01.003) 0:03:03.443 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 18:45:12 +0000 (0:00:01.891) 0:03:05.334 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:45:13 +0000 (0:00:01.198) 0:03:06.532 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:45:14 +0000 (0:00:00.429) 0:03:06.962 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:45:14 +0000 (0:00:00.277) 0:03:07.239 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:45:14 +0000 (0:00:00.324) 0:03:07.563 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:45:15 +0000 (0:00:01.060) 0:03:08.624 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:45:16 +0000 (0:00:00.139) 0:03:08.764 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:45:16 +0000 (0:00:00.172) 0:03:08.937 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:45:16 +0000 (0:00:00.227) 0:03:09.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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 18:45:17 +0000 (0:00:00.866) 0:03:10.031 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:45:17 +0000 (0:00:00.293) 0:03:10.325 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 18:45:17 +0000 (0:00:00.203) 0:03:10.528 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:45:18 +0000 (0:00:00.138) 0:03:10.666 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 18:45:19 +0000 (0:00:00.979) 0:03:11.645 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:45:19 +0000 (0:00:00.226) 0:03:11.872 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:45:19 +0000 (0:00:00.184) 0:03:12.075 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 18:45:19 +0000 (0:00:00.272) 0:03:12.347 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:45:19 +0000 (0:00:00.207) 0:03:12.555 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:45:20 +0000 (0:00:00.918) 0:03:13.473 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:45:22 +0000 (0:00:01.197) 0:03:14.670 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 18:45:22 +0000 (0:00:00.353) 0:03:15.024 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "lsr27" ], "delta": "0:00:00.007902", "end": "2022-08-05 18:45:22.836288", "rc": 0, "start": "2022-08-05 18:45:22.828386" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:45:23 +0000 (0:00:00.739) 0:03:15.764 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:45:24 +0000 (0:00:01.181) 0:03:16.945 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 18:45:24 +0000 (0:00:00.243) 0:03:17.188 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 18:45:25 +0000 (0:00:00.993) 0:03:18.182 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 18:45:28 +0000 (0:00:02.609) 0:03:20.792 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:45:29 +0000 (0:00:01.749) 0:03:22.541 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:45:30 +0000 (0:00:00.207) 0:03:22.749 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:45:30 +0000 (0:00:00.186) 0:03:22.936 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:45:30 +0000 (0:00:00.237) 0:03:23.173 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:45:31 +0000 (0:00:00.733) 0:03:23.907 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:45:31 +0000 (0:00:00.439) 0:03:24.346 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:45:32 +0000 (0:00:00.287) 0:03:24.634 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:45:32 +0000 (0:00:00.479) 0:03:25.114 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 18:45:33 +0000 (0:00:01.218) 0:03:26.332 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:45:34 +0000 (0:00:00.642) 0:03:26.975 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 18:45:35 +0000 (0:00:00.786) 0:03:27.762 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:45:35 +0000 (0:00:00.472) 0:03:28.234 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 18:45:36 +0000 (0:00:01.015) 0:03:29.250 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:45:36 +0000 (0:00:00.262) 0:03:29.512 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:45:37 +0000 (0:00:00.335) 0:03:29.848 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 18:45:38 +0000 (0:00:00.896) 0:03:30.745 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:45:39 +0000 (0:00:01.176) 0:03:31.921 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:45:42 +0000 (0:00:03.318) 0:03:35.239 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:45:46 +0000 (0:00:03.818) 0:03:39.058 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:45:47 +0000 (0:00:01.308) 0:03:40.367 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 18:45:48 +0000 (0:00:01.211) 0:03:41.578 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 18:45:49 +0000 (0:00:00.824) 0:03:42.402 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 18:45:51 +0000 (0:00:01.917) 0:03:44.319 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 18:45:52 +0000 (0:00:00.493) 0:03:44.813 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr27 | grep /etc", "delta": "0:00:00.020057", "end": "2022-08-05 18:45:53.129859", "rc": 1, "start": "2022-08-05 18:45:53.109802" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 18:45:53 +0000 (0:00:01.663) 0:03:46.476 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr27] ************************** Friday 05 August 2022 18:45:55 +0000 (0:00:01.188) 0:03:47.666 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-lsr27] *********************** Friday 05 August 2022 18:45:55 +0000 (0:00:00.968) 0:03:48.634 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'lsr27' is absent] *********************************** Friday 05 August 2022 18:45:57 +0000 (0:00:01.111) 0:03:49.746 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:45:58 +0000 (0:00:01.043) 0:03:50.789 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:45:59 +0000 (0:00:01.423) 0:03:52.213 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 18:46:00 +0000 (0:00:00.694) 0:03:52.907 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface lsr27 is absent] *********************************** Friday 05 August 2022 18:46:02 +0000 (0:00:02.014) 0:03:54.921 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=79 changed=5 unreachable=0 failed=0 skipped=49 rescued=0 ignored=1 Friday 05 August 2022 18:46:04 +0000 (0:00:02.427) 0:03:57.349 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 17.42s linux-system-roles.network : Configure networking connection profiles -- 11.71s linux-system-roles.network : Enable and start NetworkManager ----------- 10.62s Install iproute --------------------------------------------------------- 8.89s linux-system-roles.network : Check which services are running ----------- 7.81s Gathering Facts --------------------------------------------------------- 6.70s Gathering Facts --------------------------------------------------------- 6.30s linux-system-roles.network : Re-test connectivity ----------------------- 5.98s Create veth interface lsr27 --------------------------------------------- 5.08s include_tasks ----------------------------------------------------------- 4.46s Gather current interface info ------------------------------------------- 4.41s Gathering Facts --------------------------------------------------------- 4.38s Assert that there is output in stderr ----------------------------------- 4.35s Gathering Facts --------------------------------------------------------- 4.34s Get stat for interface lsr27 -------------------------------------------- 4.02s linux-system-roles.network : Show stderr messages for the network_connections --- 3.98s Gathering Facts --------------------------------------------------------- 3.82s Show network_provider --------------------------------------------------- 3.82s Gathering Facts --------------------------------------------------------- 3.50s linux-system-roles.network : Re-test connectivity ----------------------- 3.32s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---