# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:25:09 +0000 (0:00:00.021) 0:00:00.022 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:10 +0000 (0:00:01.471) 0:00:01.493 ********* 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 13:25:10 +0000 (0:00:00.040) 0:00:01.533 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:10 +0000 (0:00:00.030) 0:00:01.564 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 13:25:10 +0000 (0:00:00.043) 0:00:01.607 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.342957", "end": "2022-08-05 13:25:13.366703", "rc": 0, "start": "2022-08-05 13:25:11.023746" } STDOUT: Last metadata expiration check: 0:00:31 ago on Fri Aug 5 13:24:40 2022. epel-release-latest-8.noarch.rpm 595 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 13:25:13 +0000 (0:00:02.776) 0:00:04.384 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 13:25:13 +0000 (0:00:00.032) 0:00:04.417 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.551630", "end": "2022-08-05 13:25:14.203146", "rc": 0, "start": "2022-08-05 13:25:13.651516" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 13:25:14 +0000 (0:00:00.810) 0:00:05.227 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 13:25:14 +0000 (0:00:00.039) 0:00:05.266 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:25:14 +0000 (0:00:00.099) 0:00:05.366 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.749) 0:00:06.115 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.071) 0:00:06.187 ********* 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 13:25:15 +0000 (0:00:00.043) 0:00:06.231 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004168", "end": "2022-08-05 13:25:15.471669", "rc": 0, "start": "2022-08-05 13:25:15.467501" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.256) 0:00:06.488 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:25:15 +0000 (0:00:00.048) 0:00:06.537 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.048) 0:00:06.586 ********* 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 13:25:15 +0000 (0:00:00.075) 0:00:06.662 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 13:25:15 +0000 (0:00:00.032) 0:00:06.694 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.032) 0:00:06.727 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:15 +0000 (0:00:00.045) 0:00:06.772 ********* 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 13:25:15 +0000 (0:00:00.042) 0:00:06.814 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004122", "end": "2022-08-05 13:25:16.051305", "rc": 0, "start": "2022-08-05 13:25:16.047183" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:25:16 +0000 (0:00:00.254) 0:00:07.069 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:25:16 +0000 (0:00:00.049) 0:00:07.118 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 13:25:16 +0000 (0:00:00.049) 0:00:07.168 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 13:25:26 +0000 (0:00:10.056) 0:00:17.224 ********* 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.080920", "end": "2022-08-05 13:25:26.585008", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 13:25:26.504088" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.010088", "end": "2022-08-05 13:25:26.854648", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 13:25:26.844560" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.011175", "end": "2022-08-05 13:25:27.087456", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 13:25:27.076281" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.886) 0:00:18.110 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.149011", "end": "2022-08-05 13:25:27.493085", "rc": 0, "start": "2022-08-05 13:25:27.344074" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 13:25:27 +0000 (0:00:00.403) 0:00:18.514 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.036) 0:00:18.550 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.037) 0:00:18.588 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.033) 0:00:18.621 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.035) 0:00:18.657 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:27 +0000 (0:00:00.033) 0:00:18.690 ********* 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 13:25:27 +0000 (0:00:00.073) 0:00:18.763 ********* 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 13:25:27 +0000 (0:00:00.047) 0:00:18.810 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659705926.582559, "block_size": 4096, "blocks": 0, "ctime": 1659705926.582559, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22088, "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": 1659705926.582559, "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 13:25:28 +0000 (0:00:00.420) 0:00:19.231 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Friday 05 August 2022 13:25:28 +0000 (0:00:00.051) 0:00:19.283 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:25:28 +0000 (0:00:00.050) 0:00:19.333 ********* 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 13:25:28 +0000 (0:00:00.050) 0:00:19.384 ********* 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 13:25:28 +0000 (0:00:00.514) 0:00:19.898 ********* 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 13:25:30 +0000 (0:00:02.051) 0:00:21.949 ********* 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 13:25:32 +0000 (0:00:01.900) 0:00:23.850 ********* 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 13:25:32 +0000 (0:00:00.075) 0:00:23.926 ********* 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 13:25:33 +0000 (0:00:00.061) 0:00:23.987 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:25:33 +0000 (0:00:00.060) 0:00:24.048 ********* 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 13:25:33 +0000 (0:00:00.146) 0:00:24.195 ********* 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 13:25:33 +0000 (0:00:00.063) 0:00:24.259 ********* 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 13:25:33 +0000 (0:00:00.065) 0:00:24.324 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:25:33 +0000 (0:00:00.085) 0:00:24.410 ********* 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 13:25:34 +0000 (0:00:00.835) 0:00:25.245 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:25:34 +0000 (0:00:00.083) 0:00:25.328 ********* 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 13:25:34 +0000 (0:00:00.068) 0:00:25.397 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:25:34 +0000 (0:00:00.058) 0:00:25.455 ********* 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, b018045e-365e-4ca6-8e3a-eb8a8c8e5107 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 13:25:35 +0000 (0:00:00.852) 0:00:26.307 ********* 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 13:25:35 +0000 (0:00:00.062) 0:00:26.370 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:25:35 +0000 (0:00:00.074) 0:00:26.445 ********* 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, b018045e-365e-4ca6-8e3a-eb8a8c8e5107\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b018045e-365e-4ca6-8e3a-eb8a8c8e5107 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 13:25:35 +0000 (0:00:00.072) 0:00:26.517 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:25:35 +0000 (0:00:00.061) 0:00:26.579 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:36 +0000 (0:00:00.496) 0:00:27.076 ********* 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 13:25:36 +0000 (0:00:00.114) 0:00:27.190 ********* 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 13:25:36 +0000 (0:00:00.091) 0:00:27.282 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659705926.582559, "block_size": 4096, "blocks": 0, "ctime": 1659705926.582559, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22088, "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": 1659705926.582559, "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 13:25:36 +0000 (0:00:00.286) 0:00:27.568 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:36 +0000 (0:00:00.074) 0:00:27.643 ********* 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 13:25:36 +0000 (0:00:00.117) 0:00:27.761 ********* 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 13:25:36 +0000 (0:00:00.091) 0:00:27.852 ********* 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 13:25:36 +0000 (0:00:00.071) 0:00:27.923 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659705935.2409446, "block_size": 4096, "blocks": 8, "ctime": 1659705935.1939437, "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": 1659705935.1939437, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 372, "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 13:25:37 +0000 (0:00:00.274) 0:00:28.198 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 13:25:37 +0000 (0:00:00.193) 0:00:28.392 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.026778", "end": "2022-08-05 13:25:37.654061", "rc": 0, "start": "2022-08-05 13:25:37.627283" } 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 13:25:37 +0000 (0:00:00.301) 0:00:28.693 ********* 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 13:25:37 +0000 (0:00:00.074) 0:00:28.768 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 13:25:37 +0000 (0:00:00.057) 0:00:28.826 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 13:25:37 +0000 (0:00:00.059) 0:00:28.886 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 13:25:37 +0000 (0:00:00.077) 0:00:28.963 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 05 August 2022 13:25:38 +0000 (0:00:00.073) 0:00:29.036 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.004456", "end": "2022-08-05 13:25:38.277733", "rc": 0, "start": "2022-08-05 13:25:38.273277" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.11.235 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.11.235 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is present] ************************************ Friday 05 August 2022 13:25:38 +0000 (0:00:00.280) 0:00:29.317 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 13:25:38 +0000 (0:00:00.075) 0:00:29.392 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.004299", "end": "2022-08-05 13:25:38.630945", "rc": 0, "start": "2022-08-05 13:25:38.626646" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 1024 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium default via 2001:db8::1 dev veth0 proto static metric 101 pref medium TASK [Assert default ipv6 route is present] ************************************ Friday 05 August 2022 13:25:38 +0000 (0:00:00.277) 0:00:29.670 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 13:25:38 +0000 (0:00:00.076) 0:00:29.747 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:25:38 +0000 (0:00:00.092) 0:00:29.839 ********* 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 13:25:38 +0000 (0:00:00.102) 0:00:29.942 ********* 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 13:25:39 +0000 (0:00:00.537) 0:00:30.480 ********* 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 13:25:41 +0000 (0:00:01.913) 0:00:32.393 ********* 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 13:25:43 +0000 (0:00:01.614) 0:00:34.008 ********* 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 13:25:43 +0000 (0:00:00.100) 0:00:34.108 ********* 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 13:25:43 +0000 (0:00:00.090) 0:00:34.199 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:25:43 +0000 (0:00:00.114) 0:00:34.313 ********* 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 13:25:43 +0000 (0:00:00.215) 0:00:34.529 ********* 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 13:25:43 +0000 (0:00:00.070) 0:00:34.600 ********* 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 13:25:43 +0000 (0:00:00.081) 0:00:34.682 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:25:43 +0000 (0:00:00.108) 0:00:34.790 ********* 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 13:25:44 +0000 (0:00:00.553) 0:00:35.343 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:25:44 +0000 (0:00:00.102) 0:00:35.446 ********* 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 13:25:44 +0000 (0:00:00.062) 0:00:35.509 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:25:44 +0000 (0:00:00.066) 0:00:35.575 ********* 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 13:25:45 +0000 (0:00:00.625) 0:00:36.200 ********* 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 13:25:45 +0000 (0:00:00.087) 0:00:36.288 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:25:45 +0000 (0:00:00.101) 0:00:36.390 ********* 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 13:25:45 +0000 (0:00:00.093) 0:00:36.484 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:25:45 +0000 (0:00:00.068) 0:00:36.552 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:45 +0000 (0:00:00.392) 0:00:36.945 ********* 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 13:25:46 +0000 (0:00:00.149) 0:00:37.094 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 13:25:46 +0000 (0:00:00.063) 0:00:37.157 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:46 +0000 (0:00:00.063) 0:00:37.220 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:46 +0000 (0:00:00.116) 0:00:37.337 ********* 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 13:25:46 +0000 (0:00:00.096) 0:00:37.433 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003951", "end": "2022-08-05 13:25:46.679024", "rc": 0, "start": "2022-08-05 13:25:46.675073" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:25:46 +0000 (0:00:00.325) 0:00:37.758 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:25:46 +0000 (0:00:00.143) 0:00:37.902 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 13:25:47 +0000 (0:00:00.166) 0:00:38.069 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 13:25:49 +0000 (0:00:02.123) 0:00:40.193 ********* 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 13:25:49 +0000 (0:00:00.181) 0:00:40.374 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 13:25:49 +0000 (0:00:00.177) 0:00:40.552 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.016441", "end": "2022-08-05 13:25:49.870554", "rc": 0, "start": "2022-08-05 13:25:49.854113" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:49 +0000 (0:00:00.411) 0:00:40.964 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:50 +0000 (0:00:00.107) 0:00:41.071 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 13:25:50 +0000 (0:00:00.102) 0:00:41.174 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 13:25:50 +0000 (0:00:00.133) 0:00:41.307 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** Friday 05 August 2022 13:25:50 +0000 (0:00:00.110) 0:00:41.418 ********* ok: [sut] => {} MSG: ################################################## TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:50 +0000 (0:00:00.160) 0:00:41.578 ********* 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 13:25:50 +0000 (0:00:00.258) 0:00:41.837 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 13:25:50 +0000 (0:00:00.115) 0:00:41.952 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:51 +0000 (0:00:00.113) 0:00:42.066 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:25:51 +0000 (0:00:00.188) 0:00:42.255 ********* 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 13:25:51 +0000 (0:00:00.315) 0:00:42.571 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003972", "end": "2022-08-05 13:25:52.028658", "rc": 0, "start": "2022-08-05 13:25:52.024686" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:25:52 +0000 (0:00:00.740) 0:00:43.311 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:25:52 +0000 (0:00:00.417) 0:00:43.729 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 13:25:53 +0000 (0:00:00.470) 0:00:44.199 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 13:25:55 +0000 (0:00:02.637) 0:00:46.837 ********* 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.007223", "end": "2022-08-05 13:25:56.486936", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 13:25:56.479713" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.008938", "end": "2022-08-05 13:25:57.016534", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 13:25:57.007596" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.009695", "end": "2022-08-05 13:25:57.479403", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 13:25:57.469708" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 13:25:57 +0000 (0:00:01.957) 0:00:48.794 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.029538", "end": "2022-08-05 13:25:58.335785", "rc": 0, "start": "2022-08-05 13:25:58.306247" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 13:25:58 +0000 (0:00:00.835) 0:00:49.629 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:58 +0000 (0:00:00.343) 0:00:49.973 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 13:25:59 +0000 (0:00:00.546) 0:00:50.519 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 13:25:59 +0000 (0:00:00.458) 0:00:50.978 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 13:26:00 +0000 (0:00:00.432) 0:00:51.411 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:26:00 +0000 (0:00:00.430) 0:00:51.841 ********* 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 13:26:02 +0000 (0:00:01.207) 0:00:53.048 ********* 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 13:26:03 +0000 (0:00:01.450) 0:00:54.498 ********* 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 13:26:06 +0000 (0:00:02.659) 0:00:57.157 ********* 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 13:26:08 +0000 (0:00:02.593) 0:00:59.752 ********* 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 13:26:09 +0000 (0:00:00.510) 0:01:00.262 ********* 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 13:26:09 +0000 (0:00:00.408) 0:01:00.671 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:26:10 +0000 (0:00:00.408) 0:01:01.080 ********* 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 13:26:10 +0000 (0:00:00.862) 0:01:01.942 ********* 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 13:26:11 +0000 (0:00:00.415) 0:01:02.358 ********* 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 13:26:12 +0000 (0:00:00.780) 0:01:03.138 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:26:12 +0000 (0:00:00.505) 0:01:03.644 ********* 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 13:26:14 +0000 (0:00:01.540) 0:01:05.184 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:26:15 +0000 (0:00:00.938) 0:01:06.123 ********* 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 13:26:15 +0000 (0:00:00.461) 0:01:06.584 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:26:15 +0000 (0:00:00.347) 0:01:06.932 ********* 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, cc52f08a-6489-484f-b1fd-7eac6958bafa [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 13:26:17 +0000 (0:00:01.783) 0:01:08.715 ********* 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 13:26:18 +0000 (0:00:00.410) 0:01:09.126 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:26:18 +0000 (0:00:00.546) 0:01:09.672 ********* 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, cc52f08a-6489-484f-b1fd-7eac6958bafa\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cc52f08a-6489-484f-b1fd-7eac6958bafa (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 13:26:19 +0000 (0:00:00.874) 0:01:10.547 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:26:20 +0000 (0:00:00.444) 0:01:10.991 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:26:21 +0000 (0:00:01.062) 0:01:12.053 ********* 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 13:26:22 +0000 (0:00:01.151) 0:01:13.205 ********* 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 13:26:22 +0000 (0:00:00.632) 0:01:13.838 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659705956.4838018, "block_size": 4096, "blocks": 0, "ctime": 1659705956.4838018, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22674, "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": 1659705956.4838018, "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 13:26:23 +0000 (0:00:00.982) 0:01:14.820 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:26:24 +0000 (0:00:00.517) 0:01:15.338 ********* 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 13:26:25 +0000 (0:00:00.852) 0:01:16.190 ********* 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 13:26:25 +0000 (0:00:00.730) 0:01:16.921 ********* 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 13:26:26 +0000 (0:00:00.555) 0:01:17.476 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659705977.343782, "block_size": 4096, "blocks": 8, "ctime": 1659705977.295781, "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": 1659705977.295781, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 323, "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 13:26:27 +0000 (0:00:00.812) 0:01:18.288 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 13:26:27 +0000 (0:00:00.505) 0:01:18.793 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.027490", "end": "2022-08-05 13:26:28.529198", "rc": 0, "start": "2022-08-05 13:26:28.501708" } 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 13:26:28 +0000 (0:00:01.001) 0:01:19.795 ********* 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 13:26:29 +0000 (0:00:00.660) 0:01:20.455 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 05 August 2022 13:26:30 +0000 (0:00:00.723) 0:01:21.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'veth0' is present] ********************************** Friday 05 August 2022 13:26:30 +0000 (0:00:00.413) 0:01:21.592 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 05 August 2022 13:26:31 +0000 (0:00:00.625) 0:01:22.218 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Friday 05 August 2022 13:26:31 +0000 (0:00:00.616) 0:01:22.834 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.004605", "end": "2022-08-05 13:26:32.422644", "rc": 0, "start": "2022-08-05 13:26:32.418039" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.11.235 metric 100 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.11.235 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is absent] ************************************* Friday 05 August 2022 13:26:32 +0000 (0:00:00.837) 0:01:23.672 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 05 August 2022 13:26:33 +0000 (0:00:00.540) 0:01:24.212 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.004318", "end": "2022-08-05 13:26:33.848161", "rc": 0, "start": "2022-08-05 13:26:33.843843" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 1024 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium TASK [Assert default ipv6 route is absent] ************************************* Friday 05 August 2022 13:26:34 +0000 (0:00:01.029) 0:01:25.241 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 13:26:34 +0000 (0:00:00.541) 0:01:25.783 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:26:35 +0000 (0:00:00.483) 0:01:26.267 ********* 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 13:26:35 +0000 (0:00:00.621) 0:01:26.888 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 13:26:37 +0000 (0:00:01.332) 0:01:28.221 ********* 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 13:26:39 +0000 (0:00:02.758) 0:01:30.980 ********* 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 13:26:42 +0000 (0:00:02.995) 0:01:33.976 ********* 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 13:26:43 +0000 (0:00:00.468) 0:01:34.444 ********* 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 13:26:43 +0000 (0:00:00.361) 0:01:34.805 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:26:44 +0000 (0:00:00.392) 0:01:35.198 ********* 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 13:26:45 +0000 (0:00:00.819) 0:01:36.018 ********* 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 13:26:45 +0000 (0:00:00.416) 0:01:36.434 ********* 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 13:26:45 +0000 (0:00:00.511) 0:01:36.945 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:26:46 +0000 (0:00:00.636) 0:01:37.582 ********* 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 13:26:48 +0000 (0:00:01.595) 0:01:39.177 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:26:48 +0000 (0:00:00.699) 0:01:39.877 ********* 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 13:26:49 +0000 (0:00:00.419) 0:01:40.297 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:26:50 +0000 (0:00:00.732) 0:01:41.030 ********* 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 13:26:51 +0000 (0:00:01.937) 0:01:42.967 ********* 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 13:26:52 +0000 (0:00:00.681) 0:01:43.648 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:26:53 +0000 (0:00:00.830) 0:01:44.479 ********* 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 13:26:54 +0000 (0:00:00.617) 0:01:45.096 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:26:54 +0000 (0:00:00.461) 0:01:45.558 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:26:55 +0000 (0:00:01.114) 0:01:46.672 ********* 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 13:26:56 +0000 (0:00:00.818) 0:01:47.491 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 13:26:56 +0000 (0:00:00.422) 0:01:47.914 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:26:57 +0000 (0:00:00.449) 0:01:48.363 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:26:58 +0000 (0:00:00.632) 0:01:48.995 ********* 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 13:26:58 +0000 (0:00:00.867) 0:01:49.883 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004335", "end": "2022-08-05 13:26:59.539257", "rc": 0, "start": "2022-08-05 13:26:59.534922" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:26:59 +0000 (0:00:01.063) 0:01:50.947 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:27:00 +0000 (0:00:00.723) 0:01:51.670 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 13:27:01 +0000 (0:00:00.538) 0:01:52.209 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 13:27:04 +0000 (0:00:03.093) 0:01:55.303 ********* 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 13:27:05 +0000 (0:00:00.736) 0:01:56.040 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 13:27:05 +0000 (0:00:00.445) 0:01:56.485 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.013479", "end": "2022-08-05 13:27:06.301755", "rc": 0, "start": "2022-08-05 13:27:06.288276" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 13:27:06 +0000 (0:00:01.213) 0:01:57.699 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 13:27:07 +0000 (0:00:00.589) 0:01:58.289 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 13:27:08 +0000 (0:00:00.789) 0:01:59.078 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 13:27:08 +0000 (0:00:00.473) 0:01:59.551 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=128 changed=12 unreachable=0 failed=0 skipped=81 rescued=0 ignored=0 Friday 05 August 2022 13:27:09 +0000 (0:00:00.765) 0:02:00.317 ********* =============================================================================== Install iproute -------------------------------------------------------- 10.06s Install iproute --------------------------------------------------------- 3.09s linux-system-roles.network : Check which packages are installed --------- 3.00s Create EPEL 8 ----------------------------------------------------------- 2.78s linux-system-roles.network : Check which services are running ----------- 2.76s linux-system-roles.network : Check which services are running ----------- 2.66s Install iproute --------------------------------------------------------- 2.64s linux-system-roles.network : Check which packages are installed --------- 2.59s linux-system-roles.network : Configure networking connection profiles --- 2.56s linux-system-roles.network : Enable and start NetworkManager ------------ 2.15s Install iproute --------------------------------------------------------- 2.12s linux-system-roles.network : Check which services are running ----------- 2.05s Create veth interface veth0 --------------------------------------------- 1.96s linux-system-roles.network : Check which services are running ----------- 1.91s linux-system-roles.network : Check which packages are installed --------- 1.90s linux-system-roles.network : Configure networking connection profiles --- 1.78s linux-system-roles.network : Check which packages are installed --------- 1.61s linux-system-roles.network : Enable and start NetworkManager ------------ 1.56s linux-system-roles.network : Re-test connectivity ----------------------- 1.51s Gathering Facts --------------------------------------------------------- 1.47s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---