# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_states_nm.yml ************************************************** 2 plays in /WORKDIR/git-route_typefycom2fs/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/tests_states_nm.yml:6 Monday 08 January 2024 14:28:55 +0000 (0:00:00.011) 0:00:00.011 ******** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_typefycom2fs/tests/tests_states_nm.yml:9 Monday 08 January 2024 14:28:56 +0000 (0:00:00.685) 0:00:00.696 ******** included: /WORKDIR/git-route_typefycom2fs/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-route_typefycom2fs/tests/tasks/el_repo_setup.yml:3 Monday 08 January 2024 14:28:56 +0000 (0:00:00.023) 0:00:00.720 ******** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/el_repo_setup.yml:19 Monday 08 January 2024 14:28:56 +0000 (0:00:00.321) 0:00:01.041 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/el_repo_setup.yml:24 Monday 08 January 2024 14:28:57 +0000 (0:00:00.249) 0:00:01.290 ******** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/el_repo_setup.yml:28 Monday 08 January 2024 14:28:57 +0000 (0:00:00.019) 0:00:01.310 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/el_repo_setup.yml:53 Monday 08 January 2024 14:28:57 +0000 (0:00:00.016) 0:00:01.326 ******** included: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:8 Monday 08 January 2024 14:28:57 +0000 (0:00:00.028) 0:00:01.355 ******** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:24 Monday 08 January 2024 14:28:57 +0000 (0:00:00.245) 0:00:01.600 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:30 Monday 08 January 2024 14:28:57 +0000 (0:00:00.013) 0:00:01.613 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:35 Monday 08 January 2024 14:28:57 +0000 (0:00:00.011) 0:00:01.625 ******** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:01.246573", "end": "2024-01-08 14:28:58.906313", "rc": 0, "start": "2024-01-08 14:28:57.659740" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:40 Monday 08 January 2024 14:28:58 +0000 (0:00:01.432) 0:00:03.058 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/tests_states_nm.yml:11 Monday 08 January 2024 14:28:58 +0000 (0:00:00.009) 0:00:03.067 ******** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:3 Monday 08 January 2024 14:28:58 +0000 (0:00:00.009) 0:00:03.076 ******** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:11 Monday 08 January 2024 14:28:59 +0000 (0:00:00.549) 0:00:03.626 ******** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:22 Monday 08 January 2024 14:28:59 +0000 (0:00:00.009) 0:00:03.636 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:28:59 +0000 (0:00:00.016) 0:00:03.652 ******** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:28:59 +0000 (0:00:00.011) 0:00:03.663 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_present.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:28:59 +0000 (0:00:00.031) 0:00:03.695 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:28:59 +0000 (0:00:00.014) 0:00:03.710 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:28:59 +0000 (0:00:00.012) 0:00:03.722 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003349", "end": "2024-01-08 14:28:59.757711", "rc": 0, "start": "2024-01-08 14:28:59.754362" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:28:59 +0000 (0:00:00.185) 0:00:03.907 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:28:59 +0000 (0:00:00.011) 0:00:03.919 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:28:59 +0000 (0:00:00.010) 0:00:03.929 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:28:59 +0000 (0:00:00.019) 0:00:03.949 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007696", "end": "2024-01-08 14:28:59.989274", "rc": 1, "start": "2024-01-08 14:28:59.981578" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:29:00 +0000 (0:00:00.189) 0:00:04.138 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:00 +0000 (0:00:00.015) 0:00:04.153 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:29:00 +0000 (0:00:00.183) 0:00:04.337 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:29:00 +0000 (0:00:00.013) 0:00:04.350 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:29:00 +0000 (0:00:00.016) 0:00:04.367 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:00 +0000 (0:00:00.032) 0:00:04.399 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:00 +0000 (0:00:00.068) 0:00:04.467 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:00 +0000 (0:00:00.012) 0:00:04.480 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:00 +0000 (0:00:00.009) 0:00:04.489 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:00 +0000 (0:00:00.009) 0:00:04.499 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:02 +0000 (0:00:01.634) 0:00:06.133 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:03 +0000 (0:00:01.475) 0:00:07.608 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:03 +0000 (0:00:00.021) 0:00:07.630 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:03 +0000 (0:00:00.020) 0:00:07.651 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:03 +0000 (0:00:00.020) 0:00:07.671 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:03 +0000 (0:00:00.042) 0:00:07.713 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:03 +0000 (0:00:00.020) 0:00:07.733 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:03 +0000 (0:00:00.020) 0:00:07.754 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:03 +0000 (0:00:00.023) 0:00:07.778 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:04 +0000 (0:00:00.480) 0:00:08.258 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:04 +0000 (0:00:00.024) 0:00:08.283 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:04 +0000 (0:00:00.021) 0:00:08.305 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:04 +0000 (0:00:00.024) 0:00:08.329 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:04 +0000 (0:00:00.530) 0:00:08.860 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:04 +0000 (0:00:00.021) 0:00:08.882 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:04 +0000 (0:00:00.023) 0:00:08.905 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:04 +0000 (0:00:00.022) 0:00:08.928 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:04 +0000 (0:00:00.022) 0:00:08.951 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:29:05 +0000 (0:00:00.241) 0:00:09.192 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0f8a62aa-42a7-475f-828f-2ec2557b94a4" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:29:05 +0000 (0:00:00.022) 0:00:09.215 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:29:05 +0000 (0:00:00.039) 0:00:09.254 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:29:05 +0000 (0:00:00.036) 0:00:09.291 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:29:05 +0000 (0:00:00.021) 0:00:09.313 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724144.6328633, "block_size": 4096, "blocks": 8, "ctime": 1704724144.631863, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6287477, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724144.631863, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:29:05 +0000 (0:00:00.199) 0:00:09.512 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:29:05 +0000 (0:00:00.023) 0:00:09.535 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021552", "end": "2024-01-08 14:29:05.589428", "rc": 0, "start": "2024-01-08 14:29:05.567876" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:29:05 +0000 (0:00:00.215) 0:00:09.750 ******** 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-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:29:05 +0000 (0:00:00.024) 0:00:09.775 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:29:05 +0000 (0:00:00.023) 0:00:09.799 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:29:05 +0000 (0:00:00.023) 0:00:09.822 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:29:05 +0000 (0:00:00.024) 0:00:09.846 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:29:05 +0000 (0:00:00.024) 0:00:09.871 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:29:05 +0000 (0:00:00.024) 0:00:09.895 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:29:05 +0000 (0:00:00.025) 0:00:09.921 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:29:05 +0000 (0:00:00.027) 0:00:09.949 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:29:05 +0000 (0:00:00.047) 0:00:09.996 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:05 +0000 (0:00:00.037) 0:00:10.034 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724144.634701, "block_size": 4096, "blocks": 0, "ctime": 1704724144.634701, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 35775, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1704724144.634701, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:29:06 +0000 (0:00:00.238) 0:00:10.272 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:29:06 +0000 (0:00:00.024) 0:00:10.297 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:29:06 +0000 (0:00:00.054) 0:00:10.351 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:29:06 +0000 (0:00:00.059) 0:00:10.411 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.064244", "end": "2024-01-08 14:29:06.513479", "rc": 1, "start": "2024-01-08 14:29:06.449235" } STDOUT: Connection 'statebr' (0f8a62aa-42a7-475f-828f-2ec2557b94a4) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:45 Monday 08 January 2024 14:29:06 +0000 (0:00:00.265) 0:00:10.676 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:29:06 +0000 (0:00:00.039) 0:00:10.715 ******** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:29:06 +0000 (0:00:00.024) 0:00:10.739 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile_no_autoconnect.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:29:06 +0000 (0:00:00.078) 0:00:10.818 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:29:06 +0000 (0:00:00.036) 0:00:10.855 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:29:06 +0000 (0:00:00.034) 0:00:10.889 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003020", "end": "2024-01-08 14:29:06.926261", "rc": 0, "start": "2024-01-08 14:29:06.923241" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:29:06 +0000 (0:00:00.199) 0:00:11.088 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:29:06 +0000 (0:00:00.036) 0:00:11.125 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:29:07 +0000 (0:00:00.043) 0:00:11.168 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:29:07 +0000 (0:00:00.085) 0:00:11.253 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006439", "end": "2024-01-08 14:29:07.295870", "rc": 1, "start": "2024-01-08 14:29:07.289431" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:29:07 +0000 (0:00:00.203) 0:00:11.457 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:07 +0000 (0:00:00.039) 0:00:11.496 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:29:07 +0000 (0:00:00.197) 0:00:11.694 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:29:07 +0000 (0:00:00.022) 0:00:11.717 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Monday 08 January 2024 14:29:07 +0000 (0:00:00.038) 0:00:11.755 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:07 +0000 (0:00:00.040) 0:00:11.796 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:07 +0000 (0:00:00.041) 0:00:11.838 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:07 +0000 (0:00:00.027) 0:00:11.866 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:07 +0000 (0:00:00.046) 0:00:11.913 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:07 +0000 (0:00:00.022) 0:00:11.935 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:09 +0000 (0:00:01.535) 0:00:13.471 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:10 +0000 (0:00:01.318) 0:00:14.789 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:10 +0000 (0:00:00.023) 0:00:14.813 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:10 +0000 (0:00:00.022) 0:00:14.836 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:10 +0000 (0:00:00.023) 0:00:14.859 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:10 +0000 (0:00:00.050) 0:00:14.910 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:10 +0000 (0:00:00.021) 0:00:14.932 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:10 +0000 (0:00:00.020) 0:00:14.953 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:10 +0000 (0:00:00.023) 0:00:14.976 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:11 +0000 (0:00:00.342) 0:00:15.319 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:11 +0000 (0:00:00.025) 0:00:15.344 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:11 +0000 (0:00:00.022) 0:00:15.366 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:11 +0000 (0:00:00.022) 0:00:15.388 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:11 +0000 (0:00:00.340) 0:00:15.729 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:11 +0000 (0:00:00.025) 0:00:15.754 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:11 +0000 (0:00:00.049) 0:00:15.804 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:11 +0000 (0:00:00.024) 0:00:15.828 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:11 +0000 (0:00:00.021) 0:00:15.850 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Monday 08 January 2024 14:29:11 +0000 (0:00:00.192) 0:00:16.042 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cf3efae-b03d-403e-8faf-ab364e687969" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:29:11 +0000 (0:00:00.026) 0:00:16.068 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:29:11 +0000 (0:00:00.043) 0:00:16.111 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:12 +0000 (0:00:00.034) 0:00:16.146 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:29:12 +0000 (0:00:00.195) 0:00:16.341 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:29:12 +0000 (0:00:00.024) 0:00:16.366 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:29:12 +0000 (0:00:00.038) 0:00:16.404 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:29:12 +0000 (0:00:00.021) 0:00:16.426 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724151.5538719, "block_size": 4096, "blocks": 8, "ctime": 1704724151.552872, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6287477, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724151.552872, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 220, "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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:29:12 +0000 (0:00:00.216) 0:00:16.643 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:29:12 +0000 (0:00:00.024) 0:00:16.667 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020317", "end": "2024-01-08 14:29:12.720101", "rc": 0, "start": "2024-01-08 14:29:12.699784" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:29:12 +0000 (0:00:00.214) 0:00:16.882 ******** 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-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:29:12 +0000 (0:00:00.024) 0:00:16.906 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:29:12 +0000 (0:00:00.023) 0:00:16.930 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:29:12 +0000 (0:00:00.023) 0:00:16.953 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:29:12 +0000 (0:00:00.024) 0:00:16.978 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:29:12 +0000 (0:00:00.026) 0:00:17.004 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:29:12 +0000 (0:00:00.025) 0:00:17.029 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:29:12 +0000 (0:00:00.024) 0:00:17.054 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:29:12 +0000 (0:00:00.023) 0:00:17.078 ******** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:29:12 +0000 (0:00:00.020) 0:00:17.098 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:29:12 +0000 (0:00:00.021) 0:00:17.120 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:29:13 +0000 (0:00:00.039) 0:00:17.160 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.042724", "end": "2024-01-08 14:29:13.236628", "rc": 1, "start": "2024-01-08 14:29:13.193904" } STDOUT: Connection 'statebr' (5cf3efae-b03d-403e-8faf-ab364e687969) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:65 Monday 08 January 2024 14:29:13 +0000 (0:00:00.261) 0:00:17.421 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:29:13 +0000 (0:00:00.038) 0:00:17.460 ******** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:29:13 +0000 (0:00:00.022) 0:00:17.482 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:29:13 +0000 (0:00:00.047) 0:00:17.529 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:29:13 +0000 (0:00:00.038) 0:00:17.567 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:29:13 +0000 (0:00:00.037) 0:00:17.605 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002930", "end": "2024-01-08 14:29:13.664789", "rc": 0, "start": "2024-01-08 14:29:13.661859" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:29:13 +0000 (0:00:00.220) 0:00:17.826 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:29:13 +0000 (0:00:00.023) 0:00:17.849 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:29:13 +0000 (0:00:00.023) 0:00:17.873 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:29:13 +0000 (0:00:00.037) 0:00:17.910 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:13 +0000 (0:00:00.059) 0:00:17.970 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:13 +0000 (0:00:00.040) 0:00:18.010 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:13 +0000 (0:00:00.026) 0:00:18.037 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:13 +0000 (0:00:00.020) 0:00:18.057 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:13 +0000 (0:00:00.020) 0:00:18.078 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:15 +0000 (0:00:01.525) 0:00:19.604 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:16 +0000 (0:00:01.329) 0:00:20.933 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:16 +0000 (0:00:00.023) 0:00:20.957 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:16 +0000 (0:00:00.020) 0:00:20.978 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:16 +0000 (0:00:00.020) 0:00:20.999 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:16 +0000 (0:00:00.043) 0:00:21.042 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:16 +0000 (0:00:00.020) 0:00:21.062 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:16 +0000 (0:00:00.020) 0:00:21.083 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:16 +0000 (0:00:00.024) 0:00:21.107 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:17 +0000 (0:00:00.347) 0:00:21.454 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:17 +0000 (0:00:00.025) 0:00:21.479 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:17 +0000 (0:00:00.020) 0:00:21.500 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:17 +0000 (0:00:00.045) 0:00:21.546 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:17 +0000 (0:00:00.388) 0:00:21.934 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:17 +0000 (0:00:00.022) 0:00:21.957 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:17 +0000 (0:00:00.023) 0:00:21.980 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:17 +0000 (0:00:00.022) 0:00:22.002 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:17 +0000 (0:00:00.020) 0:00:22.023 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:29:18 +0000 (0:00:00.200) 0:00:22.223 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:29:18 +0000 (0:00:00.024) 0:00:22.248 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:29:18 +0000 (0:00:00.041) 0:00:22.289 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:18 +0000 (0:00:00.043) 0:00:22.333 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:18 +0000 (0:00:00.070) 0:00:22.404 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:18 +0000 (0:00:00.028) 0:00:22.432 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:18 +0000 (0:00:00.028) 0:00:22.461 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:18 +0000 (0:00:00.022) 0:00:22.483 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:19 +0000 (0:00:01.580) 0:00:24.064 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:21 +0000 (0:00:01.334) 0:00:25.399 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:21 +0000 (0:00:00.024) 0:00:25.423 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:21 +0000 (0:00:00.021) 0:00:25.445 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:21 +0000 (0:00:00.021) 0:00:25.466 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:21 +0000 (0:00:00.042) 0:00:25.509 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:21 +0000 (0:00:00.021) 0:00:25.530 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:21 +0000 (0:00:00.020) 0:00:25.551 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:21 +0000 (0:00:00.024) 0:00:25.575 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:21 +0000 (0:00:00.341) 0:00:25.917 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:21 +0000 (0:00:00.025) 0:00:25.943 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:21 +0000 (0:00:00.020) 0:00:25.963 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:21 +0000 (0:00:00.021) 0:00:25.985 ******** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:22 +0000 (0:00:00.411) 0:00:26.397 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:22 +0000 (0:00:00.023) 0:00:26.420 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:22 +0000 (0:00:00.024) 0:00:26.445 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c25003b9-cb1f-45cd-82d1-2e27c1768c9c skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:22 +0000 (0:00:00.031) 0:00:26.476 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:22 +0000 (0:00:00.031) 0:00:26.508 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:29:22 +0000 (0:00:00.197) 0:00:26.705 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:29:22 +0000 (0:00:00.053) 0:00:26.759 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:22 +0000 (0:00:00.038) 0:00:26.797 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724157.7193627, "block_size": 4096, "blocks": 0, "ctime": 1704724157.7193627, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 35906, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1704724157.7193627, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:29:22 +0000 (0:00:00.209) 0:00:27.007 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:29:22 +0000 (0:00:00.024) 0:00:27.031 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:29:22 +0000 (0:00:00.037) 0:00:27.069 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:29:22 +0000 (0:00:00.022) 0:00:27.091 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724157.77488, "block_size": 4096, "blocks": 8, "ctime": 1704724157.7178798, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6287477, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724157.7178798, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:29:23 +0000 (0:00:00.195) 0:00:27.286 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:29:23 +0000 (0:00:00.025) 0:00:27.312 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021036", "end": "2024-01-08 14:29:23.368514", "rc": 0, "start": "2024-01-08 14:29:23.347478" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:29:23 +0000 (0:00:00.218) 0:00:27.530 ******** 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-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:29:23 +0000 (0:00:00.026) 0:00:27.557 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:29:23 +0000 (0:00:00.024) 0:00:27.581 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:29:23 +0000 (0:00:00.023) 0:00:27.605 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:29:23 +0000 (0:00:00.024) 0:00:27.629 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:29:23 +0000 (0:00:00.025) 0:00:27.655 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:29:23 +0000 (0:00:00.025) 0:00:27.681 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:29:23 +0000 (0:00:00.025) 0:00:27.707 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:29:23 +0000 (0:00:00.023) 0:00:27.731 ******** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:29:23 +0000 (0:00:00.022) 0:00:27.753 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:29:23 +0000 (0:00:00.022) 0:00:27.775 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:29:23 +0000 (0:00:00.039) 0:00:27.814 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.061995", "end": "2024-01-08 14:29:23.909595", "rc": 1, "start": "2024-01-08 14:29:23.847600" } STDOUT: Connection 'statebr' (c25003b9-cb1f-45cd-82d1-2e27c1768c9c) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:83 Monday 08 January 2024 14:29:23 +0000 (0:00:00.277) 0:00:28.092 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:29:23 +0000 (0:00:00.039) 0:00:28.132 ******** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:29:24 +0000 (0:00:00.024) 0:00:28.157 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:29:24 +0000 (0:00:00.044) 0:00:28.201 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:29:24 +0000 (0:00:00.037) 0:00:28.238 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:29:24 +0000 (0:00:00.034) 0:00:28.272 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003245", "end": "2024-01-08 14:29:24.310519", "rc": 0, "start": "2024-01-08 14:29:24.307274" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:29:24 +0000 (0:00:00.200) 0:00:28.473 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:29:24 +0000 (0:00:00.025) 0:00:28.498 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:29:24 +0000 (0:00:00.023) 0:00:28.522 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:29:24 +0000 (0:00:00.045) 0:00:28.567 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:24 +0000 (0:00:00.065) 0:00:28.633 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:24 +0000 (0:00:00.044) 0:00:28.677 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:24 +0000 (0:00:00.027) 0:00:28.704 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:24 +0000 (0:00:00.023) 0:00:28.727 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:24 +0000 (0:00:00.022) 0:00:28.750 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:26 +0000 (0:00:01.526) 0:00:30.276 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:27 +0000 (0:00:01.329) 0:00:31.606 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:27 +0000 (0:00:00.023) 0:00:31.629 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:27 +0000 (0:00:00.022) 0:00:31.652 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:27 +0000 (0:00:00.021) 0:00:31.674 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:27 +0000 (0:00:00.043) 0:00:31.717 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:27 +0000 (0:00:00.020) 0:00:31.738 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:27 +0000 (0:00:00.020) 0:00:31.759 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:27 +0000 (0:00:00.023) 0:00:31.782 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:27 +0000 (0:00:00.344) 0:00:32.126 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:28 +0000 (0:00:00.025) 0:00:32.151 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:28 +0000 (0:00:00.050) 0:00:32.202 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:28 +0000 (0:00:00.021) 0:00:32.223 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:28 +0000 (0:00:00.390) 0:00:32.614 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:28 +0000 (0:00:00.022) 0:00:32.636 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:28 +0000 (0:00:00.022) 0:00:32.659 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:28 +0000 (0:00:00.022) 0:00:32.682 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:28 +0000 (0:00:00.021) 0:00:32.703 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:29:28 +0000 (0:00:00.193) 0:00:32.896 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:29:28 +0000 (0:00:00.022) 0:00:32.919 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:28 +0000 (0:00:00.037) 0:00:32.957 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:28 +0000 (0:00:00.041) 0:00:32.998 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:28 +0000 (0:00:00.025) 0:00:33.024 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:28 +0000 (0:00:00.046) 0:00:33.071 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:28 +0000 (0:00:00.022) 0:00:33.093 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:30 +0000 (0:00:01.527) 0:00:34.621 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:31 +0000 (0:00:01.323) 0:00:35.945 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:31 +0000 (0:00:00.024) 0:00:35.969 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:31 +0000 (0:00:00.021) 0:00:35.990 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:31 +0000 (0:00:00.023) 0:00:36.014 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:31 +0000 (0:00:00.046) 0:00:36.061 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:31 +0000 (0:00:00.035) 0:00:36.096 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:31 +0000 (0:00:00.023) 0:00:36.120 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:32 +0000 (0:00:00.026) 0:00:36.147 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:32 +0000 (0:00:00.346) 0:00:36.493 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:32 +0000 (0:00:00.027) 0:00:36.520 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:32 +0000 (0:00:00.022) 0:00:36.542 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:32 +0000 (0:00:00.021) 0:00:36.564 ******** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:32 +0000 (0:00:00.328) 0:00:36.892 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:32 +0000 (0:00:00.021) 0:00:36.914 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:32 +0000 (0:00:00.048) 0:00:36.962 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f22f70e4-057d-4ee9-a7d7-8ad284294f7c skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:32 +0000 (0:00:00.023) 0:00:36.986 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:32 +0000 (0:00:00.020) 0:00:37.007 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:29:33 +0000 (0:00:00.190) 0:00:37.197 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:29:33 +0000 (0:00:00.041) 0:00:37.239 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:33 +0000 (0:00:00.041) 0:00:37.281 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:33 +0000 (0:00:00.040) 0:00:37.321 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:33 +0000 (0:00:00.026) 0:00:37.347 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:33 +0000 (0:00:00.020) 0:00:37.367 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:33 +0000 (0:00:00.021) 0:00:37.388 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:34 +0000 (0:00:01.537) 0:00:38.926 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:36 +0000 (0:00:01.302) 0:00:40.229 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:36 +0000 (0:00:00.023) 0:00:40.252 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:36 +0000 (0:00:00.021) 0:00:40.274 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:36 +0000 (0:00:00.020) 0:00:40.295 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:36 +0000 (0:00:00.073) 0:00:40.369 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:36 +0000 (0:00:00.022) 0:00:40.392 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:36 +0000 (0:00:00.022) 0:00:40.414 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:36 +0000 (0:00:00.025) 0:00:40.440 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:36 +0000 (0:00:00.344) 0:00:40.784 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:36 +0000 (0:00:00.026) 0:00:40.811 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:36 +0000 (0:00:00.023) 0:00:40.834 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:36 +0000 (0:00:00.021) 0:00:40.856 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:37 +0000 (0:00:00.357) 0:00:41.214 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:37 +0000 (0:00:00.021) 0:00:41.235 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:37 +0000 (0:00:00.021) 0:00:41.256 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:37 +0000 (0:00:00.021) 0:00:41.278 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:37 +0000 (0:00:00.020) 0:00:41.298 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:29:37 +0000 (0:00:00.218) 0:00:41.517 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:29:37 +0000 (0:00:00.043) 0:00:41.560 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:37 +0000 (0:00:00.035) 0:00:41.596 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724168.3979769, "block_size": 4096, "blocks": 0, "ctime": 1704724168.3979769, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 36037, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1704724168.3979769, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:29:37 +0000 (0:00:00.199) 0:00:41.795 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:29:37 +0000 (0:00:00.024) 0:00:41.820 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:29:37 +0000 (0:00:00.037) 0:00:41.857 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:29:37 +0000 (0:00:00.021) 0:00:41.879 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:29:37 +0000 (0:00:00.193) 0:00:42.073 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:29:37 +0000 (0:00:00.022) 0:00:42.095 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021827", "end": "2024-01-08 14:29:38.153805", "rc": 1, "start": "2024-01-08 14:29:38.131978" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:29:38 +0000 (0:00:00.220) 0:00:42.316 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:29:38 +0000 (0:00:00.023) 0:00:42.339 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:29:38 +0000 (0:00:00.054) 0:00:42.393 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:29:38 +0000 (0:00:00.023) 0:00:42.417 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:29:38 +0000 (0:00:00.022) 0:00:42.439 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:29:38 +0000 (0:00:00.022) 0:00:42.462 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:29:38 +0000 (0:00:00.024) 0:00:42.486 ******** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:29:38 +0000 (0:00:00.020) 0:00:42.507 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:29:38 +0000 (0:00:00.021) 0:00:42.528 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:29:38 +0000 (0:00:00.042) 0:00:42.570 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.076924", "end": "2024-01-08 14:29:38.686844", "rc": 1, "start": "2024-01-08 14:29:38.609920" } STDOUT: Connection 'statebr' (f22f70e4-057d-4ee9-a7d7-8ad284294f7c) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:103 Monday 08 January 2024 14:29:38 +0000 (0:00:00.277) 0:00:42.848 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:29:38 +0000 (0:00:00.037) 0:00:42.886 ******** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:29:38 +0000 (0:00:00.024) 0:00:42.910 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:29:38 +0000 (0:00:00.047) 0:00:42.957 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:29:38 +0000 (0:00:00.037) 0:00:42.994 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:29:38 +0000 (0:00:00.064) 0:00:43.058 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003171", "end": "2024-01-08 14:29:39.097650", "rc": 0, "start": "2024-01-08 14:29:39.094479" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:29:39 +0000 (0:00:00.202) 0:00:43.261 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:29:39 +0000 (0:00:00.024) 0:00:43.285 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:29:39 +0000 (0:00:00.023) 0:00:43.309 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:29:39 +0000 (0:00:00.046) 0:00:43.356 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:39 +0000 (0:00:00.037) 0:00:43.393 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:39 +0000 (0:00:00.040) 0:00:43.433 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:39 +0000 (0:00:00.027) 0:00:43.461 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:39 +0000 (0:00:00.020) 0:00:43.481 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:39 +0000 (0:00:00.020) 0:00:43.502 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:40 +0000 (0:00:01.538) 0:00:45.041 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:42 +0000 (0:00:01.301) 0:00:46.342 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:42 +0000 (0:00:00.024) 0:00:46.366 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:42 +0000 (0:00:00.022) 0:00:46.389 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:42 +0000 (0:00:00.046) 0:00:46.435 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:42 +0000 (0:00:00.046) 0:00:46.481 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:42 +0000 (0:00:00.022) 0:00:46.503 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:42 +0000 (0:00:00.021) 0:00:46.525 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:42 +0000 (0:00:00.025) 0:00:46.550 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:42 +0000 (0:00:00.344) 0:00:46.895 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:42 +0000 (0:00:00.029) 0:00:46.925 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:42 +0000 (0:00:00.025) 0:00:46.950 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:42 +0000 (0:00:00.031) 0:00:46.981 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:43 +0000 (0:00:00.377) 0:00:47.359 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:43 +0000 (0:00:00.021) 0:00:47.380 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:43 +0000 (0:00:00.022) 0:00:47.403 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:43 +0000 (0:00:00.023) 0:00:47.426 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:43 +0000 (0:00:00.020) 0:00:47.447 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:29:43 +0000 (0:00:00.191) 0:00:47.638 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:29:43 +0000 (0:00:00.024) 0:00:47.663 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:43 +0000 (0:00:00.038) 0:00:47.702 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:43 +0000 (0:00:00.041) 0:00:47.744 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:43 +0000 (0:00:00.026) 0:00:47.771 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:43 +0000 (0:00:00.020) 0:00:47.792 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:43 +0000 (0:00:00.020) 0:00:47.812 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:45 +0000 (0:00:01.553) 0:00:49.366 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:46 +0000 (0:00:01.305) 0:00:50.672 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:46 +0000 (0:00:00.024) 0:00:50.696 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:46 +0000 (0:00:00.023) 0:00:50.719 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:46 +0000 (0:00:00.021) 0:00:50.740 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:46 +0000 (0:00:00.044) 0:00:50.785 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:46 +0000 (0:00:00.026) 0:00:50.811 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:46 +0000 (0:00:00.022) 0:00:50.834 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:46 +0000 (0:00:00.024) 0:00:50.859 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:47 +0000 (0:00:00.341) 0:00:51.200 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:47 +0000 (0:00:00.026) 0:00:51.226 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:51.249 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:47 +0000 (0:00:00.021) 0:00:51.271 ******** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:47 +0000 (0:00:00.334) 0:00:51.606 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:47 +0000 (0:00:00.022) 0:00:51.628 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:51.652 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 620615ec-a4b7-43dd-9186-ec3e9095cb7e skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:51.676 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:51.699 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:29:47 +0000 (0:00:00.195) 0:00:51.894 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:47 +0000 (0:00:00.037) 0:00:51.931 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:47 +0000 (0:00:00.072) 0:00:52.004 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:47 +0000 (0:00:00.027) 0:00:52.032 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:52.055 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:47 +0000 (0:00:00.023) 0:00:52.078 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:49 +0000 (0:00:01.529) 0:00:53.608 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:50 +0000 (0:00:01.328) 0:00:54.937 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:50 +0000 (0:00:00.025) 0:00:54.962 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:50 +0000 (0:00:00.023) 0:00:54.986 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:50 +0000 (0:00:00.032) 0:00:55.019 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:50 +0000 (0:00:00.069) 0:00:55.089 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:51 +0000 (0:00:00.053) 0:00:55.142 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:51 +0000 (0:00:00.038) 0:00:55.181 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:51 +0000 (0:00:00.030) 0:00:55.211 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:51 +0000 (0:00:00.351) 0:00:55.562 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:51 +0000 (0:00:00.027) 0:00:55.589 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:51 +0000 (0:00:00.023) 0:00:55.613 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:51 +0000 (0:00:00.021) 0:00:55.635 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:51 +0000 (0:00:00.418) 0:00:56.053 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:51 +0000 (0:00:00.022) 0:00:56.076 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:51 +0000 (0:00:00.023) 0:00:56.099 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:51 +0000 (0:00:00.024) 0:00:56.123 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:52 +0000 (0:00:00.021) 0:00:56.145 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:29:52 +0000 (0:00:00.191) 0:00:56.336 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:29:52 +0000 (0:00:00.040) 0:00:56.377 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:52 +0000 (0:00:00.041) 0:00:56.419 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:52 +0000 (0:00:00.042) 0:00:56.461 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:52 +0000 (0:00:00.029) 0:00:56.490 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:52 +0000 (0:00:00.028) 0:00:56.519 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:52 +0000 (0:00:00.028) 0:00:56.548 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:29:53 +0000 (0:00:01.562) 0:00:58.110 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:29:55 +0000 (0:00:01.298) 0:00:59.408 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:29:55 +0000 (0:00:00.042) 0:00:59.451 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:29:55 +0000 (0:00:00.021) 0:00:59.473 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:29:55 +0000 (0:00:00.021) 0:00:59.494 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:29:55 +0000 (0:00:00.042) 0:00:59.537 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:29:55 +0000 (0:00:00.022) 0:00:59.559 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:29:55 +0000 (0:00:00.023) 0:00:59.582 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:29:55 +0000 (0:00:00.032) 0:00:59.615 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:29:55 +0000 (0:00:00.350) 0:00:59.966 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:29:55 +0000 (0:00:00.025) 0:00:59.991 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:29:55 +0000 (0:00:00.021) 0:01:00.012 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:29:55 +0000 (0:00:00.020) 0:01:00.033 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:29:56 +0000 (0:00:00.402) 0:01:00.435 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:29:56 +0000 (0:00:00.022) 0:01:00.457 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:29:56 +0000 (0:00:00.022) 0:01:00.479 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:29:56 +0000 (0:00:00.050) 0:01:00.530 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:29:56 +0000 (0:00:00.023) 0:01:00.553 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:29:56 +0000 (0:00:00.194) 0:01:00.748 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:29:56 +0000 (0:00:00.041) 0:01:00.789 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:29:56 +0000 (0:00:00.040) 0:01:00.829 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:29:56 +0000 (0:00:00.022) 0:01:00.852 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:29:56 +0000 (0:00:00.195) 0:01:01.048 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:29:56 +0000 (0:00:00.021) 0:01:01.069 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020489", "end": "2024-01-08 14:29:57.122029", "rc": 1, "start": "2024-01-08 14:29:57.101540" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:29:57 +0000 (0:00:00.213) 0:01:01.282 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:29:57 +0000 (0:00:00.023) 0:01:01.306 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:29:57 +0000 (0:00:00.021) 0:01:01.328 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:29:57 +0000 (0:00:00.021) 0:01:01.349 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:29:57 +0000 (0:00:00.050) 0:01:01.400 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:29:57 +0000 (0:00:00.023) 0:01:01.424 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:29:57 +0000 (0:00:00.027) 0:01:01.451 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:29:57 +0000 (0:00:00.043) 0:01:01.495 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:29:57 +0000 (0:00:00.038) 0:01:01.533 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:29:57 +0000 (0:00:00.199) 0:01:01.732 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:29:57 +0000 (0:00:00.024) 0:01:01.757 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:29:57 +0000 (0:00:00.021) 0:01:01.778 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:29:57 +0000 (0:00:00.040) 0:01:01.819 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.041109", "end": "2024-01-08 14:29:57.893242", "rc": 1, "start": "2024-01-08 14:29:57.852133" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tests_states.yml:126 Monday 08 January 2024 14:29:57 +0000 (0:00:00.236) 0:01:02.055 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I will not get an error when I try to remove an absent profile] **** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:29:57 +0000 (0:00:00.036) 0:01:02.091 ******** ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:29:58 +0000 (0:00:00.047) 0:01:02.139 ******** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I will not get an error when I try to remove an absent profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:29:58 +0000 (0:00:00.045) 0:01:02.185 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:29:58 +0000 (0:00:00.034) 0:01:02.220 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:29:58 +0000 (0:00:00.033) 0:01:02.253 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003455", "end": "2024-01-08 14:29:58.293379", "rc": 0, "start": "2024-01-08 14:29:58.289924" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:29:58 +0000 (0:00:00.203) 0:01:02.457 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:29:58 +0000 (0:00:00.024) 0:01:02.481 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:29:58 +0000 (0:00:00.025) 0:01:02.507 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:29:58 +0000 (0:00:00.049) 0:01:02.556 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:29:58 +0000 (0:00:00.047) 0:01:02.603 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:29:58 +0000 (0:00:00.042) 0:01:02.646 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:29:58 +0000 (0:00:00.055) 0:01:02.701 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:29:58 +0000 (0:00:00.023) 0:01:02.725 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:29:58 +0000 (0:00:00.022) 0:01:02.747 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:30:00 +0000 (0:00:01.544) 0:01:04.292 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:30:01 +0000 (0:00:01.319) 0:01:05.611 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:30:01 +0000 (0:00:00.024) 0:01:05.636 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:30:01 +0000 (0:00:00.020) 0:01:05.657 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:30:01 +0000 (0:00:00.031) 0:01:05.688 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:30:01 +0000 (0:00:00.055) 0:01:05.743 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:30:01 +0000 (0:00:00.023) 0:01:05.767 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:30:01 +0000 (0:00:00.024) 0:01:05.791 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:30:01 +0000 (0:00:00.031) 0:01:05.823 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:30:02 +0000 (0:00:00.355) 0:01:06.178 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:30:02 +0000 (0:00:00.027) 0:01:06.206 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:30:02 +0000 (0:00:00.024) 0:01:06.230 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:30:02 +0000 (0:00:00.024) 0:01:06.255 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:30:02 +0000 (0:00:00.392) 0:01:06.647 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:30:02 +0000 (0:00:00.020) 0:01:06.668 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:30:02 +0000 (0:00:00.047) 0:01:06.715 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:30:02 +0000 (0:00:00.024) 0:01:06.739 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:30:02 +0000 (0:00:00.020) 0:01:06.760 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:30:02 +0000 (0:00:00.194) 0:01:06.955 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:30:02 +0000 (0:00:00.026) 0:01:06.981 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:30:02 +0000 (0:00:00.039) 0:01:07.021 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:30:02 +0000 (0:00:00.040) 0:01:07.061 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:30:02 +0000 (0:00:00.026) 0:01:07.088 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:30:02 +0000 (0:00:00.020) 0:01:07.108 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:30:02 +0000 (0:00:00.020) 0:01:07.129 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:30:04 +0000 (0:00:01.532) 0:01:08.661 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:30:05 +0000 (0:00:01.305) 0:01:09.967 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:30:05 +0000 (0:00:00.023) 0:01:09.990 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:30:05 +0000 (0:00:00.024) 0:01:10.014 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:30:05 +0000 (0:00:00.023) 0:01:10.037 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:30:05 +0000 (0:00:00.042) 0:01:10.080 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:30:05 +0000 (0:00:00.044) 0:01:10.125 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:30:06 +0000 (0:00:00.023) 0:01:10.148 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:30:06 +0000 (0:00:00.024) 0:01:10.173 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:30:06 +0000 (0:00:00.343) 0:01:10.517 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:30:06 +0000 (0:00:00.026) 0:01:10.543 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:30:06 +0000 (0:00:00.020) 0:01:10.564 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:30:06 +0000 (0:00:00.021) 0:01:10.585 ******** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:30:06 +0000 (0:00:00.331) 0:01:10.916 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:30:06 +0000 (0:00:00.021) 0:01:10.937 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:30:06 +0000 (0:00:00.022) 0:01:10.960 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 72d40d51-7017-4ad9-8ca3-ef9e1dca31a1 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:30:06 +0000 (0:00:00.021) 0:01:10.981 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:30:06 +0000 (0:00:00.021) 0:01:11.003 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:30:07 +0000 (0:00:00.191) 0:01:11.194 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:30:07 +0000 (0:00:00.061) 0:01:11.255 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:30:07 +0000 (0:00:00.040) 0:01:11.296 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:30:07 +0000 (0:00:00.026) 0:01:11.323 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:30:07 +0000 (0:00:00.020) 0:01:11.344 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:30:07 +0000 (0:00:00.022) 0:01:11.366 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:30:08 +0000 (0:00:01.555) 0:01:12.922 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:30:10 +0000 (0:00:01.323) 0:01:14.245 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:30:10 +0000 (0:00:00.022) 0:01:14.267 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:30:10 +0000 (0:00:00.021) 0:01:14.289 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:30:10 +0000 (0:00:00.021) 0:01:14.310 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:30:10 +0000 (0:00:00.042) 0:01:14.353 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:30:10 +0000 (0:00:00.021) 0:01:14.374 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:30:10 +0000 (0:00:00.021) 0:01:14.396 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:30:10 +0000 (0:00:00.023) 0:01:14.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 [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:30:10 +0000 (0:00:00.345) 0:01:14.765 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:30:10 +0000 (0:00:00.026) 0:01:14.791 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:30:10 +0000 (0:00:00.052) 0:01:14.843 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:30:10 +0000 (0:00:00.022) 0:01:14.866 ******** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:30:11 +0000 (0:00:00.404) 0:01:15.271 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:30:11 +0000 (0:00:00.023) 0:01:15.294 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:30:11 +0000 (0:00:00.024) 0:01:15.319 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:30:11 +0000 (0:00:00.023) 0:01:15.343 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:30:11 +0000 (0:00:00.022) 0:01:15.365 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:30:11 +0000 (0:00:00.192) 0:01:15.558 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:30:11 +0000 (0:00:00.040) 0:01:15.599 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:30:11 +0000 (0:00:00.036) 0:01:15.635 ******** included: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:30:11 +0000 (0:00:00.043) 0:01:15.679 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:30:11 +0000 (0:00:00.068) 0:01:15.748 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:30:11 +0000 (0:00:00.022) 0:01:15.770 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:30:11 +0000 (0:00:00.021) 0:01:15.791 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:30:13 +0000 (0:00:01.525) 0:01:17.317 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:30:14 +0000 (0:00:01.327) 0:01:18.644 ******** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:30:14 +0000 (0:00:00.024) 0:01:18.669 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:30:14 +0000 (0:00:00.024) 0:01:18.694 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:30:14 +0000 (0:00:00.024) 0:01:18.719 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:30:14 +0000 (0:00:00.050) 0:01:18.769 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:30:14 +0000 (0:00:00.032) 0:01:18.801 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:30:14 +0000 (0:00:00.026) 0:01:18.828 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:30:14 +0000 (0:00:00.027) 0:01:18.855 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:30:15 +0000 (0:00:00.348) 0:01:19.204 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:30:15 +0000 (0:00:00.030) 0:01:19.235 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:30:15 +0000 (0:00:00.026) 0:01:19.261 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:30:15 +0000 (0:00:00.021) 0:01:19.283 ******** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:30:15 +0000 (0:00:00.411) 0:01:19.694 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:30:15 +0000 (0:00:00.022) 0:01:19.717 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:30:15 +0000 (0:00:00.022) 0:01:19.740 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:30:15 +0000 (0:00:00.023) 0:01:19.764 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:30:15 +0000 (0:00:00.021) 0:01:19.785 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:30:15 +0000 (0:00:00.196) 0:01:19.981 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:30:15 +0000 (0:00:00.046) 0:01:20.028 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:30:15 +0000 (0:00:00.037) 0:01:20.066 ******** 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-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:30:15 +0000 (0:00:00.022) 0:01:20.088 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:30:16 +0000 (0:00:00.201) 0:01:20.290 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:30:16 +0000 (0:00:00.023) 0:01:20.313 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021297", "end": "2024-01-08 14:30:16.371280", "rc": 1, "start": "2024-01-08 14:30:16.349983" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:30:16 +0000 (0:00:00.220) 0:01:20.534 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:30:16 +0000 (0:00:00.059) 0:01:20.593 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:30:16 +0000 (0:00:00.023) 0:01:20.617 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:30:16 +0000 (0:00:00.024) 0:01:20.641 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:30:16 +0000 (0:00:00.024) 0:01:20.665 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:30:16 +0000 (0:00:00.023) 0:01:20.688 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Monday 08 January 2024 14:30:16 +0000 (0:00:00.024) 0:01:20.713 ******** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.942446", "end": "2024-01-08 14:30:17.691356", "rc": 0, "start": "2024-01-08 14:30:16.748910" } STDOUT: NetworkManager-1.40.16-14.el8 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Monday 08 January 2024 14:30:17 +0000 (0:00:01.141) 0:01:21.855 ******** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.40.16-14.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Monday 08 January 2024 14:30:17 +0000 (0:00:00.022) 0:01:21.878 ******** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.40.16-14.el8" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:30:17 +0000 (0:00:00.022) 0:01:21.901 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:30:17 +0000 (0:00:00.046) 0:01:21.947 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:30:17 +0000 (0:00:00.059) 0:01:22.006 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:30:18 +0000 (0:00:00.210) 0:01:22.217 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:30:18 +0000 (0:00:00.041) 0:01:22.258 ******** ok: [sut] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:30:18 +0000 (0:00:00.028) 0:01:22.287 ******** included: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typefycom2fs/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:30:18 +0000 (0:00:00.044) 0:01:22.331 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.040413", "end": "2024-01-08 14:30:18.406876", "rc": 1, "start": "2024-01-08 14:30:18.366463" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=321 changed=10 unreachable=0 failed=0 skipped=247 rescued=0 ignored=11 Monday 08 January 2024 14:30:18 +0000 (0:00:00.228) 0:01:22.560 ******** =============================================================================== linux-system-roles.network : Configure networking connection profiles --- 2.08s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 1.87s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 1.63s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.58s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.56s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.56s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.55s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which packages are installed --------- 1.48s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Enable EPEL 8 ----------------------------------------------------------- 1.43s /WORKDIR/git-route_typefycom2fs/tests/tasks/enable_epel.yml:35 ---------------- linux-system-roles.network : Configure networking connection profiles --- 1.41s /WORKDIR/git-route_typefycom2fs/tests/roles/linux-system-roles.network/tasks/main.yml:122 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---