# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-code_refactorxe4y80ch/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_auto_gateway_nm.yml ******************************************** 2 plays in /WORKDIR/git-code_refactorxe4y80ch/tests/tests_auto_gateway_nm.yml PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tests_auto_gateway_nm.yml:5 Thursday 30 November 2023 18:30:26 +0000 (0:00:00.014) 0:00:00.014 ***** ok: [sut] TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tests_auto_gateway_nm.yml:9 Thursday 30 November 2023 18:30:28 +0000 (0:00:01.941) 0:00:01.956 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.019) 0:00:01.976 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml:17 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.364) 0:00:02.340 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml:22 Thursday 30 November 2023 18:30:28 +0000 (0:00:00.283) 0:00:02.623 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml:26 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.021) 0:00:02.645 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == '6'", "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/el_repo_setup.yml:51 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.013) 0:00:02.659 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.032) 0:00:02.691 ***** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.293) 0:00:02.985 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.014) 0:00:02.999 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.015) 0:00:03.014 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.257303", "end": "2023-11-30 18:30:29.817895", "rc": 0, "start": "2023-11-30 18:30:29.560592" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.458) 0:00:03.472 ***** skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution_major_version == '6'", "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/tests_auto_gateway_nm.yml:11 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.012) 0:00:03.485 ***** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Play for testing auto_gateway setting] *********************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:3 Thursday 30 November 2023 18:30:29 +0000 (0:00:00.026) 0:00:03.511 ***** ok: [sut] TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:9 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.850) 0:00:04.361 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.031) 0:00:04.393 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.017) 0:00:04.410 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003452", "end": "2023-11-30 18:30:30.955395", "rc": 0, "start": "2023-11-30 18:30:30.951943" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.198) 0:00:04.608 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.012) 0:00:04.620 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:11 Thursday 30 November 2023 18:30:30 +0000 (0:00:00.011) 0:00:04.632 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.039) 0:00:04.671 ***** skipping: [sut] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.014) 0:00:04.686 ***** skipping: [sut] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.012) 0:00:04.698 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.018) 0:00:04.717 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.014) 0:00:04.731 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003548", "end": "2023-11-30 18:30:31.276779", "rc": 0, "start": "2023-11-30 18:30:31.273231" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.208) 0:00:04.940 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.018) 0:00:04.958 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:31 +0000 (0:00:00.014) 0:00:04.973 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 Thursday 30 November 2023 18:30:34 +0000 (0:00:03.337) 0:00:08.311 ***** ok: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.013552", "end": "2023-11-30 18:30:34.873370", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2023-11-30 18:30:34.859818" } ok: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003880", "end": "2023-11-30 18:30:35.097717", "item": "ip link set peerveth0 up", "rc": 0, "start": "2023-11-30 18:30:35.093837" } ok: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.004611", "end": "2023-11-30 18:30:35.286315", "item": "ip link set veth0 up", "rc": 0, "start": "2023-11-30 18:30:35.281704" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:31 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.633) 0:00:08.944 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.075905", "end": "2023-11-30 18:30:35.565578", "rc": 0, "start": "2023-11-30 18:30:35.489673" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:39 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.275) 0:00:09.220 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'veth' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:45 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.014) 0:00:09.235 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:50 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.012) 0:00:09.248 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:56 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.014) 0:00:09.263 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.015) 0:00:09.278 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:15 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.013) 0:00:09.292 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.046) 0:00:09.339 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.017) 0:00:09.356 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369034.8635464, "block_size": 4096, "blocks": 0, "ctime": 1701369034.8635464, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23407, "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": 1701369034.8635464, "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 the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.203) 0:00:09.559 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:17 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.017) 0:00:09.577 ***** ok: [sut] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.025) 0:00:09.602 ***** included: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for sut TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:35 +0000 (0:00:00.031) 0:00:09.634 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Thursday 30 November 2023 18:30:36 +0000 (0:00:00.030) 0:00:09.665 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Thursday 30 November 2023 18:30:36 +0000 (0:00:00.019) 0:00:09.684 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Thursday 30 November 2023 18:30:36 +0000 (0:00:00.019) 0:00:09.704 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Thursday 30 November 2023 18:30:37 +0000 (0:00:01.716) 0:00:11.420 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Thursday 30 November 2023 18:30:39 +0000 (0:00:01.628) 0:00:13.049 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.039) 0:00:13.089 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.031) 0:00:13.120 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.034) 0:00:13.155 ***** skipping: [sut] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.100) 0:00:13.255 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:47 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.035) 0:00:13.291 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:59 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.073) 0:00:13.364 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:72 Thursday 30 November 2023 18:30:39 +0000 (0:00:00.056) 0:00:13.420 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:83 Thursday 30 November 2023 18:30:40 +0000 (0:00:00.613) 0:00:14.034 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:92 Thursday 30 November 2023 18:30:40 +0000 (0:00:00.066) 0:00:14.101 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:100 Thursday 30 November 2023 18:30:40 +0000 (0:00:00.026) 0:00:14.128 ***** skipping: [sut] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Thursday 30 November 2023 18:30:40 +0000 (0:00:00.032) 0:00:14.160 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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", "route_metric4": 65535 }, "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, 1f17c06a-7b83-4a9b-8ca5-618e72be699f [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:121 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.629) 0:00:14.790 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:127 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.030) 0:00:14.820 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:131 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.033) 0:00:14.853 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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", "route_metric4": 65535 }, "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, 1f17c06a-7b83-4a9b-8ca5-618e72be699f\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 1f17c06a-7b83-4a9b-8ca5-618e72be699f (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:136 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.035) 0:00:14.888 ***** skipping: [sut] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.032) 0:00:14.921 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:42 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.407) 0:00:15.328 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.093) 0:00:15.421 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:30:41 +0000 (0:00:00.103) 0:00:15.525 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369034.8635464, "block_size": 4096, "blocks": 0, "ctime": 1701369034.8635464, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23407, "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": 1701369034.8635464, "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 the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.219) 0:00:15.744 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:44 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.039) 0:00:15.784 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.097) 0:00:15.882 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.068) 0:00:15.950 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.036) 0:00:15.987 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369041.0997183, "block_size": 4096, "blocks": 8, "ctime": 1701369041.0557196, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2965142, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369041.0557196, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 396, "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] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.219) 0:00:16.206 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.034) 0:00:16.240 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.021543", "end": "2023-11-30 18:30:42.803938", "rc": 0, "start": "2023-11-30 18:30:42.782395" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.241) 0:00:16.482 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.031) 0:00:16.513 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.036) 0:00:16.550 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.040) 0:00:16.591 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:30:42 +0000 (0:00:00.037) 0:00:16.628 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.040) 0:00:16.668 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.042) 0:00:16.711 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.073) 0:00:16.785 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:48 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.035) 0:00:16.821 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003793", "end": "2023-11-30 18:30:43.366522", "rc": 0, "start": "2023-11-30 18:30:43.362729" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.8.108 metric 100 default via 203.0.113.1 dev veth0 proto static metric 65535 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.108 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 65535 TASK [Assert default ipv4 route is present] ************************************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:52 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.212) 0:00:17.034 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:58 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.039) 0:00:17.073 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003916", "end": "2023-11-30 18:30:43.620957", "rc": 0, "start": "2023-11-30 18:30:43.617041" } 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 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 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] ************************************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:62 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.214) 0:00:17.287 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:69 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.025) 0:00:17.313 ***** ok: [sut] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.024) 0:00:17.337 ***** included: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for sut TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.049) 0:00:17.386 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.040) 0:00:17.427 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.028) 0:00:17.456 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Thursday 30 November 2023 18:30:43 +0000 (0:00:00.031) 0:00:17.487 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Thursday 30 November 2023 18:30:45 +0000 (0:00:01.541) 0:00:19.029 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Thursday 30 November 2023 18:30:46 +0000 (0:00:01.401) 0:00:20.431 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Thursday 30 November 2023 18:30:46 +0000 (0:00:00.070) 0:00:20.501 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Thursday 30 November 2023 18:30:46 +0000 (0:00:00.037) 0:00:20.539 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Thursday 30 November 2023 18:30:46 +0000 (0:00:00.040) 0:00:20.579 ***** skipping: [sut] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.087) 0:00:20.666 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:47 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.041) 0:00:20.708 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:59 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.031) 0:00:20.739 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:72 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.058) 0:00:20.798 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:83 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.409) 0:00:21.207 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:92 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.050) 0:00:21.257 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:100 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.025) 0:00:21.283 ***** skipping: [sut] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Thursday 30 November 2023 18:30:47 +0000 (0:00:00.027) 0:00:21.311 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:121 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.431) 0:00:21.742 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:127 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.029) 0:00:21.772 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:131 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.028) 0:00:21.800 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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 [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:136 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.032) 0:00:21.833 ***** skipping: [sut] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.049) 0:00:21.883 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:81 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.265) 0:00:22.148 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.095) 0:00:22.243 ***** skipping: [sut] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.033) 0:00:22.277 ***** skipping: [sut] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.032) 0:00:22.310 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.046) 0:00:22.356 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.045) 0:00:22.402 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003386", "end": "2023-11-30 18:30:48.952017", "rc": 0, "start": "2023-11-30 18:30:48.948631" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:48 +0000 (0:00:00.215) 0:00:22.618 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.026) 0:00:22.644 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:49 +0000 (0:00:00.031) 0:00:22.675 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 Thursday 30 November 2023 18:30:52 +0000 (0:00:02.977) 0:00:25.653 ***** skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "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, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "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, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:31 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.046) 0:00:25.699 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'veth' and state == 'present'", "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:39 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.065) 0:00:25.765 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.009172", "end": "2023-11-30 18:30:52.324550", "rc": 0, "start": "2023-11-30 18:30:52.315378" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:45 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.246) 0:00:26.012 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:50 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.093) 0:00:26.105 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:56 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.040) 0:00:26.146 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.041) 0:00:26.188 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:85 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.037) 0:00:26.225 ***** ok: [sut] => {} MSG: ################################################## TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:89 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.030) 0:00:26.256 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.078) 0:00:26.334 ***** skipping: [sut] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.031) 0:00:26.365 ***** skipping: [sut] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.027) 0:00:26.392 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.043) 0:00:26.436 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:30:52 +0000 (0:00:00.046) 0:00:26.483 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003505", "end": "2023-11-30 18:30:53.028632", "rc": 0, "start": "2023-11-30 18:30:53.025127" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:30:53 +0000 (0:00:00.214) 0:00:26.697 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:30:53 +0000 (0:00:00.032) 0:00:26.729 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:30:53 +0000 (0:00:00.032) 0:00:26.762 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 Thursday 30 November 2023 18:30:56 +0000 (0:00:03.033) 0:00:29.796 ***** ok: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.012520", "end": "2023-11-30 18:30:56.356029", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2023-11-30 18:30:56.343509" } ok: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003803", "end": "2023-11-30 18:30:56.584313", "item": "ip link set peerveth0 up", "rc": 0, "start": "2023-11-30 18:30:56.580510" } ok: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.004494", "end": "2023-11-30 18:30:56.774163", "item": "ip link set veth0 up", "rc": 0, "start": "2023-11-30 18:30:56.769669" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:31 Thursday 30 November 2023 18:30:56 +0000 (0:00:00.644) 0:00:30.440 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.022690", "end": "2023-11-30 18:30:57.004508", "rc": 0, "start": "2023-11-30 18:30:56.981818" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:39 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.238) 0:00:30.679 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'veth' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:45 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.025) 0:00:30.704 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:50 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.024) 0:00:30.728 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:56 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.024) 0:00:30.753 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.026) 0:00:30.780 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.024) 0:00:30.804 ***** included: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for sut TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.046) 0:00:30.850 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.046) 0:00:30.897 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.032) 0:00:30.929 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Thursday 30 November 2023 18:30:57 +0000 (0:00:00.028) 0:00:30.957 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Thursday 30 November 2023 18:30:58 +0000 (0:00:01.533) 0:00:32.491 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Thursday 30 November 2023 18:31:00 +0000 (0:00:01.449) 0:00:33.941 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.073) 0:00:34.014 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.028) 0:00:34.042 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.029) 0:00:34.071 ***** skipping: [sut] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.067) 0:00:34.139 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:47 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.032) 0:00:34.172 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:59 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.034) 0:00:34.206 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:72 Thursday 30 November 2023 18:31:00 +0000 (0:00:00.048) 0:00:34.254 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:83 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.410) 0:00:34.665 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:92 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.060) 0:00:34.725 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:100 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.027) 0:00:34.752 ***** skipping: [sut] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.027) 0:00:34.779 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:121 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.427) 0:00:35.207 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:127 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.034) 0:00:35.242 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:131 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.029) 0:00:35.271 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b0bd8424-b7c0-4d5c-b127-f53d145bd6fa (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:136 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.028) 0:00:35.300 ***** skipping: [sut] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.029) 0:00:35.329 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:110 Thursday 30 November 2023 18:31:01 +0000 (0:00:00.263) 0:00:35.593 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.065) 0:00:35.659 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.036) 0:00:35.695 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369056.3471558, "block_size": 4096, "blocks": 0, "ctime": 1701369056.3471558, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23993, "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": 1701369056.3471558, "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 the interface is present - 'veth0'] ************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.209) 0:00:35.905 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:112 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.030) 0:00:35.935 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.069) 0:00:36.005 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.044) 0:00:36.050 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.026) 0:00:36.076 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369061.5141926, "block_size": 4096, "blocks": 8, "ctime": 1701369061.4751935, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2965142, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369061.4751935, "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] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.223) 0:00:36.300 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.038) 0:00:36.339 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.022250", "end": "2023-11-30 18:31:02.908627", "rc": 0, "start": "2023-11-30 18:31:02.886377" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:31:02 +0000 (0:00:00.239) 0:00:36.578 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.067) 0:00:36.646 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.028) 0:00:36.674 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.035) 0:00:36.709 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.037) 0:00:36.746 ***** skipping: [sut] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.027) 0:00:36.774 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.031) 0:00:36.805 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.030) 0:00:36.836 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:116 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.027) 0:00:36.863 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003718", "end": "2023-11-30 18:31:03.408378", "rc": 0, "start": "2023-11-30 18:31:03.404660" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.8.108 metric 100 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.108 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] ************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:120 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.219) 0:00:37.083 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:126 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.029) 0:00:37.113 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003889", "end": "2023-11-30 18:31:03.659889", "rc": 0, "start": "2023-11-30 18:31:03.656000" } 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 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium TASK [Assert default ipv6 route is absent] ************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:130 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.212) 0:00:37.326 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:137 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.035) 0:00:37.361 ***** ok: [sut] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.039) 0:00:37.400 ***** included: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for sut TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.072) 0:00:37.473 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.043) 0:00:37.517 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.028) 0:00:37.545 ***** skipping: [sut] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Thursday 30 November 2023 18:31:03 +0000 (0:00:00.084) 0:00:37.630 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Thursday 30 November 2023 18:31:05 +0000 (0:00:01.553) 0:00:39.183 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Thursday 30 November 2023 18:31:06 +0000 (0:00:01.365) 0:00:40.549 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Thursday 30 November 2023 18:31:06 +0000 (0:00:00.030) 0:00:40.579 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Thursday 30 November 2023 18:31:06 +0000 (0:00:00.034) 0:00:40.614 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.036) 0:00:40.650 ***** skipping: [sut] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.086) 0:00:40.736 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:47 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.033) 0:00:40.770 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:59 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.027) 0:00:40.798 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:72 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.042) 0:00:40.840 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:83 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.402) 0:00:41.242 ***** skipping: [sut] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:92 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.057) 0:00:41.300 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:100 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.025) 0:00:41.325 ***** skipping: [sut] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Thursday 30 November 2023 18:31:07 +0000 (0:00:00.023) 0:00:41.349 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:121 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.509) 0:00:41.858 ***** skipping: [sut] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:127 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.027) 0:00:41.886 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:131 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.042) 0:00:41.928 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\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 [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:136 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.039) 0:00:41.968 ***** skipping: [sut] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.035) 0:00:42.003 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:149 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.226) 0:00:42.230 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.062) 0:00:42.292 ***** skipping: [sut] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.024) 0:00:42.317 ***** skipping: [sut] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.026) 0:00:42.343 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.043) 0:00:42.387 ***** included: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:31:08 +0000 (0:00:00.060) 0:00:42.448 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003532", "end": "2023-11-30 18:31:09.000904", "rc": 0, "start": "2023-11-30 18:31:08.997372" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:31:09 +0000 (0:00:00.240) 0:00:42.688 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:31:09 +0000 (0:00:00.086) 0:00:42.775 ***** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 18:31:09 +0000 (0:00:00.035) 0:00:42.811 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 Thursday 30 November 2023 18:31:12 +0000 (0:00:03.093) 0:00:45.905 ***** skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "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, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "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, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:31 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.042) 0:00:45.947 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'veth' and state == 'present'", "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:39 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.038) 0:00:45.986 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.010205", "end": "2023-11-30 18:31:12.544771", "rc": 0, "start": "2023-11-30 18:31:12.534566" } TASK [Create dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:45 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.232) 0:00:46.219 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:50 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.031) 0:00:46.250 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:56 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.034) 0:00:46.284 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.027) 0:00:46.311 ***** skipping: [sut] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=129 changed=4 unreachable=0 failed=0 skipped=98 rescued=0 ignored=0 Thursday 30 November 2023 18:31:12 +0000 (0:00:00.088) 0:00:46.400 ***** =============================================================================== Install iproute --------------------------------------------------------- 3.34s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 3.09s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 3.03s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 2.98s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:16 Gathering Facts --------------------------------------------------------- 1.94s /WORKDIR/git-code_refactorxe4y80ch/tests/tests_auto_gateway_nm.yml:5 ---------- fedora.linux_system_roles.network : Check which services are running ---- 1.72s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which packages are installed --- 1.63s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which services are running ---- 1.55s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 1.54s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 1.53s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which packages are installed --- 1.45s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.40s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.37s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Gathering Facts --------------------------------------------------------- 0.85s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tests_auto_gateway.yml:3 --- Create veth interface veth0 --------------------------------------------- 0.64s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 Create veth interface veth0 --------------------------------------------- 0.63s /WORKDIR/git-code_refactorxe4y80ch/tests/playbooks/tasks/manage_test_interface.yml:23 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.63s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.61s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:72 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.51s /WORKDIR/git-code_refactorxe4y80ch/.collection/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Enable EPEL 8 ----------------------------------------------------------- 0.46s /WORKDIR/git-code_refactorxe4y80ch/tests/tasks/enable_epel.yml:35 ------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---