# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ipv6.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 20:01:46 +0000 (0:00:00.160) 0:00:00.160 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:01:58 +0000 (0:00:11.762) 0:00:11.922 ********* 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 20:01:59 +0000 (0:00:00.977) 0:00:12.899 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:00 +0000 (0:00:00.476) 0:00:13.376 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 20:02:00 +0000 (0:00:00.571) 0:00:13.948 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 20:02:01 +0000 (0:00:00.433) 0:00:14.381 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 20:02:01 +0000 (0:00:00.755) 0:00:15.137 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 20:02:02 +0000 (0:00:00.933) 0:00:16.070 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 20:02:04 +0000 (0:00:01.379) 0:00:17.449 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 20:02:05 +0000 (0:00:01.278) 0:00:18.728 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:09 +0000 (0:00:03.743) 0:00:22.472 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:11 +0000 (0:00:02.022) 0:00:24.494 ********* 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 20:02:12 +0000 (0:00:01.123) 0:00:25.618 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004895", "end": "2022-08-05 20:02:15.117121", "rc": 0, "start": "2022-08-05 20:02:15.112226" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 20:02:15 +0000 (0:00:03.092) 0:00:28.710 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 20:02:16 +0000 (0:00:01.305) 0:00:30.016 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:17 +0000 (0:00:01.034) 0:00:31.050 ********* 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 20:02:19 +0000 (0:00:01.484) 0:00:32.534 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 20:02:19 +0000 (0:00:00.555) 0:00:33.089 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:20 +0000 (0:00:00.915) 0:00:34.005 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:02:22 +0000 (0:00:01.861) 0:00:35.867 ********* 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 20:02:23 +0000 (0:00:00.771) 0:00:36.639 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.006061", "end": "2022-08-05 20:02:27.299761", "rc": 0, "start": "2022-08-05 20:02:26.293700" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 20:02:27 +0000 (0:00:04.693) 0:00:41.332 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 20:02:29 +0000 (0:00:01.567) 0:00:42.900 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 20:02:30 +0000 (0:00:01.438) 0:00:44.338 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 20:02:39 +0000 (0:00:08.987) 0:00:53.326 ********* 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.068700", "end": "2022-08-05 20:02:41.204513", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 20:02:41.135813" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.005302", "end": "2022-08-05 20:02:43.626169", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 20:02:43.620867" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.012263", "end": "2022-08-05 20:02:45.920013", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 20:02:45.907750" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 20:02:46 +0000 (0:00:06.352) 0:00:59.678 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.169605", "end": "2022-08-05 20:02:47.659407", "rc": 0, "start": "2022-08-05 20:02:47.489802" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 20:02:48 +0000 (0:00:01.840) 0:01:01.518 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 20:02:49 +0000 (0:00:01.078) 0:01:02.597 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 20:02:50 +0000 (0:00:01.155) 0:01:03.753 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 20:02:51 +0000 (0:00:00.737) 0:01:04.490 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 20:02:51 +0000 (0:00:00.662) 0:01:05.153 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set up gateway ip on veth peer] ****************************************** Friday 05 August 2022 20:02:52 +0000 (0:00:00.644) 0:01:05.798 ********* changed: [sut] => { "changed": true, "cmd": "ip netns add ns1\nip link set peerveth0 netns ns1\nip netns exec ns1 ip -6 addr add 2001:db8::1/32 dev peerveth0\nip netns exec ns1 ip link set peerveth0 up\n", "delta": "0:00:00.035410", "end": "2022-08-05 20:02:54.502256", "rc": 0, "start": "2022-08-05 20:02:54.466846" } TASK [TEST: I can configure an interface with static ipv6 config] ************** Friday 05 August 2022 20:02:54 +0000 (0:00:02.450) 0:01:08.248 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 20:02:56 +0000 (0:00:01.518) 0:01:09.766 ********* 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 20:02:58 +0000 (0:00:01.712) 0:01:11.479 ********* 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 20:03:02 +0000 (0:00:04.827) 0:01:16.306 ********* 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 20:03:09 +0000 (0:00:06.076) 0:01:22.383 ********* 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 20:03:25 +0000 (0:00:16.750) 0:01:39.134 ********* 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 20:03:27 +0000 (0:00:01.525) 0:01:40.659 ********* 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 20:03:28 +0000 (0:00:01.259) 0:01:41.919 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 20:03:29 +0000 (0:00:01.240) 0:01:43.159 ********* 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 20:03:31 +0000 (0:00:01.942) 0:01:45.101 ********* 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 20:03:35 +0000 (0:00:03.520) 0:01:48.622 ********* 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 20:03:36 +0000 (0:00:01.444) 0:01:50.066 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 20:03:39 +0000 (0:00:03.006) 0:01:53.073 ********* 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 20:03:53 +0000 (0:00:14.149) 0:02:07.222 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 20:03:56 +0000 (0:00:02.633) 0:02:09.855 ********* 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 20:03:58 +0000 (0:00:01.982) 0:02:11.838 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 20:04:00 +0000 (0:00:02.283) 0:02:14.122 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "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, f4ef60c7-1cfc-49d7-b1e1-eff268333962 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 20:04:13 +0000 (0:00:13.012) 0:02:27.134 ********* 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 20:04:15 +0000 (0:00:01.452) 0:02:28.587 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 20:04:17 +0000 (0:00:02.181) 0:02:30.769 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "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, f4ef60c7-1cfc-49d7-b1e1-eff268333962\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, f4ef60c7-1cfc-49d7-b1e1-eff268333962 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 20:04:19 +0000 (0:00:01.845) 0:02:32.614 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 20:04:22 +0000 (0:00:03.030) 0:02:35.644 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:04:27 +0000 (0:00:04.923) 0:02:40.568 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:04:28 +0000 (0:00:01.710) 0:02:42.278 ********* 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 20:04:31 +0000 (0:00:02.330) 0:02:44.609 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659729761.1971326, "block_size": 4096, "blocks": 0, "ctime": 1659729761.1971326, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22487, "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": 1659729761.1971326, "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 20:04:41 +0000 (0:00:10.571) 0:02:55.181 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:04:43 +0000 (0:00:01.740) 0:02:56.922 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:04:46 +0000 (0:00:03.368) 0:03:00.290 ********* 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 20:04:48 +0000 (0:00:01.834) 0:03:02.124 ********* 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 20:04:50 +0000 (0:00:02.172) 0:03:04.297 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 20:04:52 +0000 (0:00:01.992) 0:03:06.289 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 20:04:54 +0000 (0:00:01.607) 0:03:07.897 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.027158", "end": "2022-08-05 20:04:56.450925", "rc": 0, "start": "2022-08-05 20:04:56.423767" } 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 20:04:57 +0000 (0:00:03.284) 0:03:11.181 ********* 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 20:04:59 +0000 (0:00:01.627) 0:03:12.808 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 20:05:00 +0000 (0:00:01.073) 0:03:13.881 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 20:05:01 +0000 (0:00:01.249) 0:03:15.131 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 20:05:04 +0000 (0:00:02.314) 0:03:17.445 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ip address information] ********************************************** Friday 05 August 2022 20:05:06 +0000 (0:00:02.879) 0:03:20.324 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "addr", "show", "veth0" ], "delta": "0:00:00.005683", "end": "2022-08-05 20:05:07.796835", "rc": 0, "start": "2022-08-05 20:05:07.791152" } STDOUT: 4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 76:5f:1f:53:ee:ae brd ff:ff:ff:ff:ff:ff link-netns ns1 inet6 2001:db8::2/32 scope global noprefixroute valid_lft forever preferred_lft forever inet6 2001:db8::3/32 scope global noprefixroute valid_lft forever preferred_lft forever inet6 2001:db8::4/32 scope global noprefixroute valid_lft forever preferred_lft forever inet6 fe80::65a:9dff:6047:2a7d/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Show ip_addr] ************************************************************ Friday 05 August 2022 20:05:07 +0000 (0:00:00.987) 0:03:21.311 ********* ok: [sut] => { "ip_addr.stdout": "4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000\n link/ether 76:5f:1f:53:ee:ae brd ff:ff:ff:ff:ff:ff link-netns ns1\n inet6 2001:db8::2/32 scope global noprefixroute \n valid_lft forever preferred_lft forever\n inet6 2001:db8::3/32 scope global noprefixroute \n valid_lft forever preferred_lft forever\n inet6 2001:db8::4/32 scope global noprefixroute \n valid_lft forever preferred_lft forever\n inet6 fe80::65a:9dff:6047:2a7d/64 scope link noprefixroute \n valid_lft forever preferred_lft forever" } TASK [Assert ipv6 addresses are correctly set] ********************************* Friday 05 August 2022 20:05:08 +0000 (0:00:00.278) 0:03:21.590 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 20:05:08 +0000 (0:00:00.343) 0:03:21.934 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.005335", "end": "2022-08-05 20:05:09.016362", "rc": 0, "start": "2022-08-05 20:05:09.011027" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/32 dev veth0 proto kernel metric 101 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 [Show ipv6_route] ********************************************************* Friday 05 August 2022 20:05:09 +0000 (0:00:00.611) 0:03:22.545 ********* ok: [sut] => { "ipv6_route.stdout": "::1 dev lo proto kernel metric 256 pref medium\n2001:db8::/32 dev veth0 proto kernel metric 101 pref medium\nfe80::/64 dev eth0 proto kernel metric 1024 pref medium\nfe80::/64 dev veth0 proto kernel metric 1024 pref medium\ndefault via 2001:db8::1 dev veth0 proto static metric 101 pref medium" } TASK [Assert default ipv6 route is set] **************************************** Friday 05 August 2022 20:05:09 +0000 (0:00:00.299) 0:03:22.844 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test gateway can be pinged] ********************************************** Friday 05 August 2022 20:05:09 +0000 (0:00:00.257) 0:03:23.102 ********* changed: [sut] => { "changed": true, "cmd": [ "ping6", "-c1", "2001:db8::1" ], "delta": "0:00:00.006261", "end": "2022-08-05 20:05:10.323219", "rc": 0, "start": "2022-08-05 20:05:10.316958" } STDOUT: PING 2001:db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=0.127 ms --- 2001:db8::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.127/0.127/0.127/0.000 ms TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 20:05:10 +0000 (0:00:00.759) 0:03:23.861 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 20:05:11 +0000 (0:00:00.648) 0:03:24.510 ********* 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 20:05:11 +0000 (0:00:00.235) 0:03:24.746 ********* 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 20:05:12 +0000 (0:00:00.783) 0:03:25.529 ********* 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 20:05:14 +0000 (0:00:02.113) 0:03:27.643 ********* 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 20:05:15 +0000 (0:00:01.159) 0:03:28.802 ********* 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 20:05:15 +0000 (0:00:00.225) 0:03:29.028 ********* 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 20:05:15 +0000 (0:00:00.118) 0:03:29.147 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 20:05:15 +0000 (0:00:00.125) 0:03:29.273 ********* 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 20:05:16 +0000 (0:00:00.178) 0:03:29.452 ********* 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 20:05:16 +0000 (0:00:00.107) 0:03:29.559 ********* 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 20:05:16 +0000 (0:00:00.277) 0:03:29.836 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 20:05:16 +0000 (0:00:00.313) 0:03:30.150 ********* 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 20:05:17 +0000 (0:00:00.758) 0:03:30.909 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 20:05:17 +0000 (0:00:00.104) 0:03:31.014 ********* 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 20:05:17 +0000 (0:00:00.109) 0:03:31.124 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 20:05:17 +0000 (0:00:00.121) 0:03:31.245 ********* 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 20:05:18 +0000 (0:00:00.650) 0:03:31.896 ********* 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 20:05:18 +0000 (0:00:00.114) 0:03:32.010 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 20:05:18 +0000 (0:00:00.090) 0:03:32.101 ********* 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 20:05:18 +0000 (0:00:00.100) 0:03:32.202 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 20:05:18 +0000 (0:00:00.150) 0:03:32.352 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:05:19 +0000 (0:00:00.393) 0:03:32.745 ********* 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 20:05:19 +0000 (0:00:00.207) 0:03:32.953 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 20:05:19 +0000 (0:00:00.127) 0:03:33.080 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:05:19 +0000 (0:00:00.095) 0:03:33.175 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:05:19 +0000 (0:00:00.123) 0:03:33.299 ********* 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 20:05:20 +0000 (0:00:00.112) 0:03:33.411 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.006170", "end": "2022-08-05 20:05:21.313495", "rc": 0, "start": "2022-08-05 20:05:20.307325" } STDOUT: eth0 lo veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 20:05:21 +0000 (0:00:01.381) 0:03:34.792 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 20:05:21 +0000 (0:00:00.101) 0:03:34.894 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 20:05:21 +0000 (0:00:00.155) 0:03:35.049 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 20:05:22 +0000 (0:00:01.129) 0:03:36.189 ********* 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 20:05:22 +0000 (0:00:00.123) 0:03:36.313 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 20:05:23 +0000 (0:00:00.103) 0:03:36.417 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.013033", "end": "2022-08-05 20:05:23.336005", "rc": 0, "start": "2022-08-05 20:05:23.322972" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 20:05:23 +0000 (0:00:00.364) 0:03:36.781 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 20:05:23 +0000 (0:00:00.137) 0:03:36.918 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 20:05:23 +0000 (0:00:00.128) 0:03:37.047 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 20:05:23 +0000 (0:00:00.061) 0:03:37.108 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Clean up namespace] ****************************************************** Friday 05 August 2022 20:05:23 +0000 (0:00:00.103) 0:03:37.212 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "netns", "delete", "ns1" ], "delta": "0:00:00.007785", "end": "2022-08-05 20:05:24.106601", "rc": 0, "start": "2022-08-05 20:05:24.098816" } PLAY RECAP ********************************************************************* sut : ok=70 changed=10 unreachable=0 failed=0 skipped=45 rescued=0 ignored=0 Friday 05 August 2022 20:05:24 +0000 (0:00:00.345) 0:03:37.557 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 16.77s linux-system-roles.network : Enable and start NetworkManager ----------- 14.15s linux-system-roles.network : Configure networking connection profiles -- 13.01s Gathering Facts -------------------------------------------------------- 11.76s Get stat for interface veth0 ------------------------------------------- 10.57s Install iproute --------------------------------------------------------- 8.99s Create veth interface veth0 --------------------------------------------- 6.35s linux-system-roles.network : Check which services are running ----------- 6.08s linux-system-roles.network : Re-test connectivity ----------------------- 4.92s linux-system-roles.network : Ensure ansible_facts used by role are present --- 4.83s Gather current interface info ------------------------------------------- 4.69s Gathering Facts --------------------------------------------------------- 3.74s linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 3.52s include_tasks ----------------------------------------------------------- 3.37s Get NM profile info ----------------------------------------------------- 3.28s Gather current interface info ------------------------------------------- 3.16s linux-system-roles.network : Show debug messages for the network_state --- 3.03s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 3.01s assert that ansible managed comment in 'veth0' is present --------------- 2.88s linux-system-roles.network : Enable and start wpa_supplicant ------------ 2.70s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---