# 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 18:26:41 +0000 (0:00:00.411) 0:00:00.411 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:26:47 +0000 (0:00:06.500) 0:00:06.912 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 18:26:48 +0000 (0:00:00.963) 0:00:07.876 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:26:49 +0000 (0:00:00.386) 0:00:08.262 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 18:26:50 +0000 (0:00:01.423) 0:00:09.686 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.319953", "end": "2022-08-05 18:26:56.446039", "rc": 0, "start": "2022-08-05 18:26:54.126086" } STDOUT: Last metadata expiration check: 0:01:04 ago on Fri Aug 5 18:25:50 2022. epel-release-latest-8.noarch.rpm 818 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 18:26:56 +0000 (0:00:06.218) 0:00:15.905 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 18:26:58 +0000 (0:00:01.171) 0:00:17.076 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:01.552883", "end": "2022-08-05 18:27:01.649492", "rc": 0, "start": "2022-08-05 18:27:00.096609" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 18:27:01 +0000 (0:00:03.868) 0:00:20.944 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 18:27:03 +0000 (0:00:01.151) 0:00:22.096 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 18:27:05 +0000 (0:00:01.915) 0:00:24.012 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:27:08 +0000 (0:00:03.084) 0:00:27.096 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:27:09 +0000 (0:00:01.266) 0:00:28.362 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:27:11 +0000 (0:00:01.806) 0:00:30.168 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003963", "end": "2022-08-05 18:27:13.134295", "rc": 0, "start": "2022-08-05 18:27:13.130332" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:27:13 +0000 (0:00:02.349) 0:00:32.518 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:27:15 +0000 (0:00:01.945) 0:00:34.463 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:27:17 +0000 (0:00:02.242) 0:00:36.706 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 18:27:19 +0000 (0:00:02.193) 0:00:38.899 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 18:27:20 +0000 (0:00:00.997) 0:00:39.897 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:27:21 +0000 (0:00:00.807) 0:00:40.704 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:27:23 +0000 (0:00:01.325) 0:00:42.029 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:27:24 +0000 (0:00:01.733) 0:00:43.763 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004078", "end": "2022-08-05 18:27:26.269982", "rc": 0, "start": "2022-08-05 18:27:26.265904" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:27:26 +0000 (0:00:02.154) 0:00:45.917 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:27:28 +0000 (0:00:01.951) 0:00:47.869 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 18:27:30 +0000 (0:00:01.202) 0:00:49.072 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 18:27:44 +0000 (0:00:14.328) 0:01:03.400 ********* 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.050793", "end": "2022-08-05 18:27:46.853548", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 18:27:46.802755" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.010188", "end": "2022-08-05 18:27:48.952553", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 18:27:48.942365" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.009503", "end": "2022-08-05 18:27:50.585913", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 18:27:50.576410" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 18:27:51 +0000 (0:00:07.209) 0:01:10.609 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.136873", "end": "2022-08-05 18:27:54.019930", "rc": 0, "start": "2022-08-05 18:27:53.883057" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 18:27:54 +0000 (0:00:03.102) 0:01:13.712 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 18:27:55 +0000 (0:00:01.122) 0:01:14.834 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 18:27:56 +0000 (0:00:00.688) 0:01:15.612 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 18:27:57 +0000 (0:00:00.754) 0:01:16.367 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 18:27:57 +0000 (0:00:00.594) 0:01:16.961 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set up gateway ip on veth peer] ****************************************** Friday 05 August 2022 18:27:58 +0000 (0:00:00.712) 0:01:17.673 ********* 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.050472", "end": "2022-08-05 18:27:59.811050", "rc": 0, "start": "2022-08-05 18:27:59.760578" } TASK [TEST: I can configure an interface with static ipv6 config] ************** Friday 05 August 2022 18:28:00 +0000 (0:00:01.669) 0:01:19.343 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:28:02 +0000 (0:00:02.269) 0:01:21.612 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 18:28:04 +0000 (0:00:01.402) 0:01:23.015 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 18:28:06 +0000 (0:00:02.711) 0:01:25.727 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 18:28:20 +0000 (0:00:13.464) 0:01:39.216 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:28:43 +0000 (0:00:23.355) 0:02:02.571 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:28:46 +0000 (0:00:03.354) 0:02:05.925 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:28:48 +0000 (0:00:01.857) 0:02:07.783 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:28:51 +0000 (0:00:02.556) 0:02:10.339 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:28:54 +0000 (0:00:02.661) 0:02:13.001 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:28:56 +0000 (0:00:02.530) 0:02:15.531 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:28:57 +0000 (0:00:01.169) 0:02:16.701 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:28:59 +0000 (0:00:02.103) 0:02:18.805 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 18:29:08 +0000 (0:00:09.124) 0:02:27.930 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:29:10 +0000 (0:00:01.881) 0:02:29.811 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 18:29:11 +0000 (0:00:00.597) 0:02:30.409 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:29:12 +0000 (0:00:01.384) 0:02:31.793 ********* 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, 46bf2447-1f63-4139-9acd-6d536dd91df7 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 18:29:21 +0000 (0:00:08.976) 0:02:40.770 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:29:22 +0000 (0:00:00.875) 0:02:41.646 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:29:25 +0000 (0:00:02.659) 0:02:44.305 ********* 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, 46bf2447-1f63-4139-9acd-6d536dd91df7\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 46bf2447-1f63-4139-9acd-6d536dd91df7 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 18:29:26 +0000 (0:00:01.131) 0:02:45.456 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:29:27 +0000 (0:00:00.971) 0:02:46.428 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:29:33 +0000 (0:00:06.103) 0:02:52.531 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:29:35 +0000 (0:00:01.942) 0:02:54.474 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 05 August 2022 18:29:36 +0000 (0:00:01.328) 0:02:55.803 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659724066.851834, "block_size": 4096, "blocks": 0, "ctime": 1659724066.851834, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1659724066.851834, "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 18:29:40 +0000 (0:00:03.805) 0:02:59.608 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:29:41 +0000 (0:00:00.940) 0:03:00.549 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:29:43 +0000 (0:00:01.511) 0:03:02.060 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 18:29:45 +0000 (0:00:02.083) 0:03:04.143 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 18:29:46 +0000 (0:00:01.349) 0:03:05.493 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659724159.303107, "block_size": 4096, "blocks": 8, "ctime": 1659724159.256108, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798013, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659724159.256108, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 326, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 18:29:47 +0000 (0:00:01.422) 0:03:06.916 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 18:29:50 +0000 (0:00:02.083) 0:03:08.999 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.025321", "end": "2022-08-05 18:29:52.399595", "rc": 0, "start": "2022-08-05 18:29:52.374274" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 18:29:53 +0000 (0:00:03.285) 0:03:12.285 ********* 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 18:29:54 +0000 (0:00:01.440) 0:03:13.725 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 18:29:55 +0000 (0:00:01.063) 0:03:14.789 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 18:29:57 +0000 (0:00:01.266) 0:03:16.056 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 18:29:58 +0000 (0:00:01.111) 0:03:17.168 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ip address information] ********************************************** Friday 05 August 2022 18:29:59 +0000 (0:00:01.209) 0:03:18.377 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "addr", "show", "veth0" ], "delta": "0:00:00.004784", "end": "2022-08-05 18:30:00.757181", "rc": 0, "start": "2022-08-05 18:30:00.752397" } STDOUT: 4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 3e:91:31:ea:01:36 brd ff:ff:ff:ff:ff:ff link-netns ns1 inet6 2001:db8::4/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::2/32 scope global noprefixroute valid_lft forever preferred_lft forever inet6 fe80::1e09:77a7:3b9b:91d9/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Show ip_addr] ************************************************************ Friday 05 August 2022 18:30:02 +0000 (0:00:02.830) 0:03:21.208 ********* ok: [sut] => { "ip_addr.stdout": "4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000\n link/ether 3e:91:31:ea:01:36 brd ff:ff:ff:ff:ff:ff link-netns ns1\n inet6 2001:db8::4/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::2/32 scope global noprefixroute \n valid_lft forever preferred_lft forever\n inet6 fe80::1e09:77a7:3b9b:91d9/64 scope link noprefixroute \n valid_lft forever preferred_lft forever" } TASK [Assert ipv6 addresses are correctly set] ********************************* Friday 05 August 2022 18:30:04 +0000 (0:00:02.125) 0:03:23.333 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 18:30:05 +0000 (0:00:01.504) 0:03:24.837 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.004191", "end": "2022-08-05 18:30:06.959965", "rc": 0, "start": "2022-08-05 18:30:06.955774" } 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 18:30:07 +0000 (0:00:01.428) 0:03:26.265 ********* 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 18:30:07 +0000 (0:00:00.247) 0:03:26.513 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test gateway can be pinged] ********************************************** Friday 05 August 2022 18:30:07 +0000 (0:00:00.334) 0:03:26.847 ********* changed: [sut] => { "changed": true, "cmd": [ "ping6", "-c1", "2001:db8::1" ], "delta": "0:00:00.005813", "end": "2022-08-05 18:30:08.224024", "rc": 0, "start": "2022-08-05 18:30:08.218211" } STDOUT: PING 2001:db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=0.075 ms --- 2001:db8::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.075/0.075/0.075/0.000 ms TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 18:30:08 +0000 (0:00:00.494) 0:03:27.341 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 18:30:08 +0000 (0:00:00.096) 0:03:27.438 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 18:30:08 +0000 (0:00:00.165) 0:03:27.603 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 18:30:09 +0000 (0:00:00.688) 0:03:28.292 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 18:30:11 +0000 (0:00:02.133) 0:03:30.426 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 18:30:13 +0000 (0:00:01.886) 0:03:32.313 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 18:30:13 +0000 (0:00:00.453) 0:03:32.766 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 18:30:13 +0000 (0:00:00.107) 0:03:32.874 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 18:30:14 +0000 (0:00:00.194) 0:03:33.068 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 18:30:14 +0000 (0:00:00.314) 0:03:33.383 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 18:30:14 +0000 (0:00:00.303) 0:03:33.687 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 18:30:14 +0000 (0:00:00.227) 0:03:33.914 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 18:30:15 +0000 (0:00:00.209) 0:03:34.123 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 18:30:15 +0000 (0:00:00.719) 0:03:34.842 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 18:30:16 +0000 (0:00:00.207) 0:03:35.050 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 18:30:16 +0000 (0:00:00.087) 0:03:35.137 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 18:30:16 +0000 (0:00:00.187) 0:03:35.325 ********* 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 18:30:17 +0000 (0:00:00.999) 0:03:36.324 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 18:30:17 +0000 (0:00:00.191) 0:03:36.516 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 18:30:17 +0000 (0:00:00.265) 0:03:36.781 ********* 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 18:30:18 +0000 (0:00:00.210) 0:03:36.992 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 18:30:18 +0000 (0:00:00.346) 0:03:37.338 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:30:18 +0000 (0:00:00.436) 0:03:37.775 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 18:30:18 +0000 (0:00:00.135) 0:03:37.910 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 18:30:19 +0000 (0:00:00.158) 0:03:38.069 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:30:19 +0000 (0:00:00.196) 0:03:38.266 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 18:30:19 +0000 (0:00:00.282) 0:03:38.548 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 18:30:19 +0000 (0:00:00.271) 0:03:38.820 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004093", "end": "2022-08-05 18:30:20.252496", "rc": 0, "start": "2022-08-05 18:30:20.248403" } STDOUT: eth0 lo veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 18:30:20 +0000 (0:00:00.523) 0:03:39.343 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 18:30:20 +0000 (0:00:00.191) 0:03:39.535 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 18:30:20 +0000 (0:00:00.174) 0:03:39.710 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 18:30:22 +0000 (0:00:02.062) 0:03:41.772 ********* 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 18:30:22 +0000 (0:00:00.170) 0:03:41.943 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 18:30:23 +0000 (0:00:00.083) 0:03:42.026 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.015006", "end": "2022-08-05 18:30:23.325293", "rc": 0, "start": "2022-08-05 18:30:23.310287" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 18:30:23 +0000 (0:00:00.354) 0:03:42.381 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 18:30:23 +0000 (0:00:00.080) 0:03:42.461 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 18:30:23 +0000 (0:00:00.061) 0:03:42.522 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 18:30:23 +0000 (0:00:00.060) 0:03:42.583 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Clean up namespace] ****************************************************** Friday 05 August 2022 18:30:23 +0000 (0:00:00.058) 0:03:42.642 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "netns", "delete", "ns1" ], "delta": "0:00:00.009056", "end": "2022-08-05 18:30:23.887140", "rc": 0, "start": "2022-08-05 18:30:23.878084" } PLAY RECAP ********************************************************************* sut : ok=73 changed=12 unreachable=0 failed=0 skipped=42 rescued=0 ignored=0 Friday 05 August 2022 18:30:23 +0000 (0:00:00.336) 0:03:42.979 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 23.36s Install iproute -------------------------------------------------------- 14.33s linux-system-roles.network : Check which services are running ---------- 13.49s linux-system-roles.network : Enable and start NetworkManager ------------ 9.12s linux-system-roles.network : Configure networking connection profiles --- 8.98s Create veth interface veth0 --------------------------------------------- 7.21s Gathering Facts --------------------------------------------------------- 6.50s Create EPEL 8 ----------------------------------------------------------- 6.22s linux-system-roles.network : Re-test connectivity ----------------------- 6.10s Enable EPEL 8 ----------------------------------------------------------- 3.87s Get stat for interface veth0 -------------------------------------------- 3.81s linux-system-roles.network : Print network provider --------------------- 3.35s Get NM profile info ----------------------------------------------------- 3.29s Set up veth as managed by NetworkManager -------------------------------- 3.10s Gathering Facts --------------------------------------------------------- 3.08s Get ip address information ---------------------------------------------- 2.83s linux-system-roles.network : Ensure ansible_facts used by role are present --- 2.71s linux-system-roles.network : Show stderr messages for the network_connections --- 2.68s linux-system-roles.network : Install packages --------------------------- 2.66s linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8 --- 2.56s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---