# 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_type9yjoqf37/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/tests_states_nm.yml:6 Thursday 11 January 2024 15:12:19 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_type9yjoqf37/tests/tests_states_nm.yml:9 Thursday 11 January 2024 15:12:20 +0000 (0:00:00.917) 0:00:00.929 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/tasks/el_repo_setup.yml:3 Thursday 11 January 2024 15:12:20 +0000 (0:00:00.021) 0:00:00.951 ****** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/el_repo_setup.yml:19 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.512) 0:00:01.463 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/el_repo_setup.yml:24 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.248) 0:00:01.712 ****** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/el_repo_setup.yml:28 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.019) 0:00:01.732 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/el_repo_setup.yml:53 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.017) 0:00:01.749 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 38] ********************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml:8 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.029) 0:00:01.778 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml:24 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.008) 0:00:01.787 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml:30 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.008) 0:00:01.795 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml:35 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.007) 0:00:01.803 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tasks/enable_epel.yml:40 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.008) 0:00:01.811 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/tests_states_nm.yml:11 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.008) 0:00:01.819 ****** 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_type9yjoqf37/tests/playbooks/tests_states.yml:3 Thursday 11 January 2024 15:12:21 +0000 (0:00:00.009) 0:00:01.828 ****** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:11 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.770) 0:00:02.599 ****** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:22 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.010) 0:00:02.610 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.015) 0:00:02.625 ****** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.010) 0:00:02.636 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.031) 0:00:02.667 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.013) 0:00:02.681 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:12:22 +0000 (0:00:00.012) 0:00:02.693 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.004870", "end": "2024-01-11 15:12:23.666051", "rc": 0, "start": "2024-01-11 15:12:22.661181" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:12:23 +0000 (0:00:01.280) 0:00:03.974 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:12:23 +0000 (0:00:00.010) 0:00:03.985 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:12:23 +0000 (0:00:00.010) 0:00:03.995 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/delete_interface.yml:3 Thursday 11 January 2024 15:12:23 +0000 (0:00:00.019) 0:00:04.015 ****** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.008094", "end": "2024-01-11 15:12:23.917840", "rc": 1, "start": "2024-01-11 15:12:23.909746" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 11 January 2024 15:12:23 +0000 (0:00:00.209) 0:00:04.225 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:12:23 +0000 (0:00:00.013) 0:00:04.238 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.198) 0:00:04.437 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.011) 0:00:04.449 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.016) 0:00:04.465 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.030) 0:00:04.496 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.067) 0:00:04.564 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.011) 0:00:04.575 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.009) 0:00:04.584 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:24 +0000 (0:00:00.009) 0:00:04.594 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:26 +0000 (0:00:02.315) 0:00:06.909 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:27 +0000 (0:00:01.054) 0:00:07.963 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.023) 0:00:07.987 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.022) 0:00:08.010 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.021) 0:00:08.031 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.043) 0:00:08.074 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.020) 0:00:08.095 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.021) 0:00:08.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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:27 +0000 (0:00:00.029) 0:00:08.147 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:28 +0000 (0:00:00.722) 0:00:08.870 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:28 +0000 (0:00:00.027) 0:00:08.897 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:28 +0000 (0:00:00.024) 0:00:08.921 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:28 +0000 (0:00:00.022) 0:00:08.944 ****** 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, 98c3d2cd-95b0-472d-b830-a701760a58ca TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.524) 0:00:09.468 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.022) 0:00:09.490 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 98c3d2cd-95b0-472d-b830-a701760a58ca" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.023) 0:00:09.514 ****** 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, 98c3d2cd-95b0-472d-b830-a701760a58ca\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 98c3d2cd-95b0-472d-b830-a701760a58ca" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.023) 0:00:09.538 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.021) 0:00:09.560 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.285) 0:00:09.845 ****** 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, 98c3d2cd-95b0-472d-b830-a701760a58ca\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 98c3d2cd-95b0-472d-b830-a701760a58ca" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.023) 0:00:09.868 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.040) 0:00:09.909 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.059) 0:00:09.969 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.022) 0:00:09.992 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.211) 0:00:10.204 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:12:29 +0000 (0:00:00.022) 0:00:10.226 ****** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023723", "end": "2024-01-11 15:12:30.143360", "rc": 0, "start": "2024-01-11 15:12:30.119637" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.237) 0:00:10.463 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.025) 0:00:10.489 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.024) 0:00:10.513 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.023) 0:00:10.536 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.024) 0:00:10.561 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.022) 0:00:10.584 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.023) 0:00:10.607 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.023) 0:00:10.630 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.023) 0:00:10.654 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.081) 0:00:10.736 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.043) 0:00:10.779 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704985949.0939066, "block_size": 4096, "blocks": 0, "ctime": 1704985949.0939066, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37808, "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": 1704985949.0939066, "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_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.213) 0:00:10.993 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.026) 0:00:11.019 ****** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.022) 0:00:11.042 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:12:30 +0000 (0:00:00.044) 0:00:11.086 ****** 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.068006", "end": "2024-01-11 15:12:31.049348", "rc": 1, "start": "2024-01-11 15:12:30.981342" } STDOUT: Connection 'statebr' (98c3d2cd-95b0-472d-b830-a701760a58ca) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:45 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.281) 0:00:11.368 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.037) 0:00:11.405 ****** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.021) 0:00:11.427 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.045) 0:00:11.472 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.059) 0:00:11.532 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.035) 0:00:11.567 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003880", "end": "2024-01-11 15:12:31.465907", "rc": 0, "start": "2024-01-11 15:12:31.462027" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.217) 0:00:11.785 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.024) 0:00:11.809 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.022) 0:00:11.831 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/delete_interface.yml:3 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.042) 0:00:11.874 ****** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006593", "end": "2024-01-11 15:12:31.774061", "rc": 1, "start": "2024-01-11 15:12:31.767468" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.218) 0:00:12.092 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:12:31 +0000 (0:00:00.037) 0:00:12.129 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.213) 0:00:12.343 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.024) 0:00:12.367 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.062) 0:00:12.429 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.042) 0:00:12.472 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.042) 0:00:12.515 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.027) 0:00:12.542 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.022) 0:00:12.565 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:32 +0000 (0:00:00.023) 0:00:12.589 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:34 +0000 (0:00:02.236) 0:00:14.825 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.925) 0:00:15.751 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.023) 0:00:15.775 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.023) 0:00:15.798 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.022) 0:00:15.820 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.044) 0:00:15.865 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.021) 0:00:15.887 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.042) 0:00:15.929 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:35 +0000 (0:00:00.025) 0:00:15.955 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.578) 0:00:16.534 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.025) 0:00:16.560 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.021) 0:00:16.581 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.021) 0:00:16.603 ****** 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, 86d082a6-7677-4381-a5a3-d0f840c67e2e TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.385) 0:00:16.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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.021) 0:00:17.010 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 86d082a6-7677-4381-a5a3-d0f840c67e2e" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.022) 0:00:17.032 ****** 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, 86d082a6-7677-4381-a5a3-d0f840c67e2e\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 86d082a6-7677-4381-a5a3-d0f840c67e2e" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.022) 0:00:17.055 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:12:36 +0000 (0:00:00.021) 0:00:17.076 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.210) 0:00:17.287 ****** 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, 86d082a6-7677-4381-a5a3-d0f840c67e2e\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 86d082a6-7677-4381-a5a3-d0f840c67e2e" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.044) 0:00:17.331 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.044) 0:00:17.376 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.037) 0:00:17.413 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.210) 0:00:17.623 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.024) 0:00:17.648 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.040) 0:00:17.689 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.023) 0:00:17.712 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.208) 0:00:17.921 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.020) 0:00:17.942 ****** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022830", "end": "2024-01-11 15:12:37.857185", "rc": 0, "start": "2024-01-11 15:12:37.834355" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.233) 0:00:18.176 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.024) 0:00:18.200 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.044) 0:00:18.244 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:12:37 +0000 (0:00:00.023) 0:00:18.268 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.022) 0:00:18.290 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.022) 0:00:18.313 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.023) 0:00:18.337 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.024) 0:00:18.361 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.022) 0:00:18.384 ****** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.020) 0:00:18.404 ****** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.021) 0:00:18.426 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.042) 0:00:18.469 ****** 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.043306", "end": "2024-01-11 15:12:38.405581", "rc": 1, "start": "2024-01-11 15:12:38.362275" } STDOUT: Connection 'statebr' (86d082a6-7677-4381-a5a3-d0f840c67e2e) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:65 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.255) 0:00:18.724 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.039) 0:00:18.764 ****** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.022) 0:00:18.787 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.067) 0:00:18.854 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.036) 0:00:18.891 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.037) 0:00:18.928 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003784", "end": "2024-01-11 15:12:38.828046", "rc": 0, "start": "2024-01-11 15:12:38.824262" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.219) 0:00:19.147 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.023) 0:00:19.171 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.021) 0:00:19.193 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.039) 0:00:19.233 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:38 +0000 (0:00:00.038) 0:00:19.271 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:39 +0000 (0:00:00.041) 0:00:19.312 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:39 +0000 (0:00:00.026) 0:00:19.339 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:39 +0000 (0:00:00.047) 0:00:19.387 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:39 +0000 (0:00:00.023) 0:00:19.410 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:41 +0000 (0:00:02.280) 0:00:21.691 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.940) 0:00:22.632 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.023) 0:00:22.655 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.023) 0:00:22.678 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.021) 0:00:22.699 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.043) 0:00:22.743 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.021) 0:00:22.764 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.021) 0:00:22.786 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:42 +0000 (0:00:00.024) 0:00:22.810 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.576) 0:00:23.387 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.025) 0:00:23.413 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.021) 0:00:23.434 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.021) 0:00:23.455 ****** 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, dd2f424e-ede9-4949-89dc-97943457f1ec TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.445) 0:00:23.901 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.021) 0:00:23.923 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, dd2f424e-ede9-4949-89dc-97943457f1ec" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.022) 0:00:23.945 ****** 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, dd2f424e-ede9-4949-89dc-97943457f1ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, dd2f424e-ede9-4949-89dc-97943457f1ec" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.022) 0:00:23.967 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.021) 0:00:23.989 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.207) 0:00:24.197 ****** 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, dd2f424e-ede9-4949-89dc-97943457f1ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, dd2f424e-ede9-4949-89dc-97943457f1ec" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.024) 0:00:24.221 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml:3 Thursday 11 January 2024 15:12:43 +0000 (0:00:00.039) 0:00:24.260 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:44 +0000 (0:00:00.041) 0:00:24.301 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:44 +0000 (0:00:00.040) 0:00:24.342 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:44 +0000 (0:00:00.027) 0:00:24.369 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:44 +0000 (0:00:00.048) 0:00:24.418 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:44 +0000 (0:00:00.023) 0:00:24.441 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:46 +0000 (0:00:02.260) 0:00:26.702 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.943) 0:00:27.645 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.023) 0:00:27.669 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.021) 0:00:27.690 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.021) 0:00:27.712 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.043) 0:00:27.756 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.021) 0:00:27.778 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.020) 0:00:27.798 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:47 +0000 (0:00:00.024) 0:00:27.823 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.563) 0:00:28.386 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.025) 0:00:28.412 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.021) 0:00:28.434 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.020) 0:00:28.454 ****** 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, dd2f424e-ede9-4949-89dc-97943457f1ec skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.418) 0:00:28.873 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.023) 0:00:28.896 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, dd2f424e-ede9-4949-89dc-97943457f1ec skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.022) 0:00:28.919 ****** 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, dd2f424e-ede9-4949-89dc-97943457f1ec skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, dd2f424e-ede9-4949-89dc-97943457f1ec skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.022) 0:00:28.942 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.021) 0:00:28.963 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.205) 0:00:29.168 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.043) 0:00:29.212 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:12:48 +0000 (0:00:00.037) 0:00:29.250 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704985963.5360909, "block_size": 4096, "blocks": 0, "ctime": 1704985963.5360909, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37939, "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": 1704985963.5360909, "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_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.212) 0:00:29.462 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.023) 0:00:29.486 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.037) 0:00:29.524 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.047) 0:00:29.571 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.210) 0:00:29.781 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.021) 0:00:29.802 ****** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022612", "end": "2024-01-11 15:12:49.717607", "rc": 0, "start": "2024-01-11 15:12:49.694995" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.233) 0:00:30.036 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.024) 0:00:30.061 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.023) 0:00:30.084 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.023) 0:00:30.107 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.022) 0:00:30.130 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.023) 0:00:30.153 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.024) 0:00:30.178 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.023) 0:00:30.201 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.022) 0:00:30.224 ****** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.020) 0:00:30.244 ****** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:12:49 +0000 (0:00:00.021) 0:00:30.266 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.064) 0:00:30.330 ****** 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.070736", "end": "2024-01-11 15:12:50.295727", "rc": 1, "start": "2024-01-11 15:12:50.224991" } STDOUT: Connection 'statebr' (dd2f424e-ede9-4949-89dc-97943457f1ec) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:83 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.283) 0:00:30.614 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.039) 0:00:30.654 ****** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.022) 0:00:30.676 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.043) 0:00:30.719 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.036) 0:00:30.756 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.035) 0:00:30.792 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003624", "end": "2024-01-11 15:12:50.689362", "rc": 0, "start": "2024-01-11 15:12:50.685738" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.215) 0:00:31.008 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.023) 0:00:31.031 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.021) 0:00:31.053 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.067) 0:00:31.120 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.039) 0:00:31.160 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.043) 0:00:31.203 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.027) 0:00:31.230 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.023) 0:00:31.254 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:50 +0000 (0:00:00.022) 0:00:31.276 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:53 +0000 (0:00:02.234) 0:00:33.511 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.917) 0:00:34.428 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.022) 0:00:34.451 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:34.473 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:34.494 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.043) 0:00:34.537 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:34.559 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:34.580 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.024) 0:00:34.605 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.559) 0:00:35.164 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.026) 0:00:35.190 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:35.212 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:54 +0000 (0:00:00.021) 0:00:35.233 ****** 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, 40e5a93d-863e-486e-9b13-45410baee7ae TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.417) 0:00:35.650 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.022) 0:00:35.672 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 40e5a93d-863e-486e-9b13-45410baee7ae" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.022) 0:00:35.695 ****** 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, 40e5a93d-863e-486e-9b13-45410baee7ae\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 40e5a93d-863e-486e-9b13-45410baee7ae" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.022) 0:00:35.718 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.021) 0:00:35.740 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.209) 0:00:35.949 ****** 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, 40e5a93d-863e-486e-9b13-45410baee7ae\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 40e5a93d-863e-486e-9b13-45410baee7ae" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml:3 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.023) 0:00:35.973 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.059) 0:00:36.033 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.043) 0:00:36.076 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.026) 0:00:36.103 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.021) 0:00:36.125 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:12:55 +0000 (0:00:00.023) 0:00:36.148 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:12:58 +0000 (0:00:02.278) 0:00:38.426 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.925) 0:00:39.352 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.022) 0:00:39.375 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.021) 0:00:39.396 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.021) 0:00:39.418 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.043) 0:00:39.462 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.021) 0:00:39.483 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.023) 0:00:39.507 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.026) 0:00:39.534 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.557) 0:00:40.092 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.025) 0:00:40.117 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.021) 0:00:40.139 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:12:59 +0000 (0:00:00.021) 0:00:40.160 ****** 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, 40e5a93d-863e-486e-9b13-45410baee7ae skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.370) 0:00:40.531 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.023) 0:00:40.554 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 40e5a93d-863e-486e-9b13-45410baee7ae skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.024) 0:00:40.579 ****** 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, 40e5a93d-863e-486e-9b13-45410baee7ae skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 40e5a93d-863e-486e-9b13-45410baee7ae skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.023) 0:00:40.603 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.021) 0:00:40.624 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.212) 0:00:40.836 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove_profile.yml:3 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.042) 0:00:40.879 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.066) 0:00:40.945 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.044) 0:00:40.990 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.027) 0:00:41.018 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.022) 0:00:41.040 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:00 +0000 (0:00:00.021) 0:00:41.062 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:03 +0000 (0:00:02.356) 0:00:43.418 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.938) 0:00:44.357 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.023) 0:00:44.380 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.021) 0:00:44.402 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.023) 0:00:44.426 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.044) 0:00:44.470 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.021) 0:00:44.491 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.021) 0:00:44.512 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.025) 0:00:44.538 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.566) 0:00:45.104 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.026) 0:00:45.131 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.024) 0:00:45.155 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:04 +0000 (0:00:00.022) 0:00:45.178 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.412) 0:00:45.590 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.021) 0:00:45.612 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.022) 0:00:45.634 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.022) 0:00:45.657 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.020) 0:00:45.678 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.209) 0:00:45.887 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.044) 0:00:45.932 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.058) 0:00:45.990 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1704985975.2822042, "block_size": 4096, "blocks": 0, "ctime": 1704985975.2822042, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38070, "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": 1704985975.2822042, "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_type9yjoqf37/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.214) 0:00:46.204 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.026) 0:00:46.231 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:13:05 +0000 (0:00:00.040) 0:00:46.271 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.022) 0:00:46.294 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.210) 0:00:46.504 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.021) 0:00:46.526 ****** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023698", "end": "2024-01-11 15:13:06.445330", "rc": 1, "start": "2024-01-11 15:13:06.421632" } 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.237) 0:00:46.764 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.022) 0:00:46.786 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.022) 0:00:46.809 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.021) 0:00:46.830 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.022) 0:00:46.853 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.045) 0:00:46.899 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.024) 0:00:46.923 ****** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.020) 0:00:46.944 ****** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.022) 0:00:46.966 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:13:06 +0000 (0:00:00.040) 0:00:47.007 ****** 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.075249", "end": "2024-01-11 15:13:06.977329", "rc": 1, "start": "2024-01-11 15:13:06.902080" } STDOUT: Connection 'statebr' (40e5a93d-863e-486e-9b13-45410baee7ae) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:103 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.296) 0:00:47.303 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.038) 0:00:47.341 ****** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.022) 0:00:47.364 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.042) 0:00:47.407 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.036) 0:00:47.443 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.034) 0:00:47.478 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003628", "end": "2024-01-11 15:13:07.378471", "rc": 0, "start": "2024-01-11 15:13:07.374843" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.240) 0:00:47.719 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.024) 0:00:47.743 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.022) 0:00:47.766 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.045) 0:00:47.812 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.044) 0:00:47.857 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.042) 0:00:47.899 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.027) 0:00:47.927 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.022) 0:00:47.949 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:07 +0000 (0:00:00.023) 0:00:47.972 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:09 +0000 (0:00:02.263) 0:00:50.236 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:10 +0000 (0:00:00.922) 0:00:51.158 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:10 +0000 (0:00:00.027) 0:00:51.185 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:10 +0000 (0:00:00.023) 0:00:51.209 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:10 +0000 (0:00:00.055) 0:00:51.265 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.045) 0:00:51.310 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.021) 0:00:51.331 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.022) 0:00:51.354 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.027) 0:00:51.381 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.569) 0:00:51.951 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.026) 0:00:51.977 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.021) 0:00:51.999 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:11 +0000 (0:00:00.026) 0:00:52.026 ****** 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, 3081d754-5367-41d7-9206-3b669c01cb12 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.423) 0:00:52.449 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.022) 0:00:52.471 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 3081d754-5367-41d7-9206-3b669c01cb12" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.022) 0:00:52.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, 3081d754-5367-41d7-9206-3b669c01cb12\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 3081d754-5367-41d7-9206-3b669c01cb12" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.048) 0:00:52.543 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.022) 0:00:52.566 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.204) 0:00:52.771 ****** 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, 3081d754-5367-41d7-9206-3b669c01cb12\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 3081d754-5367-41d7-9206-3b669c01cb12" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml:3 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.024) 0:00:52.795 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.037) 0:00:52.832 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.041) 0:00:52.873 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.028) 0:00:52.902 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.021) 0:00:52.924 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:12 +0000 (0:00:00.021) 0:00:52.946 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:14 +0000 (0:00:02.257) 0:00:55.203 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.924) 0:00:56.127 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.023) 0:00:56.150 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.022) 0:00:56.173 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.021) 0:00:56.194 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.063) 0:00:56.258 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:15 +0000 (0:00:00.022) 0:00:56.280 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.022) 0:00:56.302 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.024) 0:00:56.327 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.551) 0:00:56.879 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.025) 0:00:56.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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.021) 0:00:56.926 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:16 +0000 (0:00:00.023) 0:00:56.949 ****** 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, 3081d754-5367-41d7-9206-3b669c01cb12 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.367) 0:00:57.316 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.024) 0:00:57.341 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 3081d754-5367-41d7-9206-3b669c01cb12 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.024) 0:00:57.366 ****** 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, 3081d754-5367-41d7-9206-3b669c01cb12 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 3081d754-5367-41d7-9206-3b669c01cb12 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.025) 0:00:57.392 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.023) 0:00:57.416 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove_profile.yml:3 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.220) 0:00:57.636 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.041) 0:00:57.677 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.042) 0:00:57.720 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.027) 0:00:57.748 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.023) 0:00:57.771 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:17 +0000 (0:00:00.022) 0:00:57.794 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:19 +0000 (0:00:02.175) 0:00:59.969 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.912) 0:01:00.881 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.025) 0:01:00.907 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.023) 0:01:00.930 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.025) 0:01:00.956 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.045) 0:01:01.002 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.023) 0:01:01.025 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.022) 0:01:01.047 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:20 +0000 (0:00:00.048) 0:01:01.096 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.556) 0:01:01.652 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.028) 0:01:01.680 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.022) 0:01:01.703 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.022) 0:01:01.725 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.400) 0:01:02.126 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.022) 0:01:02.149 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.023) 0:01:02.172 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.023) 0:01:02.195 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:21 +0000 (0:00:00.022) 0:01:02.217 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.205) 0:01:02.423 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.063) 0:01:02.486 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.042) 0:01:02.529 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.041) 0:01:02.570 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.028) 0:01:02.599 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.022) 0:01:02.621 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:22 +0000 (0:00:00.021) 0:01:02.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 : Check which packages are installed] ********* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:24 +0000 (0:00:02.197) 0:01:04.840 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.908) 0:01:05.748 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.022) 0:01:05.771 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.022) 0:01:05.793 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.021) 0:01:05.815 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.043) 0:01:05.859 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.023) 0:01:05.882 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.021) 0:01:05.903 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:25 +0000 (0:00:00.024) 0:01:05.927 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.553) 0:01:06.481 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.026) 0:01:06.507 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.021) 0:01:06.529 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.021) 0:01:06.550 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.463) 0:01:07.013 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.024) 0:01:07.037 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.023) 0:01:07.060 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.022) 0:01:07.083 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:26 +0000 (0:00:00.021) 0:01:07.105 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.204) 0:01:07.309 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.040) 0:01:07.350 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.062) 0:01:07.413 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.023) 0:01:07.436 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.208) 0:01:07.644 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.023) 0:01:07.668 ****** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021972", "end": "2024-01-11 15:13:27.580457", "rc": 1, "start": "2024-01-11 15:13:27.558485" } 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.231) 0:01:07.899 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.022) 0:01:07.922 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.022) 0:01:07.945 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.022) 0:01:07.967 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.022) 0:01:07.990 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.022) 0:01:08.012 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.023) 0:01:08.036 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.042) 0:01:08.079 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:13:27 +0000 (0:00:00.063) 0:01:08.142 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.211) 0:01:08.354 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.024) 0:01:08.378 ****** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.023) 0:01:08.402 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.045) 0:01:08.447 ****** 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.042197", "end": "2024-01-11 15:13:28.381560", "rc": 1, "start": "2024-01-11 15:13:28.339363" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tests_states.yml:126 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.252) 0:01:08.700 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:5 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.038) 0:01:08.739 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:9 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.023) 0:01:08.762 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:21 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.043) 0:01:08.805 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.036) 0:01:08.842 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.065) 0:01:08.908 ****** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003539", "end": "2024-01-11 15:13:28.802940", "rc": 0, "start": "2024-01-11 15:13:28.799401" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.213) 0:01:09.121 ****** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.023) 0:01:09.145 ****** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:24 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.023) 0:01:09.168 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.045) 0:01:09.214 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:28 +0000 (0:00:00.037) 0:01:09.251 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:29 +0000 (0:00:00.041) 0:01:09.292 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:29 +0000 (0:00:00.027) 0:01:09.320 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:29 +0000 (0:00:00.021) 0:01:09.342 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:29 +0000 (0:00:00.021) 0:01:09.363 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:31 +0000 (0:00:02.187) 0:01:11.551 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.908) 0:01:12.460 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.044) 0:01:12.504 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.023) 0:01:12.527 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.023) 0:01:12.551 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.047) 0:01:12.598 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.023) 0:01:12.621 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.021) 0:01:12.643 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.025) 0:01:12.668 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.557) 0:01:13.226 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.028) 0:01:13.254 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:32 +0000 (0:00:00.021) 0:01:13.276 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.021) 0:01:13.298 ****** 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, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.415) 0:01:13.714 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.021) 0:01:13.735 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.046) 0:01:13.781 ****** 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, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.024) 0:01:13.806 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.021) 0:01:13.827 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.203) 0:01:14.031 ****** 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, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/activate_profile.yml:3 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.024) 0:01:14.055 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.037) 0:01:14.093 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.041) 0:01:14.134 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.029) 0:01:14.163 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.022) 0:01:14.185 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:33 +0000 (0:00:00.021) 0:01:14.207 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:36 +0000 (0:00:02.212) 0:01:16.420 ****** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.922) 0:01:17.343 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.023) 0:01:17.367 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.021) 0:01:17.389 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.043) 0:01:17.432 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.045) 0:01:17.477 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.022) 0:01:17.500 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.021) 0:01:17.522 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.024) 0:01:17.547 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.551) 0:01:18.099 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.025) 0:01:18.124 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.021) 0:01:18.146 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:37 +0000 (0:00:00.021) 0:01:18.168 ****** 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, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.369) 0:01:18.537 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.022) 0:01:18.560 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.024) 0:01:18.584 ****** 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, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e2feb2f6-01e8-45cb-8f99-8c986c83e5fa skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.023) 0:01:18.608 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.048) 0:01:18.656 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.205) 0:01:18.862 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.040) 0:01:18.902 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.042) 0:01:18.945 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.027) 0:01:18.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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.021) 0:01:18.995 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:38 +0000 (0:00:00.021) 0:01:19.016 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:40 +0000 (0:00:02.199) 0:01:21.215 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.914) 0:01:22.130 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.025) 0:01:22.156 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.022) 0:01:22.179 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.021) 0:01:22.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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.043) 0:01:22.245 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:41 +0000 (0:00:00.021) 0:01:22.266 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.042) 0:01:22.309 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.026) 0:01:22.335 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.554) 0:01:22.890 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.026) 0:01:22.916 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.021) 0:01:22.937 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:42 +0000 (0:00:00.021) 0:01:22.959 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.455) 0:01:23.415 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.021) 0:01:23.436 ****** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.023) 0:01:23.459 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.022) 0:01:23.482 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.020) 0:01:23.503 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:30 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.226) 0:01:23.729 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.041) 0:01:23.771 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.037) 0:01:23.808 ****** included: /WORKDIR/git-route_type9yjoqf37/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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.041) 0:01:23.850 ****** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.027) 0:01:23.877 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.021) 0:01:23.899 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 11 January 2024 15:13:43 +0000 (0:00:00.021) 0:01:23.921 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 11 January 2024 15:13:45 +0000 (0:00:02.183) 0:01:26.104 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.911) 0:01:27.015 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.022) 0:01:27.038 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.021) 0:01:27.059 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.022) 0:01:27.081 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.043) 0:01:27.124 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.022) 0:01:27.147 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.042) 0:01:27.189 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 11 January 2024 15:13:46 +0000 (0:00:00.025) 0:01:27.215 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.553) 0:01:27.768 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.025) 0:01:27.794 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.021) 0:01:27.816 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.021) 0:01:27.838 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.387) 0:01:28.225 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.022) 0:01:28.247 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 11 January 2024 15:13:47 +0000 (0:00:00.023) 0:01:28.271 ****** 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_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:28.294 ****** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.021) 0:01:28.315 ****** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:36 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.202) 0:01:28.517 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.067) 0:01:28.585 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.039) 0:01:28.624 ****** 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:28.647 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.207) 0:01:28.855 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.021) 0:01:28.876 ****** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021516", "end": "2024-01-11 15:13:48.787418", "rc": 1, "start": "2024-01-11 15:13:48.765902" } 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_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.228) 0:01:29.105 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:29.127 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.023) 0:01:29.150 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:29.173 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:29.195 ****** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.022) 0:01:29.218 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Thursday 11 January 2024 15:13:48 +0000 (0:00:00.023) 0:01:29.241 ****** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.362687", "end": "2024-01-11 15:13:49.494625", "rc": 0, "start": "2024-01-11 15:13:49.131938" } STDOUT: NetworkManager-1.42.8-1.fc38 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.571) 0:01:29.813 ****** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.42.8-1.fc38" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.022) 0:01:29.836 ****** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.42.8-1.fc38" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/run_test.yml:42 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.022) 0:01:29.859 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.044) 0:01:29.904 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.036) 0:01:29.940 ****** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.209) 0:01:30.149 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:47 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.026) 0:01:30.176 ****** 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_type9yjoqf37/tests/playbooks/tasks/run_test.yml:66 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.022) 0:01:30.199 ****** included: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type9yjoqf37/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 11 January 2024 15:13:49 +0000 (0:00:00.041) 0:01:30.240 ****** 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.042127", "end": "2024-01-11 15:13:50.172586", "rc": 1, "start": "2024-01-11 15:13:50.130459" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=316 changed=10 unreachable=0 failed=0 skipped=252 rescued=0 ignored=11 Thursday 11 January 2024 15:13:50 +0000 (0:00:00.236) 0:01:30.477 ****** =============================================================================== linux-system-roles.network : Enable and start NetworkManager ------------ 2.99s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 2.36s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.32s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.28s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.28s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.26s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.26s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.26s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.24s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.23s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 2.23s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 2.22s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 2.21s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.20s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.20s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.19s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.18s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.18s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Enable and start NetworkManager ------------ 1.66s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Configure networking connection profiles --- 1.53s /WORKDIR/git-route_type9yjoqf37/tests/roles/linux-system-roles.network/tasks/main.yml:122 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [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. ---^---^---^---^---^---