# 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_typeeelr5ich/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/tests_states_nm.yml:5 Thursday 21 December 2023 17:09:31 +0000 (0:00:00.012) 0:00:00.012 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_typeeelr5ich/tests/tests_states_nm.yml:9 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.681) 0:00:00.693 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/tasks/el_repo_setup.yml:3 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.021) 0:00:00.715 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/el_repo_setup.yml:19 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.334) 0:00:01.050 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/el_repo_setup.yml:24 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.251) 0:00:01.302 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/el_repo_setup.yml:28 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.020) 0:00:01.322 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/el_repo_setup.yml:53 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.017) 0:00:01.339 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml:8 Thursday 21 December 2023 17:09:32 +0000 (0:00:00.030) 0:00:01.370 ***** 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_typeeelr5ich/tests/tasks/enable_epel.yml:24 Thursday 21 December 2023 17:09:33 +0000 (0:00:00.246) 0:00:01.616 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml:30 Thursday 21 December 2023 17:09:33 +0000 (0:00:00.010) 0:00:01.627 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml:35 Thursday 21 December 2023 17:09:33 +0000 (0:00:00.010) 0:00:01.638 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:01.246919", "end": "2023-12-21 17:09:34.621781", "rc": 0, "start": "2023-12-21 17:09:33.374862" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml:40 Thursday 21 December 2023 17:09:34 +0000 (0:00:01.432) 0:00:03.070 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/tests_states_nm.yml:11 Thursday 21 December 2023 17:09:34 +0000 (0:00:00.012) 0:00:03.083 ***** 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_typeeelr5ich/tests/playbooks/tests_states.yml:3 Thursday 21 December 2023 17:09:34 +0000 (0:00:00.011) 0:00:03.094 ***** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tests_states.yml:11 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.559) 0:00:03.654 ***** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tests_states.yml:22 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.010) 0:00:03.665 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.017) 0:00:03.682 ***** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.011) 0:00:03.693 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.036) 0:00:03.730 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.038) 0:00:03.768 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.017) 0:00:03.785 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003287", "end": "2023-12-21 17:09:35.525945", "rc": 0, "start": "2023-12-21 17:09:35.522658" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.189) 0:00:03.975 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.013) 0:00:03.988 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.010) 0:00:03.999 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/delete_interface.yml:3 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.021) 0:00:04.020 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.008051", "end": "2023-12-21 17:09:35.765873", "rc": 1, "start": "2023-12-21 17:09:35.757822" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.193) 0:00:04.213 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.015) 0:00:04.229 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.186) 0:00:04.415 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:09:35 +0000 (0:00:00.013) 0:00:04.429 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.018) 0:00:04.448 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.031) 0:00:04.479 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.067) 0:00:04.547 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.012) 0:00:04.559 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.011) 0:00:04.570 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:09:36 +0000 (0:00:00.010) 0:00:04.581 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:09:37 +0000 (0:00:01.647) 0:00:06.229 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:09:39 +0000 (0:00:01.484) 0:00:07.714 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.026) 0:00:07.740 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.026) 0:00:07.766 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.023) 0:00:07.790 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.054) 0:00:07.844 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.030) 0:00:07.875 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.025) 0:00:07.901 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.025) 0:00:07.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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:09:39 +0000 (0:00:00.479) 0:00:08.406 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.026) 0:00:08.432 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.021) 0:00:08.453 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.021) 0:00:08.475 ***** 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, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.532) 0:00:09.008 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.023) 0:00:09.031 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.024) 0:00:09.055 ***** 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, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.023) 0:00:09.079 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.021) 0:00:09.100 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.244) 0:00:09.345 ***** 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, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 10fb1602-8d00-4b33-8d9d-2aa2c2af5f21" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.024) 0:00:09.369 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 17:09:40 +0000 (0:00:00.052) 0:00:09.422 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.039) 0:00:09.462 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.022) 0:00:09.484 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178580.5364172, "block_size": 4096, "blocks": 8, "ctime": 1703178580.4844193, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703178580.4844193, "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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.197) 0:00:09.682 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.041) 0:00:09.724 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021508", "end": "2023-12-21 17:09:41.489385", "rc": 0, "start": "2023-12-21 17:09:41.467877" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.248) 0:00:09.972 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.025) 0:00:09.998 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.023) 0:00:10.021 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.023) 0:00:10.045 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.023) 0:00:10.069 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.023) 0:00:10.092 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.024) 0:00:10.117 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.024) 0:00:10.142 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.023) 0:00:10.165 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.044) 0:00:10.210 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:09:41 +0000 (0:00:00.049) 0:00:10.259 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178580.4865153, "block_size": 4096, "blocks": 0, "ctime": 1703178580.4865153, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37950, "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": 1703178580.4865153, "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_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.206) 0:00:10.465 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.027) 0:00:10.493 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.024) 0:00:10.517 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.085) 0:00:10.602 ***** 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.057813", "end": "2023-12-21 17:09:42.399166", "rc": 1, "start": "2023-12-21 17:09:42.341353" } STDOUT: Connection 'statebr' (10fb1602-8d00-4b33-8d9d-2aa2c2af5f21) 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_typeeelr5ich/tests/playbooks/tests_states.yml:45 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.256) 0:00:10.859 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.039) 0:00:10.898 ***** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.022) 0:00:10.920 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.046) 0:00:10.967 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.037) 0:00:11.005 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.036) 0:00:11.041 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003410", "end": "2023-12-21 17:09:42.786731", "rc": 0, "start": "2023-12-21 17:09:42.783321" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.204) 0:00:11.246 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.023) 0:00:11.270 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.022) 0:00:11.292 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/delete_interface.yml:3 Thursday 21 December 2023 17:09:42 +0000 (0:00:00.064) 0:00:11.357 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006524", "end": "2023-12-21 17:09:43.101461", "rc": 1, "start": "2023-12-21 17:09:43.094937" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.203) 0:00:11.560 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.037) 0:00:11.597 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.197) 0:00:11.795 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.024) 0:00:11.820 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.041) 0:00:11.861 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.042) 0:00:11.904 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.041) 0:00:11.946 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.027) 0:00:11.973 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.022) 0:00:11.996 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:09:43 +0000 (0:00:00.046) 0:00:12.042 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:09:45 +0000 (0:00:01.579) 0:00:13.622 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:09:46 +0000 (0:00:01.307) 0:00:14.930 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.025) 0:00:14.955 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.043) 0:00:14.999 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.024) 0:00:15.023 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.046) 0:00:15.070 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.023) 0:00:15.094 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.023) 0:00:15.117 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:09:46 +0000 (0:00:00.026) 0:00:15.143 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.348) 0:00:15.492 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.027) 0:00:15.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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.021) 0:00:15.541 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.023) 0:00:15.565 ***** 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, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.342) 0:00:15.907 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.023) 0:00:15.931 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.026) 0:00:15.957 ***** 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, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.032) 0:00:15.990 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.052) 0:00:16.042 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.217) 0:00:16.260 ***** 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, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9b78d9b4-b42b-45ae-b3c2-2d03a0c37464" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.027) 0:00:16.288 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.045) 0:00:16.333 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:09:47 +0000 (0:00:00.039) 0:00:16.372 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.198) 0:00:16.571 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.024) 0:00:16.595 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.042) 0:00:16.637 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.024) 0:00:16.662 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178587.4351456, "block_size": 4096, "blocks": 8, "ctime": 1703178587.4351456, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703178587.4351456, "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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.205) 0:00:16.867 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.024) 0:00:16.891 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019865", "end": "2023-12-21 17:09:48.649497", "rc": 0, "start": "2023-12-21 17:09:48.629632" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.241) 0:00:17.133 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.028) 0:00:17.162 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.027) 0:00:17.190 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.026) 0:00:17.216 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.028) 0:00:17.244 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.029) 0:00:17.273 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.028) 0:00:17.302 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.028) 0:00:17.330 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.024) 0:00:17.355 ***** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.020) 0:00:17.376 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:09:48 +0000 (0:00:00.024) 0:00:17.400 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.043) 0:00:17.443 ***** 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.042018", "end": "2023-12-21 17:09:49.235033", "rc": 1, "start": "2023-12-21 17:09:49.193015" } STDOUT: Connection 'statebr' (9b78d9b4-b42b-45ae-b3c2-2d03a0c37464) 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_typeeelr5ich/tests/playbooks/tests_states.yml:65 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.253) 0:00:17.697 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.073) 0:00:17.770 ***** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.025) 0:00:17.796 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.045) 0:00:17.841 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.042) 0:00:17.884 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.038) 0:00:17.922 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003457", "end": "2023-12-21 17:09:49.664909", "rc": 0, "start": "2023-12-21 17:09:49.661452" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.202) 0:00:18.125 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.024) 0:00:18.150 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.026) 0:00:18.176 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.041) 0:00:18.217 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.047) 0:00:18.264 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.069) 0:00:18.334 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.029) 0:00:18.364 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.026) 0:00:18.390 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:09:49 +0000 (0:00:00.022) 0:00:18.412 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:09:51 +0000 (0:00:01.569) 0:00:19.982 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:09:52 +0000 (0:00:01.329) 0:00:21.312 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:09:52 +0000 (0:00:00.025) 0:00:21.337 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:09:52 +0000 (0:00:00.024) 0:00:21.361 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:09:52 +0000 (0:00:00.023) 0:00:21.385 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.046) 0:00:21.432 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.030) 0:00:21.462 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.024) 0:00:21.487 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.032) 0:00:21.519 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.356) 0:00:21.876 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.027) 0:00:21.904 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.023) 0:00:21.928 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.021) 0:00:21.949 ***** 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, 0adb8f7b-afb9-4358-b43b-2b123955f549 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.379) 0:00:22.329 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.025) 0:00:22.355 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0adb8f7b-afb9-4358-b43b-2b123955f549" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.048) 0:00:22.404 ***** 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, 0adb8f7b-afb9-4358-b43b-2b123955f549\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0adb8f7b-afb9-4358-b43b-2b123955f549" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:09:53 +0000 (0:00:00.024) 0:00:22.428 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.022) 0:00:22.451 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.195) 0:00:22.646 ***** 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, 0adb8f7b-afb9-4358-b43b-2b123955f549\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0adb8f7b-afb9-4358-b43b-2b123955f549" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.023) 0:00:22.670 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.040) 0:00:22.711 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.040) 0:00:22.751 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.043) 0:00:22.795 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.028) 0:00:22.823 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.023) 0:00:22.847 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:09:54 +0000 (0:00:00.023) 0:00:22.870 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:09:56 +0000 (0:00:01.568) 0:00:24.439 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:09:57 +0000 (0:00:01.305) 0:00:25.744 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.024) 0:00:25.769 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.024) 0:00:25.794 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.047) 0:00:25.841 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.044) 0:00:25.886 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.022) 0:00:25.909 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.023) 0:00:25.932 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.027) 0:00:25.959 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.346) 0:00:26.306 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.025) 0:00:26.332 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.021) 0:00:26.353 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:09:57 +0000 (0:00:00.020) 0:00:26.374 ***** 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, 0adb8f7b-afb9-4358-b43b-2b123955f549 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.332) 0:00:26.706 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.023) 0:00:26.730 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0adb8f7b-afb9-4358-b43b-2b123955f549 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.023) 0:00:26.754 ***** 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, 0adb8f7b-afb9-4358-b43b-2b123955f549 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0adb8f7b-afb9-4358-b43b-2b123955f549 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.025) 0:00:26.779 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.023) 0:00:26.803 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.193) 0:00:26.997 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.045) 0:00:27.043 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.039) 0:00:27.082 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178593.8193886, "block_size": 4096, "blocks": 0, "ctime": 1703178593.8193886, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38081, "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": 1703178593.8193886, "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_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.200) 0:00:27.283 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.025) 0:00:27.308 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.039) 0:00:27.348 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:09:58 +0000 (0:00:00.021) 0:00:27.370 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178593.8748922, "block_size": 4096, "blocks": 8, "ctime": 1703178593.8168945, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703178593.8168945, "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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.196) 0:00:27.566 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.025) 0:00:27.592 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020312", "end": "2023-12-21 17:09:59.351166", "rc": 0, "start": "2023-12-21 17:09:59.330854" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.218) 0:00:27.811 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.049) 0:00:27.861 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.024) 0:00:27.885 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.024) 0:00:27.909 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.024) 0:00:27.934 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.023) 0:00:27.958 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.025) 0:00:27.984 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.025) 0:00:28.009 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.023) 0:00:28.032 ***** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.021) 0:00:28.054 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.023) 0:00:28.078 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.043) 0:00:28.121 ***** 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.063176", "end": "2023-12-21 17:09:59.924346", "rc": 1, "start": "2023-12-21 17:09:59.861170" } STDOUT: Connection 'statebr' (0adb8f7b-afb9-4358-b43b-2b123955f549) 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_typeeelr5ich/tests/playbooks/tests_states.yml:83 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.261) 0:00:28.383 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:09:59 +0000 (0:00:00.038) 0:00:28.421 ***** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.033) 0:00:28.455 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.119) 0:00:28.574 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.046) 0:00:28.621 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.041) 0:00:28.662 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003401", "end": "2023-12-21 17:10:00.403584", "rc": 0, "start": "2023-12-21 17:10:00.400183" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.205) 0:00:28.868 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.025) 0:00:28.893 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.023) 0:00:28.916 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.049) 0:00:28.966 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.041) 0:00:29.007 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.044) 0:00:29.052 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.030) 0:00:29.082 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.070) 0:00:29.152 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:00 +0000 (0:00:00.025) 0:00:29.178 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:02 +0000 (0:00:01.627) 0:00:30.805 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:03 +0000 (0:00:01.301) 0:00:32.106 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.045) 0:00:32.152 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.025) 0:00:32.177 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.023) 0:00:32.201 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.045) 0:00:32.247 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.023) 0:00:32.271 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.027) 0:00:32.298 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:03 +0000 (0:00:00.026) 0:00:32.325 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.344) 0:00:32.670 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.026) 0:00:32.697 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.021) 0:00:32.718 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.021) 0:00:32.739 ***** 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, d298c6a4-925f-4206-822c-30bf452968dd TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.390) 0:00:33.130 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.025) 0:00:33.156 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d298c6a4-925f-4206-822c-30bf452968dd" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.026) 0:00:33.182 ***** 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, d298c6a4-925f-4206-822c-30bf452968dd\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d298c6a4-925f-4206-822c-30bf452968dd" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.081) 0:00:33.263 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:04 +0000 (0:00:00.035) 0:00:33.299 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.195) 0:00:33.494 ***** 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, d298c6a4-925f-4206-822c-30bf452968dd\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d298c6a4-925f-4206-822c-30bf452968dd" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.023) 0:00:33.518 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.038) 0:00:33.557 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.043) 0:00:33.600 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.028) 0:00:33.628 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.022) 0:00:33.651 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:05 +0000 (0:00:00.023) 0:00:33.675 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:06 +0000 (0:00:01.582) 0:00:35.257 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:08 +0000 (0:00:01.303) 0:00:36.561 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.023) 0:00:36.584 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.021) 0:00:36.606 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.022) 0:00:36.629 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.044) 0:00:36.673 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.023) 0:00:36.696 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.021) 0:00:36.717 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.050) 0:00:36.768 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.347) 0:00:37.115 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.027) 0:00:37.142 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.022) 0:00:37.164 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:08 +0000 (0:00:00.021) 0:00:37.186 ***** 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, d298c6a4-925f-4206-822c-30bf452968dd skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.332) 0:00:37.519 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.023) 0:00:37.542 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, d298c6a4-925f-4206-822c-30bf452968dd skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.023) 0:00:37.566 ***** 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, d298c6a4-925f-4206-822c-30bf452968dd skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, d298c6a4-925f-4206-822c-30bf452968dd skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.023) 0:00:37.590 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.023) 0:00:37.614 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.195) 0:00:37.809 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove_profile.yml:3 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.042) 0:00:37.852 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.080) 0:00:37.932 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.043) 0:00:37.976 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.032) 0:00:38.008 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.023) 0:00:38.032 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:09 +0000 (0:00:00.024) 0:00:38.056 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:11 +0000 (0:00:01.576) 0:00:39.633 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:12 +0000 (0:00:01.340) 0:00:40.973 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.024) 0:00:40.998 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.023) 0:00:41.022 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.023) 0:00:41.046 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.043) 0:00:41.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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.021) 0:00:41.111 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.022) 0:00:41.133 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:12 +0000 (0:00:00.024) 0:00:41.157 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.346) 0:00:41.504 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.025) 0:00:41.530 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.046) 0:00:41.576 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.023) 0:00:41.600 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.352) 0:00:41.953 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.023) 0:00:41.976 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.024) 0:00:42.000 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.023) 0:00:42.024 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.022) 0:00:42.047 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.194) 0:00:42.242 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.043) 0:00:42.285 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:10:13 +0000 (0:00:00.037) 0:00:42.323 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703178604.6208167, "block_size": 4096, "blocks": 0, "ctime": 1703178604.6208167, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38212, "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": 1703178604.6208167, "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_typeeelr5ich/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.198) 0:00:42.521 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.024) 0:00:42.546 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.068) 0:00:42.614 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.026) 0:00:42.641 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.197) 0:00:42.839 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.023) 0:00:42.862 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020580", "end": "2023-12-21 17:10:14.621969", "rc": 1, "start": "2023-12-21 17:10:14.601389" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.219) 0:00:43.081 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.024) 0:00:43.106 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.025) 0:00:43.131 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.022) 0:00:43.154 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.023) 0:00:43.177 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.023) 0:00:43.201 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.025) 0:00:43.227 ***** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.022) 0:00:43.249 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.024) 0:00:43.273 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:10:14 +0000 (0:00:00.075) 0:00:43.349 ***** 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.075035", "end": "2023-12-21 17:10:15.163457", "rc": 1, "start": "2023-12-21 17:10:15.088422" } STDOUT: Connection 'statebr' (d298c6a4-925f-4206-822c-30bf452968dd) 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_typeeelr5ich/tests/playbooks/tests_states.yml:103 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.273) 0:00:43.623 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.039) 0:00:43.662 ***** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.025) 0:00:43.688 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.050) 0:00:43.738 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.056) 0:00:43.795 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.039) 0:00:43.834 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003445", "end": "2023-12-21 17:10:15.577836", "rc": 0, "start": "2023-12-21 17:10:15.574391" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.203) 0:00:44.038 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.024) 0:00:44.062 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.022) 0:00:44.085 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.078) 0:00:44.164 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.040) 0:00:44.205 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.043) 0:00:44.248 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.031) 0:00:44.280 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.024) 0:00:44.304 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:15 +0000 (0:00:00.028) 0:00:44.333 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:17 +0000 (0:00:01.572) 0:00:45.905 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:18 +0000 (0:00:01.375) 0:00:47.281 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:18 +0000 (0:00:00.030) 0:00:47.312 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:18 +0000 (0:00:00.040) 0:00:47.352 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:18 +0000 (0:00:00.027) 0:00:47.379 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.051) 0:00:47.431 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.024) 0:00:47.455 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.024) 0:00:47.480 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.027) 0:00:47.508 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.383) 0:00:47.892 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.040) 0:00:47.932 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.024) 0:00:47.956 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.026) 0:00:47.983 ***** 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, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.382) 0:00:48.365 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.026) 0:00:48.391 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:19 +0000 (0:00:00.032) 0:00:48.424 ***** 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, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.025) 0:00:48.450 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.024) 0:00:48.474 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.195) 0:00:48.670 ***** 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, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.031) 0:00:48.701 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.038) 0:00:48.739 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.041) 0:00:48.781 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.057) 0:00:48.839 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.023) 0:00:48.862 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:20 +0000 (0:00:00.029) 0:00:48.892 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:22 +0000 (0:00:01.557) 0:00:50.450 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:23 +0000 (0:00:01.330) 0:00:51.780 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.025) 0:00:51.806 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.022) 0:00:51.829 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.021) 0:00:51.851 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.044) 0:00:51.895 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.022) 0:00:51.918 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.022) 0:00:51.940 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.026) 0:00:51.967 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.346) 0:00:52.313 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.026) 0:00:52.339 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.021) 0:00:52.360 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:23 +0000 (0:00:00.021) 0:00:52.382 ***** 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, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.397) 0:00:52.779 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.024) 0:00:52.804 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.025) 0:00:52.829 ***** 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, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 692dce78-7b3b-4a42-9c8c-89cf04eb65c4 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.024) 0:00:52.854 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.023) 0:00:52.878 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove_profile.yml:3 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.195) 0:00:53.073 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.041) 0:00:53.114 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.044) 0:00:53.159 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.030) 0:00:53.189 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.023) 0:00:53.213 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:24 +0000 (0:00:00.031) 0:00:53.244 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:26 +0000 (0:00:01.568) 0:00:54.813 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:27 +0000 (0:00:01.304) 0:00:56.117 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.022) 0:00:56.140 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.021) 0:00:56.162 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.021) 0:00:56.183 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.043) 0:00:56.227 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.043) 0:00:56.270 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.023) 0:00:56.294 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:27 +0000 (0:00:00.026) 0:00:56.320 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.352) 0:00:56.673 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.036) 0:00:56.710 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.023) 0:00:56.734 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.023) 0:00:56.757 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.353) 0:00:57.111 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.023) 0:00:57.134 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.023) 0:00:57.158 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.023) 0:00:57.182 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.021) 0:00:57.204 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:10:28 +0000 (0:00:00.195) 0:00:57.399 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.073) 0:00:57.472 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.042) 0:00:57.515 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.042) 0:00:57.558 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.029) 0:00:57.587 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.023) 0:00:57.610 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:29 +0000 (0:00:00.022) 0:00:57.633 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:30 +0000 (0:00:01.622) 0:00:59.255 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:32 +0000 (0:00:01.299) 0:01:00.554 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.024) 0:01:00.579 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.023) 0:01:00.602 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.022) 0:01:00.625 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.044) 0:01:00.670 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.023) 0:01:00.693 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.022) 0:01:00.715 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.029) 0:01:00.744 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.345) 0:01:01.090 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.027) 0:01:01.118 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.030) 0:01:01.148 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:32 +0000 (0:00:00.022) 0:01:01.171 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.394) 0:01:01.565 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.024) 0:01:01.590 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.028) 0:01:01.618 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.035) 0:01:01.654 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.035) 0:01:01.690 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.219) 0:01:01.910 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.079) 0:01:01.989 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.078) 0:01:02.068 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.024) 0:01:02.092 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.196) 0:01:02.288 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:10:33 +0000 (0:00:00.025) 0:01:02.314 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019778", "end": "2023-12-21 17:10:34.073191", "rc": 1, "start": "2023-12-21 17:10:34.053413" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.220) 0:01:02.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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.034) 0:01:02.568 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.027) 0:01:02.596 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.040) 0:01:02.637 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.035) 0:01:02.672 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.028) 0:01:02.700 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.039) 0:01:02.740 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.054) 0:01:02.794 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.037) 0:01:02.832 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.255) 0:01:03.087 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.033) 0:01:03.121 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.045) 0:01:03.166 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:10:34 +0000 (0:00:00.053) 0:01:03.220 ***** 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.039142", "end": "2023-12-21 17:10:35.020838", "rc": 1, "start": "2023-12-21 17:10:34.981696" } 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_typeeelr5ich/tests/playbooks/tests_states.yml:126 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.272) 0:01:03.492 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.043) 0:01:03.535 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.025) 0:01:03.561 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.048) 0:01:03.610 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.066) 0:01:03.676 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.047) 0:01:03.724 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003452", "end": "2023-12-21 17:10:35.470265", "rc": 0, "start": "2023-12-21 17:10:35.466813" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.238) 0:01:03.962 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.024) 0:01:03.986 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.031) 0:01:04.017 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.051) 0:01:04.069 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.040) 0:01:04.109 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.045) 0:01:04.154 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.031) 0:01:04.185 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.023) 0:01:04.209 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:35 +0000 (0:00:00.026) 0:01:04.235 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:37 +0000 (0:00:01.596) 0:01:05.832 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:38 +0000 (0:00:01.342) 0:01:07.174 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.038) 0:01:07.212 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.023) 0:01:07.236 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.023) 0:01:07.260 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.048) 0:01:07.308 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.023) 0:01:07.332 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.025) 0:01:07.357 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:38 +0000 (0:00:00.054) 0:01:07.412 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.348) 0:01:07.761 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.028) 0:01:07.789 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.028) 0:01:07.818 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.067) 0:01:07.886 ***** 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, 258010ce-d433-44a9-b89c-05f30fd8dc99 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.484) 0:01:08.371 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:39 +0000 (0:00:00.051) 0:01:08.422 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 258010ce-d433-44a9-b89c-05f30fd8dc99" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.029) 0:01:08.451 ***** 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, 258010ce-d433-44a9-b89c-05f30fd8dc99\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 258010ce-d433-44a9-b89c-05f30fd8dc99" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.027) 0:01:08.479 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.024) 0:01:08.503 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.238) 0:01:08.742 ***** 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, 258010ce-d433-44a9-b89c-05f30fd8dc99\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 258010ce-d433-44a9-b89c-05f30fd8dc99" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.039) 0:01:08.782 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.047) 0:01:08.829 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.105) 0:01:08.934 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.037) 0:01:08.972 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.025) 0:01:08.998 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:40 +0000 (0:00:00.029) 0:01:09.027 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:42 +0000 (0:00:01.616) 0:01:10.643 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:43 +0000 (0:00:01.360) 0:01:12.004 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.027) 0:01:12.032 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.041) 0:01:12.073 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.037) 0:01:12.111 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.066) 0:01:12.177 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.029) 0:01:12.207 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.036) 0:01:12.243 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:43 +0000 (0:00:00.029) 0:01:12.273 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.381) 0:01:12.654 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.063) 0:01:12.718 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.052) 0:01:12.770 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.035) 0:01:12.806 ***** 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, 258010ce-d433-44a9-b89c-05f30fd8dc99 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.389) 0:01:13.196 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.077) 0:01:13.273 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 258010ce-d433-44a9-b89c-05f30fd8dc99 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.032) 0:01:13.305 ***** 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, 258010ce-d433-44a9-b89c-05f30fd8dc99 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 258010ce-d433-44a9-b89c-05f30fd8dc99 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.044) 0:01:13.350 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:44 +0000 (0:00:00.038) 0:01:13.389 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.199) 0:01:13.588 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.040) 0:01:13.628 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.046) 0:01:13.675 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.031) 0:01:13.706 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.026) 0:01:13.733 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:45 +0000 (0:00:00.028) 0:01:13.761 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:47 +0000 (0:00:01.683) 0:01:15.444 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:48 +0000 (0:00:01.379) 0:01:16.823 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.033) 0:01:16.857 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.025) 0:01:16.883 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.023) 0:01:16.906 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.046) 0:01:16.952 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.050) 0:01:17.003 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.045) 0:01:17.048 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:48 +0000 (0:00:00.051) 0:01:17.100 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.406) 0:01:17.507 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.028) 0:01:17.535 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.035) 0:01:17.571 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.025) 0:01:17.596 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.391) 0:01:17.988 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.023) 0:01:18.011 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.027) 0:01:18.039 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.029) 0:01:18.069 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.028) 0:01:18.097 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.210) 0:01:18.308 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.048) 0:01:18.357 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 17:10:49 +0000 (0:00:00.040) 0:01:18.397 ***** included: /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 17:10:50 +0000 (0:00:00.100) 0:01:18.497 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 17:10:50 +0000 (0:00:00.033) 0:01:18.531 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 17:10:50 +0000 (0:00:00.028) 0:01:18.559 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 17:10:50 +0000 (0:00:00.032) 0:01:18.592 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 17:10:51 +0000 (0:00:01.598) 0:01:20.190 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 17:10:53 +0000 (0:00:01.324) 0:01:21.514 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.027) 0:01:21.542 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.028) 0:01:21.571 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.033) 0:01:21.604 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.066) 0:01:21.670 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.029) 0:01:21.700 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.026) 0:01:21.727 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.030) 0:01:21.758 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.383) 0:01:22.141 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.028) 0:01:22.170 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.030) 0:01:22.200 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 17:10:53 +0000 (0:00:00.025) 0:01:22.225 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.345) 0:01:22.570 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.062) 0:01:22.633 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.025) 0:01:22.658 ***** 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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.025) 0:01:22.683 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.026) 0:01:22.710 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.194) 0:01:22.904 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.045) 0:01:22.949 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.040) 0:01:22.990 ***** 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.022) 0:01:23.013 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.198) 0:01:23.211 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 17:10:54 +0000 (0:00:00.023) 0:01:23.235 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019198", "end": "2023-12-21 17:10:54.992887", "rc": 1, "start": "2023-12-21 17:10:54.973689" } 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_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.217) 0:01:23.452 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.024) 0:01:23.477 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.054) 0:01:23.531 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.023) 0:01:23.555 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.025) 0:01:23.581 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.024) 0:01:23.606 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Thursday 21 December 2023 17:10:55 +0000 (0:00:00.025) 0:01:23.631 ***** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.937952", "end": "2023-12-21 17:10:56.306206", "rc": 0, "start": "2023-12-21 17:10:55.368254" } STDOUT: NetworkManager-1.40.16-11.el8 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Thursday 21 December 2023 17:10:56 +0000 (0:00:01.144) 0:01:24.775 ***** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.40.16-11.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.025) 0:01:24.800 ***** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.40.16-11.el8" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.025) 0:01:24.826 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.050) 0:01:24.876 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.038) 0:01:24.915 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.251) 0:01:25.166 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.031) 0:01:25.198 ***** 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_typeeelr5ich/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.035) 0:01:25.234 ***** included: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeeelr5ich/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 17:10:56 +0000 (0:00:00.048) 0:01:25.283 ***** 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.039513", "end": "2023-12-21 17:10:57.065932", "rc": 1, "start": "2023-12-21 17:10:57.026419" } 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 Thursday 21 December 2023 17:10:57 +0000 (0:00:00.242) 0:01:25.525 ***** =============================================================================== linux-system-roles.network : Configure networking connection profiles --- 2.17s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 1.91s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 1.68s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.65s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.63s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.62s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.62s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.60s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.60s /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/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_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_typeeelr5ich/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_typeeelr5ich/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_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Configure networking connection profiles --- 1.45s /WORKDIR/git-route_typeeelr5ich/tests/roles/linux-system-roles.network/tasks/main.yml:122 Enable EPEL 8 ----------------------------------------------------------- 1.43s /WORKDIR/git-route_typeeelr5ich/tests/tasks/enable_epel.yml:35 ---------------- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---