# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:42:13 +0000 (0:00:00.462) 0:00:00.462 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:24 +0000 (0:00:11.326) 0:00:11.789 ********* 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 16:42:25 +0000 (0:00:01.029) 0:00:12.818 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:26 +0000 (0:00:00.581) 0:00:13.400 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 16:42:27 +0000 (0:00:01.076) 0:00:14.477 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 16:42:28 +0000 (0:00:00.910) 0:00:15.387 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 16:42:29 +0000 (0:00:00.826) 0:00:16.213 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 16:42:30 +0000 (0:00:00.739) 0:00:16.953 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 16:42:30 +0000 (0:00:00.540) 0:00:17.493 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:42:32 +0000 (0:00:02.267) 0:00:19.761 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:35 +0000 (0:00:02.530) 0:00:22.291 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:36 +0000 (0:00:01.468) 0:00:23.759 ********* 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 16:42:38 +0000 (0:00:01.670) 0:00:25.429 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003598", "end": "2022-08-05 16:42:45.995160", "rc": 0, "start": "2022-08-05 16:42:45.991562" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:42:46 +0000 (0:00:07.909) 0:00:33.339 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:42:48 +0000 (0:00:02.127) 0:00:35.466 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:51 +0000 (0:00:02.674) 0:00:38.141 ********* 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 16:42:53 +0000 (0:00:02.711) 0:00:40.853 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:42:55 +0000 (0:00:01.025) 0:00:41.878 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:55 +0000 (0:00:00.819) 0:00:42.697 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:57 +0000 (0:00:01.318) 0:00:44.016 ********* 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 16:42:58 +0000 (0:00:01.264) 0:00:45.280 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.004779", "end": "2022-08-05 16:43:01.438668", "rc": 0, "start": "2022-08-05 16:43:00.433889" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:43:02 +0000 (0:00:03.850) 0:00:49.131 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:43:03 +0000 (0:00:00.942) 0:00:50.073 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:43:04 +0000 (0:00:01.614) 0:00:51.688 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 16:43:16 +0000 (0:00:11.521) 0:01:03.275 ********* changed: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.046891", "end": "2022-08-05 16:43:18.608799", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 16:43:18.561908" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003844", "end": "2022-08-05 16:43:21.750373", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 16:43:21.746529" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.008276", "end": "2022-08-05 16:43:23.585034", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 16:43:23.576758" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:43:24 +0000 (0:00:07.728) 0:01:11.004 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.146641", "end": "2022-08-05 16:43:25.841787", "rc": 0, "start": "2022-08-05 16:43:25.695146" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 16:43:26 +0000 (0:00:02.365) 0:01:13.369 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 16:43:27 +0000 (0:00:01.168) 0:01:14.538 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 16:43:28 +0000 (0:00:00.986) 0:01:15.525 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 16:43:30 +0000 (0:00:01.715) 0:01:17.240 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 16:43:31 +0000 (0:00:01.023) 0:01:18.264 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:43:32 +0000 (0:00:00.687) 0:01:18.951 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:43:33 +0000 (0:00:01.186) 0:01:20.138 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 05 August 2022 16:43:34 +0000 (0:00:01.284) 0:01:21.423 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717798.6021237, "block_size": 4096, "blocks": 0, "ctime": 1659717798.6021237, "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/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1659717798.6021237, "nlink": 1, "path": "/sys/class/net/veth0", "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 veth0 is present] ********************************** Friday 05 August 2022 16:43:42 +0000 (0:00:08.135) 0:01:29.558 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Friday 05 August 2022 16:43:43 +0000 (0:00:00.830) 0:01:30.388 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:43:44 +0000 (0:00:01.193) 0:01:31.582 ********* 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 16:43:46 +0000 (0:00:01.780) 0:01:33.362 ********* 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:43:50 +0000 (0:00:03.644) 0:01:37.007 ********* 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:43:58 +0000 (0:00:08.463) 0:01:45.470 ********* 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:44:19 +0000 (0:00:20.633) 0:02:06.103 ********* 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:44:21 +0000 (0:00:02.368) 0:02:08.472 ********* 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:44:22 +0000 (0:00:01.267) 0:02:09.739 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:44:24 +0000 (0:00:01.515) 0:02:11.254 ********* 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:44:26 +0000 (0:00:02.492) 0:02:13.747 ********* 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:44:28 +0000 (0:00:01.434) 0:02:15.181 ********* 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:44:28 +0000 (0:00:00.484) 0:02:15.666 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:44:29 +0000 (0:00:01.056) 0:02:16.722 ********* 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:44:42 +0000 (0:00:12.789) 0:02:29.512 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:44:44 +0000 (0:00:01.432) 0:02:30.944 ********* 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:44:44 +0000 (0:00:00.897) 0:02:31.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:44:46 +0000 (0:00:01.302) 0:02:33.144 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 430009e5-4151-4fa2-8cef-571105396acd [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 430009e5-4151-4fa2-8cef-571105396acd (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:44:55 +0000 (0:00:09.372) 0:02:42.516 ********* 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:44:57 +0000 (0:00:01.389) 0:02:43.906 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 430009e5-4151-4fa2-8cef-571105396acd", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 430009e5-4151-4fa2-8cef-571105396acd (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:44:59 +0000 (0:00:02.173) 0:02:46.080 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "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, 'veth0': add connection veth0, 430009e5-4151-4fa2-8cef-571105396acd\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 430009e5-4151-4fa2-8cef-571105396acd (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 430009e5-4151-4fa2-8cef-571105396acd", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 430009e5-4151-4fa2-8cef-571105396acd (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:45:00 +0000 (0:00:01.511) 0:02:47.591 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:45:01 +0000 (0:00:00.846) 0:02:48.437 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:07 +0000 (0:00:05.439) 0:02:53.877 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:07 +0000 (0:00:00.291) 0:02:54.169 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 05 August 2022 16:45:07 +0000 (0:00:00.160) 0:02:54.329 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717798.6021237, "block_size": 4096, "blocks": 0, "ctime": 1659717798.6021237, "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/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1659717798.6021237, "nlink": 1, "path": "/sys/class/net/veth0", "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 veth0 is present] ********************************** Friday 05 August 2022 16:45:07 +0000 (0:00:00.379) 0:02:54.709 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:07 +0000 (0:00:00.096) 0:02:54.805 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:08 +0000 (0:00:00.295) 0:02:55.100 ********* 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 16:45:08 +0000 (0:00:00.266) 0:02:55.367 ********* 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:45:08 +0000 (0:00:00.194) 0:02:55.561 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:45:09 +0000 (0:00:00.376) 0:02:55.938 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:45:09 +0000 (0:00:00.063) 0:02:56.001 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.022950", "end": "2022-08-05 16:45:09.422219", "rc": 0, "start": "2022-08-05 16:45:09.399269" } STDOUT: veth0 /etc/NetworkManager/system-connections/veth0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 16:45:09 +0000 (0:00:00.481) 0:02:56.482 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Friday 05 August 2022 16:45:09 +0000 (0:00:00.356) 0:02:56.839 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.094) 0:02:56.934 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.200) 0:02:57.134 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.179) 0:02:57.313 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.144) 0:02:57.458 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003831", "end": "2022-08-05 16:45:10.839250", "rc": 0, "start": "2022-08-05 16:45:10.835419" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.13.42 metric 100 default via 203.0.113.1 dev veth0 proto static metric 101 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.13.42 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is present] ************************************ Friday 05 August 2022 16:45:10 +0000 (0:00:00.328) 0:02:57.787 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 16:45:11 +0000 (0:00:00.146) 0:02:57.934 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003768", "end": "2022-08-05 16:45:11.342990", "rc": 0, "start": "2022-08-05 16:45:11.339222" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 1024 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium default via 2001:db8::1 dev veth0 proto static metric 101 pref medium TASK [Assert default ipv6 route is present] ************************************ Friday 05 August 2022 16:45:11 +0000 (0:00:00.342) 0:02:58.276 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 16:45:11 +0000 (0:00:00.195) 0:02:58.472 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:45:11 +0000 (0:00:00.226) 0:02:58.699 ********* 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 16:45:12 +0000 (0:00:00.218) 0:02:58.917 ********* 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:45:12 +0000 (0:00:00.593) 0:02:59.510 ********* 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:45:14 +0000 (0:00:01.894) 0:03:01.405 ********* 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:45:15 +0000 (0:00:00.776) 0:03:02.182 ********* 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:45:15 +0000 (0:00:00.155) 0:03:02.337 ********* 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:45:15 +0000 (0:00:00.104) 0:03:02.442 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:45:15 +0000 (0:00:00.074) 0:03:02.517 ********* 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:45:15 +0000 (0:00:00.169) 0:03:02.686 ********* 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:45:15 +0000 (0:00:00.071) 0:03:02.758 ********* 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:45:16 +0000 (0:00:00.112) 0:03:02.870 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:45:16 +0000 (0:00:00.266) 0:03:03.137 ********* 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:45:16 +0000 (0:00:00.571) 0:03:03.708 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:45:16 +0000 (0:00:00.127) 0:03:03.836 ********* 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:45:17 +0000 (0:00:00.080) 0:03:03.916 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:45:17 +0000 (0:00:00.105) 0:03:04.022 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:45:17 +0000 (0:00:00.633) 0:03:04.655 ********* 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:45:17 +0000 (0:00:00.153) 0:03:04.809 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:45:18 +0000 (0:00:00.112) 0:03:04.922 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:45:18 +0000 (0:00:00.124) 0:03:05.046 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:45:18 +0000 (0:00:00.102) 0:03:05.148 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:18 +0000 (0:00:00.412) 0:03:05.560 ********* 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 16:45:18 +0000 (0:00:00.195) 0:03:05.756 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:45:19 +0000 (0:00:00.212) 0:03:05.969 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:19 +0000 (0:00:00.115) 0:03:06.085 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:19 +0000 (0:00:00.153) 0:03:06.238 ********* 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 16:45:19 +0000 (0:00:00.109) 0:03:06.347 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003627", "end": "2022-08-05 16:45:19.753058", "rc": 0, "start": "2022-08-05 16:45:19.749431" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:45:19 +0000 (0:00:00.362) 0:03:06.710 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:45:19 +0000 (0:00:00.116) 0:03:06.827 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:45:20 +0000 (0:00:00.084) 0:03:06.911 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 16:45:21 +0000 (0:00:01.031) 0:03:07.942 ********* skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.070) 0:03:08.013 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 16:45:21 +0000 (0:00:00.053) 0:03:08.066 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.014297", "end": "2022-08-05 16:45:21.454019", "rc": 0, "start": "2022-08-05 16:45:21.439722" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.301) 0:03:08.368 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.063) 0:03:08.431 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.078) 0:03:08.510 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.104) 0:03:08.614 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** Friday 05 August 2022 16:45:21 +0000 (0:00:00.056) 0:03:08.670 ********* ok: [sut] => {} MSG: ################################################## TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:21 +0000 (0:00:00.072) 0:03:08.743 ********* 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 16:45:22 +0000 (0:00:00.132) 0:03:08.876 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:45:22 +0000 (0:00:00.057) 0:03:08.933 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:22 +0000 (0:00:00.055) 0:03:08.988 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:22 +0000 (0:00:00.092) 0:03:09.080 ********* 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 16:45:22 +0000 (0:00:00.099) 0:03:09.180 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003581", "end": "2022-08-05 16:45:22.555902", "rc": 0, "start": "2022-08-05 16:45:22.552321" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:45:22 +0000 (0:00:00.295) 0:03:09.476 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:45:22 +0000 (0:00:00.107) 0:03:09.583 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:45:22 +0000 (0:00:00.071) 0:03:09.655 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 16:45:23 +0000 (0:00:01.069) 0:03:10.724 ********* changed: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.014950", "end": "2022-08-05 16:45:24.118849", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 16:45:24.103899" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.004103", "end": "2022-08-05 16:45:24.358453", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 16:45:24.354350" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.007761", "end": "2022-08-05 16:45:24.594788", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 16:45:24.587027" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:45:24 +0000 (0:00:00.786) 0:03:11.511 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.024102", "end": "2022-08-05 16:45:24.901890", "rc": 0, "start": "2022-08-05 16:45:24.877788" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 16:45:24 +0000 (0:00:00.308) 0:03:11.819 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:25 +0000 (0:00:00.055) 0:03:11.874 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:25 +0000 (0:00:00.056) 0:03:11.931 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 16:45:25 +0000 (0:00:00.067) 0:03:11.998 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 16:45:25 +0000 (0:00:00.056) 0:03:12.055 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:45:25 +0000 (0:00:00.055) 0:03:12.110 ********* 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 16:45:25 +0000 (0:00:00.091) 0:03:12.202 ********* 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:45:25 +0000 (0:00:00.484) 0:03:12.686 ********* 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:45:27 +0000 (0:00:01.644) 0:03:14.331 ********* 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:45:28 +0000 (0:00:00.769) 0:03:15.101 ********* 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:45:28 +0000 (0:00:00.068) 0:03:15.170 ********* 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:45:28 +0000 (0:00:00.062) 0:03:15.232 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:45:28 +0000 (0:00:00.061) 0:03:15.294 ********* 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:45:28 +0000 (0:00:00.113) 0:03:15.407 ********* 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:45:28 +0000 (0:00:00.062) 0:03:15.470 ********* 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:45:28 +0000 (0:00:00.060) 0:03:15.531 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:45:28 +0000 (0:00:00.081) 0:03:15.612 ********* 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:45:29 +0000 (0:00:00.529) 0:03:16.141 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:45:29 +0000 (0:00:00.083) 0:03:16.224 ********* 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:45:29 +0000 (0:00:00.100) 0:03:16.324 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:45:29 +0000 (0:00:00.053) 0:03:16.378 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:45:30 +0000 (0:00:00.560) 0:03:16.938 ********* 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:45:30 +0000 (0:00:00.059) 0:03:16.998 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:45:30 +0000 (0:00:00.073) 0:03:17.071 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "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, 'veth0': add connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 24308aeb-4f44-49ac-b1e6-1ed90d6b1a15 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:45:30 +0000 (0:00:00.073) 0:03:17.144 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:45:30 +0000 (0:00:00.058) 0:03:17.203 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:30 +0000 (0:00:00.300) 0:03:17.503 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:30 +0000 (0:00:00.118) 0:03:17.621 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 05 August 2022 16:45:30 +0000 (0:00:00.084) 0:03:17.706 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717924.108038, "block_size": 4096, "blocks": 0, "ctime": 1659717924.108038, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23022, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1659717924.108038, "nlink": 1, "path": "/sys/class/net/veth0", "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 veth0 is present] ********************************** Friday 05 August 2022 16:45:31 +0000 (0:00:00.277) 0:03:17.983 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:31 +0000 (0:00:00.072) 0:03:18.056 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:31 +0000 (0:00:00.170) 0:03:18.226 ********* 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 16:45:31 +0000 (0:00:00.086) 0:03:18.312 ********* 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:45:31 +0000 (0:00:00.070) 0:03:18.382 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:45:31 +0000 (0:00:00.272) 0:03:18.654 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:45:31 +0000 (0:00:00.055) 0:03:18.710 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.022476", "end": "2022-08-05 16:45:32.098739", "rc": 0, "start": "2022-08-05 16:45:32.076263" } STDOUT: veth0 /etc/NetworkManager/system-connections/veth0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 16:45:32 +0000 (0:00:00.301) 0:03:19.011 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Friday 05 August 2022 16:45:32 +0000 (0:00:00.070) 0:03:19.082 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 16:45:32 +0000 (0:00:00.062) 0:03:19.144 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 16:45:32 +0000 (0:00:00.054) 0:03:19.198 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 16:45:32 +0000 (0:00:00.090) 0:03:19.288 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 05 August 2022 16:45:32 +0000 (0:00:00.091) 0:03:19.380 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003696", "end": "2022-08-05 16:45:32.745976", "rc": 0, "start": "2022-08-05 16:45:32.742280" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.13.42 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.13.42 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is absent] ************************************* Friday 05 August 2022 16:45:32 +0000 (0:00:00.287) 0:03:19.667 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 16:45:32 +0000 (0:00:00.079) 0:03:19.747 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003768", "end": "2022-08-05 16:45:33.200814", "rc": 0, "start": "2022-08-05 16:45:33.197046" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 1024 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium TASK [Assert default ipv6 route is absent] ************************************* Friday 05 August 2022 16:45:33 +0000 (0:00:00.366) 0:03:20.113 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 16:45:33 +0000 (0:00:00.082) 0:03:20.196 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:45:33 +0000 (0:00:00.078) 0:03:20.275 ********* 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 16:45:33 +0000 (0:00:00.115) 0:03:20.390 ********* 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:45:34 +0000 (0:00:00.498) 0:03:20.888 ********* 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:45:35 +0000 (0:00:01.658) 0:03:22.547 ********* 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:45:36 +0000 (0:00:00.760) 0:03:23.308 ********* 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:45:36 +0000 (0:00:00.174) 0:03:23.482 ********* 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:45:36 +0000 (0:00:00.068) 0:03:23.551 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:45:36 +0000 (0:00:00.063) 0:03:23.614 ********* 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:45:36 +0000 (0:00:00.138) 0:03:23.752 ********* 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:45:36 +0000 (0:00:00.058) 0:03:23.811 ********* 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:45:37 +0000 (0:00:00.074) 0:03:23.886 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:45:37 +0000 (0:00:00.145) 0:03:24.032 ********* 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:45:37 +0000 (0:00:00.690) 0:03:24.722 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:45:38 +0000 (0:00:00.195) 0:03:24.918 ********* 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:45:38 +0000 (0:00:00.118) 0:03:25.036 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:45:38 +0000 (0:00:00.152) 0:03:25.189 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:45:39 +0000 (0:00:00.751) 0:03:25.941 ********* 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:45:39 +0000 (0:00:00.108) 0:03:26.049 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:45:39 +0000 (0:00:00.468) 0:03:26.518 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:45:39 +0000 (0:00:00.167) 0:03:26.685 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:45:39 +0000 (0:00:00.144) 0:03:26.830 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:40 +0000 (0:00:00.445) 0:03:27.275 ********* 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 16:45:40 +0000 (0:00:00.251) 0:03:27.527 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:45:40 +0000 (0:00:00.123) 0:03:27.650 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:40 +0000 (0:00:00.113) 0:03:27.764 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:41 +0000 (0:00:00.193) 0:03:27.957 ********* 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 16:45:41 +0000 (0:00:00.234) 0:03:28.191 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003691", "end": "2022-08-05 16:45:41.685064", "rc": 0, "start": "2022-08-05 16:45:41.681373" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:45:41 +0000 (0:00:00.452) 0:03:28.644 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:45:41 +0000 (0:00:00.207) 0:03:28.851 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:45:43 +0000 (0:00:01.556) 0:03:30.407 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 16:45:45 +0000 (0:00:01.828) 0:03:32.236 ********* skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:45:45 +0000 (0:00:00.553) 0:03:32.789 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 16:45:46 +0000 (0:00:00.614) 0:03:33.404 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.008881", "end": "2022-08-05 16:45:47.157031", "rc": 0, "start": "2022-08-05 16:45:47.148150" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:47 +0000 (0:00:00.951) 0:03:34.356 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 16:45:47 +0000 (0:00:00.429) 0:03:34.785 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 16:45:48 +0000 (0:00:00.568) 0:03:35.354 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 16:45:48 +0000 (0:00:00.446) 0:03:35.800 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=124 changed=10 unreachable=0 failed=0 skipped=85 rescued=0 ignored=0 Friday 05 August 2022 16:45:49 +0000 (0:00:00.921) 0:03:36.721 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 20.63s linux-system-roles.network : Enable and start NetworkManager ----------- 12.79s Install iproute -------------------------------------------------------- 11.59s Gathering Facts -------------------------------------------------------- 11.33s linux-system-roles.network : Configure networking connection profiles --- 9.37s linux-system-roles.network : Check which services are running ----------- 8.46s Get stat for interface veth0 -------------------------------------------- 8.14s Gather current interface info ------------------------------------------- 7.91s Create veth interface veth0 --------------------------------------------- 7.73s linux-system-roles.network : Re-test connectivity ----------------------- 5.44s Gather current interface info ------------------------------------------- 3.85s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.64s include_tasks ----------------------------------------------------------- 2.71s Show current_interfaces ------------------------------------------------- 2.67s Gathering Facts --------------------------------------------------------- 2.53s linux-system-roles.network : Install packages --------------------------- 2.49s linux-system-roles.network : Print network provider --------------------- 2.37s Set up veth as managed by NetworkManager -------------------------------- 2.37s Set network provider to 'nm' -------------------------------------------- 2.27s linux-system-roles.network : Show stderr messages for the network_connections --- 2.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. ---^---^---^---^---^---