# 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] ********************************************************* Monday 30 May 2022 23:14:20 +0000 (0:00:00.028) 0:00:00.028 ************ ok: [sut] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.858) 0:00:00.886 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.032) 0:00:00.919 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.050) 0:00:00.969 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.049) 0:00:01.018 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.028) 0:00:01.047 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.028) 0:00:01.076 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.027) 0:00:01.104 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.033) 0:00:01.137 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:14:21 +0000 (0:00:00.033) 0:00:01.171 ************ ok: [sut] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.548) 0:00:01.720 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:21 +0000 (0:00:00.058) 0:00:01.778 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Monday 30 May 2022 23:14:21 +0000 (0:00:00.037) 0:00:01.815 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003740", "end": "2022-05-30 23:14:21.683687", "rc": 0, "start": "2022-05-30 23:14:21.679947" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.341) 0:00:02.156 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 30 May 2022 23:14:22 +0000 (0:00:00.030) 0:00:02.187 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.029) 0:00:02.216 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.068) 0:00:02.285 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 30 May 2022 23:14:22 +0000 (0:00:00.030) 0:00:02.315 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.029) 0:00:02.345 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.038) 0:00:02.383 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Monday 30 May 2022 23:14:22 +0000 (0:00:00.039) 0:00:02.422 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003615", "end": "2022-05-30 23:14:22.197370", "rc": 0, "start": "2022-05-30 23:14:22.193755" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 30 May 2022 23:14:22 +0000 (0:00:00.248) 0:00:02.671 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 30 May 2022 23:14:22 +0000 (0:00:00.030) 0:00:02.701 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 30 May 2022 23:14:22 +0000 (0:00:00.031) 0:00:02.732 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 30 May 2022 23:14:25 +0000 (0:00:03.049) 0:00:05.782 ************ 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.089597", "end": "2022-05-30 23:14:25.650200", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-05-30 23:14:25.560603" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.004264", "end": "2022-05-30 23:14:25.909691", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-05-30 23:14:25.905427" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.006905", "end": "2022-05-30 23:14:26.147248", "item": "ip link set veth0 up", "rc": 0, "start": "2022-05-30 23:14:26.140343" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 30 May 2022 23:14:26 +0000 (0:00:00.841) 0:00:06.624 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.126216", "end": "2022-05-30 23:14:26.524083", "rc": 0, "start": "2022-05-30 23:14:26.397867" } TASK [Delete veth interface veth0] ********************************************* Monday 30 May 2022 23:14:27 +0000 (0:00:00.376) 0:00:07.000 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.041) 0:00:07.041 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.031) 0:00:07.072 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.028) 0:00:07.101 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.029) 0:00:07.131 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.028) 0:00:07.159 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.062) 0:00:07.222 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.036) 0:00:07.259 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952465.6412263, "block_size": 4096, "blocks": 0, "ctime": 1653952465.6412263, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24697, "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": 1653952465.6412263, "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] ********************************** Monday 30 May 2022 23:14:27 +0000 (0:00:00.388) 0:00:07.647 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Monday 30 May 2022 23:14:27 +0000 (0:00:00.067) 0:00:07.715 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:14:27 +0000 (0:00:00.030) 0:00:07.745 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:14:28 +0000 (0:00:00.144) 0:00:07.890 ************ 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] *********** Monday 30 May 2022 23:14:28 +0000 (0:00:00.407) 0:00:08.297 ************ 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] ********* Monday 30 May 2022 23:14:30 +0000 (0:00:02.065) 0:00:10.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 : Print network provider] ********************* Monday 30 May 2022 23:14:31 +0000 (0:00:01.078) 0:00:11.440 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:14:31 +0000 (0:00:00.084) 0:00:11.525 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:14:31 +0000 (0:00:00.128) 0:00:11.654 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:14:31 +0000 (0:00:00.119) 0:00:11.774 ************ 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] ************ Monday 30 May 2022 23:14:32 +0000 (0:00:00.793) 0:00:12.567 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:14:32 +0000 (0:00:00.097) 0:00:12.665 ************ 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] *** Monday 30 May 2022 23:14:32 +0000 (0:00:00.075) 0:00:12.740 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:14:32 +0000 (0:00:00.076) 0:00:12.816 ************ 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, e7ae8111-95ee-47d7-a775-0b570e23e55f [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:14:33 +0000 (0:00:01.025) 0:00:13.842 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:14:34 +0000 (0:00:00.078) 0:00:13.921 ************ 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, e7ae8111-95ee-47d7-a775-0b570e23e55f\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, e7ae8111-95ee-47d7-a775-0b570e23e55f (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:14:34 +0000 (0:00:00.080) 0:00:14.001 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:34 +0000 (0:00:00.479) 0:00:14.481 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:34 +0000 (0:00:00.155) 0:00:14.636 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Monday 30 May 2022 23:14:34 +0000 (0:00:00.158) 0:00:14.795 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952465.6412263, "block_size": 4096, "blocks": 0, "ctime": 1653952465.6412263, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24697, "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": 1653952465.6412263, "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] ********************************** Monday 30 May 2022 23:14:35 +0000 (0:00:00.294) 0:00:15.089 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:35 +0000 (0:00:00.074) 0:00:15.164 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:35 +0000 (0:00:00.148) 0:00:15.312 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 30 May 2022 23:14:35 +0000 (0:00:00.137) 0:00:15.449 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Monday 30 May 2022 23:14:35 +0000 (0:00:00.075) 0:00:15.524 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952473.2827582, "block_size": 4096, "blocks": 8, "ctime": 1653952473.2257578, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653952473.2257578, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 379, "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] ******************** Monday 30 May 2022 23:14:35 +0000 (0:00:00.297) 0:00:15.822 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.074) 0:00:15.896 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.216723", "end": "2022-05-30 23:14:35.885516", "rc": 0, "start": "2022-05-30 23:14:35.668793" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 30 May 2022 23:14:36 +0000 (0:00:00.503) 0:00:16.400 ************ 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] ************************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.080) 0:00:16.480 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.076) 0:00:16.556 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.126) 0:00:16.683 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.079) 0:00:16.762 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 30 May 2022 23:14:36 +0000 (0:00:00.074) 0:00:16.837 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003801", "end": "2022-05-30 23:14:36.611758", "rc": 0, "start": "2022-05-30 23:14:36.607957" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp metric 100 default via 203.0.113.1 dev veth0 proto static metric 101 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.198 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] ************************************ Monday 30 May 2022 23:14:37 +0000 (0:00:00.291) 0:00:17.128 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Monday 30 May 2022 23:14:37 +0000 (0:00:00.072) 0:00:17.201 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003888", "end": "2022-05-30 23:14:36.978722", "rc": 0, "start": "2022-05-30 23:14:36.974834" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 100 pref medium fe80::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 proto static metric 101 pref medium TASK [Assert default ipv6 route is present] ************************************ Monday 30 May 2022 23:14:37 +0000 (0:00:00.295) 0:00:17.496 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Monday 30 May 2022 23:14:37 +0000 (0:00:00.076) 0:00:17.573 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:14:37 +0000 (0:00:00.070) 0:00:17.644 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:14:37 +0000 (0:00:00.121) 0:00:17.765 ************ 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] *********** Monday 30 May 2022 23:14:38 +0000 (0:00:00.461) 0:00:18.226 ************ 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] ********* Monday 30 May 2022 23:14:42 +0000 (0:00:04.010) 0:00:22.237 ************ 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] ********************* Monday 30 May 2022 23:14:43 +0000 (0:00:00.827) 0:00:23.064 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:14:43 +0000 (0:00:00.075) 0:00:23.140 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:14:43 +0000 (0:00:00.136) 0:00:23.276 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:14:43 +0000 (0:00:00.076) 0:00:23.353 ************ 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] ************ Monday 30 May 2022 23:14:44 +0000 (0:00:00.562) 0:00:23.915 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:14:44 +0000 (0:00:00.078) 0:00:23.994 ************ 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] *** Monday 30 May 2022 23:14:44 +0000 (0:00:00.066) 0:00:24.061 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:14:44 +0000 (0:00:00.069) 0:00:24.130 ************ 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 : Show stderr messages] *********************** Monday 30 May 2022 23:14:44 +0000 (0:00:00.628) 0:00:24.759 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:14:44 +0000 (0:00:00.085) 0:00:24.844 ************ 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 : Re-test connectivity] *********************** Monday 30 May 2022 23:14:45 +0000 (0:00:00.076) 0:00:24.921 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:45 +0000 (0:00:00.281) 0:00:25.202 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Monday 30 May 2022 23:14:45 +0000 (0:00:00.157) 0:00:25.359 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 30 May 2022 23:14:45 +0000 (0:00:00.071) 0:00:25.431 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Monday 30 May 2022 23:14:45 +0000 (0:00:00.074) 0:00:25.505 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:45 +0000 (0:00:00.176) 0:00:25.682 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Monday 30 May 2022 23:14:45 +0000 (0:00:00.130) 0:00:25.812 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005120", "end": "2022-05-30 23:14:46.594838", "rc": 0, "start": "2022-05-30 23:14:45.589718" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 30 May 2022 23:14:47 +0000 (0:00:01.302) 0:00:27.114 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 30 May 2022 23:14:47 +0000 (0:00:00.077) 0:00:27.192 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 30 May 2022 23:14:47 +0000 (0:00:00.073) 0:00:27.265 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 30 May 2022 23:14:50 +0000 (0:00:02.816) 0:00:30.082 ************ 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] ******************************** Monday 30 May 2022 23:14:50 +0000 (0:00:00.109) 0:00:30.192 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Monday 30 May 2022 23:14:50 +0000 (0:00:00.123) 0:00:30.315 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.011768", "end": "2022-05-30 23:14:50.106073", "rc": 0, "start": "2022-05-30 23:14:50.094305" } TASK [Create dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:50 +0000 (0:00:00.316) 0:00:30.632 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:50 +0000 (0:00:00.079) 0:00:30.711 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 30 May 2022 23:14:50 +0000 (0:00:00.078) 0:00:30.789 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 30 May 2022 23:14:51 +0000 (0:00:00.075) 0:00:30.864 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** Monday 30 May 2022 23:14:51 +0000 (0:00:00.073) 0:00:30.939 ************ ok: [sut] => {} MSG: ################################################## TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:14:51 +0000 (0:00:00.085) 0:00:31.024 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Monday 30 May 2022 23:14:51 +0000 (0:00:00.179) 0:00:31.203 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 30 May 2022 23:14:51 +0000 (0:00:00.078) 0:00:31.282 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Monday 30 May 2022 23:14:51 +0000 (0:00:00.073) 0:00:31.356 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:14:51 +0000 (0:00:00.128) 0:00:31.484 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Monday 30 May 2022 23:14:51 +0000 (0:00:00.120) 0:00:31.604 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003734", "end": "2022-05-30 23:14:51.381544", "rc": 0, "start": "2022-05-30 23:14:51.377810" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 30 May 2022 23:14:52 +0000 (0:00:00.292) 0:00:31.896 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 30 May 2022 23:14:52 +0000 (0:00:00.137) 0:00:32.034 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 30 May 2022 23:14:52 +0000 (0:00:00.085) 0:00:32.120 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 30 May 2022 23:14:55 +0000 (0:00:02.810) 0:00:34.930 ************ 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.016062", "end": "2022-05-30 23:14:54.731385", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-05-30 23:14:54.715323" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.004003", "end": "2022-05-30 23:14:54.981026", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-05-30 23:14:54.977023" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.005944", "end": "2022-05-30 23:14:55.214104", "item": "ip link set veth0 up", "rc": 0, "start": "2022-05-30 23:14:55.208160" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 30 May 2022 23:14:55 +0000 (0:00:00.805) 0:00:35.735 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.027897", "end": "2022-05-30 23:14:55.539126", "rc": 0, "start": "2022-05-30 23:14:55.511229" } TASK [Delete veth interface veth0] ********************************************* Monday 30 May 2022 23:14:56 +0000 (0:00:00.321) 0:00:36.057 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:56 +0000 (0:00:00.073) 0:00:36.130 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 30 May 2022 23:14:56 +0000 (0:00:00.071) 0:00:36.201 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 30 May 2022 23:14:56 +0000 (0:00:00.087) 0:00:36.289 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 30 May 2022 23:14:56 +0000 (0:00:00.105) 0:00:36.394 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:14:56 +0000 (0:00:00.072) 0:00:36.466 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:14:56 +0000 (0:00:00.180) 0:00:36.647 ************ 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] *********** Monday 30 May 2022 23:14:57 +0000 (0:00:00.460) 0:00:37.107 ************ 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] ********* Monday 30 May 2022 23:14:59 +0000 (0:00:02.003) 0:00:39.111 ************ 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] ********************* Monday 30 May 2022 23:15:00 +0000 (0:00:00.839) 0:00:39.950 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:15:00 +0000 (0:00:00.075) 0:00:40.025 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:15:00 +0000 (0:00:00.198) 0:00:40.223 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:15:00 +0000 (0:00:00.081) 0:00:40.304 ************ 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] ************ Monday 30 May 2022 23:15:00 +0000 (0:00:00.524) 0:00:40.829 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:15:01 +0000 (0:00:00.083) 0:00:40.913 ************ 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] *** Monday 30 May 2022 23:15:01 +0000 (0:00:00.075) 0:00:40.989 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:15:01 +0000 (0:00:00.077) 0:00:41.066 ************ 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, 4c2f034a-4745-476b-be41-0c0badc524b2 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:15:01 +0000 (0:00:00.618) 0:00:41.685 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:15:01 +0000 (0:00:00.079) 0:00:41.764 ************ 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, 4c2f034a-4745-476b-be41-0c0badc524b2\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 4c2f034a-4745-476b-be41-0c0badc524b2 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:15:02 +0000 (0:00:00.081) 0:00:41.846 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:02 +0000 (0:00:00.294) 0:00:42.141 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:15:02 +0000 (0:00:00.164) 0:00:42.305 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Monday 30 May 2022 23:15:02 +0000 (0:00:00.187) 0:00:42.493 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952494.7194252, "block_size": 4096, "blocks": 0, "ctime": 1653952494.7194252, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 25283, "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": 1653952494.7194252, "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] ********************************** Monday 30 May 2022 23:15:02 +0000 (0:00:00.306) 0:00:42.799 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:03 +0000 (0:00:00.081) 0:00:42.881 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:15:03 +0000 (0:00:00.162) 0:00:43.044 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 30 May 2022 23:15:03 +0000 (0:00:00.128) 0:00:43.172 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Monday 30 May 2022 23:15:03 +0000 (0:00:00.089) 0:00:43.262 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952501.1239362, "block_size": 4096, "blocks": 8, "ctime": 1653952501.0789359, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653952501.0789359, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 330, "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] ******************** Monday 30 May 2022 23:15:03 +0000 (0:00:00.302) 0:00:43.564 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:15:03 +0000 (0:00:00.077) 0:00:43.642 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.024668", "end": "2022-05-30 23:15:03.442566", "rc": 0, "start": "2022-05-30 23:15:03.417898" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 30 May 2022 23:15:04 +0000 (0:00:00.316) 0:00:43.958 ************ 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] ************************** Monday 30 May 2022 23:15:04 +0000 (0:00:00.081) 0:00:44.040 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 30 May 2022 23:15:04 +0000 (0:00:00.076) 0:00:44.117 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Monday 30 May 2022 23:15:04 +0000 (0:00:00.079) 0:00:44.197 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Monday 30 May 2022 23:15:04 +0000 (0:00:00.080) 0:00:44.277 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 30 May 2022 23:15:04 +0000 (0:00:00.147) 0:00:44.425 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003834", "end": "2022-05-30 23:15:04.204336", "rc": 0, "start": "2022-05-30 23:15:04.200502" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp metric 100 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.198 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] ************************************* Monday 30 May 2022 23:15:04 +0000 (0:00:00.299) 0:00:44.724 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Monday 30 May 2022 23:15:04 +0000 (0:00:00.076) 0:00:44.801 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003867", "end": "2022-05-30 23:15:04.578083", "rc": 0, "start": "2022-05-30 23:15:04.574216" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 100 pref medium fe80::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium TASK [Assert default ipv6 route is absent] ************************************* Monday 30 May 2022 23:15:05 +0000 (0:00:00.291) 0:00:45.092 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Monday 30 May 2022 23:15:05 +0000 (0:00:00.077) 0:00:45.169 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:15:05 +0000 (0:00:00.076) 0:00:45.246 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:15:05 +0000 (0:00:00.128) 0:00:45.375 ************ 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] *********** Monday 30 May 2022 23:15:05 +0000 (0:00:00.468) 0:00:45.844 ************ 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] ********* Monday 30 May 2022 23:15:08 +0000 (0:00:02.020) 0:00:47.864 ************ 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] ********************* Monday 30 May 2022 23:15:08 +0000 (0:00:00.833) 0:00:48.697 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:15:08 +0000 (0:00:00.070) 0:00:48.768 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:15:09 +0000 (0:00:00.122) 0:00:48.891 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:15:09 +0000 (0:00:00.084) 0:00:48.975 ************ 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] ************ Monday 30 May 2022 23:15:09 +0000 (0:00:00.512) 0:00:49.488 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:15:09 +0000 (0:00:00.081) 0:00:49.569 ************ 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] *** Monday 30 May 2022 23:15:09 +0000 (0:00:00.079) 0:00:49.649 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:15:09 +0000 (0:00:00.079) 0:00:49.728 ************ 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 : Show stderr messages] *********************** Monday 30 May 2022 23:15:10 +0000 (0:00:00.691) 0:00:50.420 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:15:10 +0000 (0:00:00.079) 0:00:50.500 ************ 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 : Re-test connectivity] *********************** Monday 30 May 2022 23:15:10 +0000 (0:00:00.073) 0:00:50.573 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:11 +0000 (0:00:00.289) 0:00:50.862 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Monday 30 May 2022 23:15:11 +0000 (0:00:00.174) 0:00:51.037 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 30 May 2022 23:15:11 +0000 (0:00:00.076) 0:00:51.114 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Monday 30 May 2022 23:15:11 +0000 (0:00:00.075) 0:00:51.189 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:15:11 +0000 (0:00:00.138) 0:00:51.327 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Monday 30 May 2022 23:15:11 +0000 (0:00:00.133) 0:00:51.461 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003722", "end": "2022-05-30 23:15:11.242489", "rc": 0, "start": "2022-05-30 23:15:11.238767" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 30 May 2022 23:15:11 +0000 (0:00:00.300) 0:00:51.761 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 30 May 2022 23:15:11 +0000 (0:00:00.075) 0:00:51.837 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 30 May 2022 23:15:12 +0000 (0:00:00.078) 0:00:51.916 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 30 May 2022 23:15:14 +0000 (0:00:02.864) 0:00:54.780 ************ 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] ******************************** Monday 30 May 2022 23:15:15 +0000 (0:00:00.104) 0:00:54.885 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Monday 30 May 2022 23:15:15 +0000 (0:00:00.077) 0:00:54.963 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.012898", "end": "2022-05-30 23:15:14.750655", "rc": 0, "start": "2022-05-30 23:15:14.737757" } TASK [Create dummy interface veth0] ******************************************** Monday 30 May 2022 23:15:15 +0000 (0:00:00.316) 0:00:55.279 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 30 May 2022 23:15:15 +0000 (0:00:00.094) 0:00:55.374 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 30 May 2022 23:15:15 +0000 (0:00:00.078) 0:00:55.452 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 30 May 2022 23:15:15 +0000 (0:00:00.077) 0:00:55.530 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=126 changed=10 unreachable=0 failed=0 skipped=59 rescued=0 ignored=0 Monday 30 May 2022 23:15:15 +0000 (0:00:00.024) 0:00:55.555 ************ =============================================================================== linux-system-roles.network : Check which services are running ----------- 4.01s Install iproute --------------------------------------------------------- 3.05s Install iproute --------------------------------------------------------- 2.86s Install iproute --------------------------------------------------------- 2.82s Install iproute --------------------------------------------------------- 2.81s linux-system-roles.network : Check which services are running ----------- 2.07s linux-system-roles.network : Check which services are running ----------- 2.02s linux-system-roles.network : Check which services are running ----------- 2.00s Gather current interface info ------------------------------------------- 1.30s linux-system-roles.network : Check which packages are installed --------- 1.08s linux-system-roles.network : Configure networking connection profiles --- 1.03s Gathering Facts --------------------------------------------------------- 0.86s Create veth interface veth0 --------------------------------------------- 0.84s linux-system-roles.network : Check which packages are installed --------- 0.84s linux-system-roles.network : Check which packages are installed --------- 0.83s linux-system-roles.network : Check which packages are installed --------- 0.83s Create veth interface veth0 --------------------------------------------- 0.81s linux-system-roles.network : Enable and start NetworkManager ------------ 0.79s linux-system-roles.network : Configure networking connection profiles --- 0.69s linux-system-roles.network : Configure networking connection profiles --- 0.62s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---