# 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-code_refactorpp5wg6l0/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tests_states_nm.yml:5 Thursday 30 November 2023 16:59:09 +0000 (0:00:00.021) 0:00:00.021 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tests_states_nm.yml:9 Thursday 30 November 2023 16:59:10 +0000 (0:00:00.986) 0:00:01.008 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 16:59:10 +0000 (0:00:00.033) 0:00:01.041 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 16:59:10 +0000 (0:00:00.567) 0:00:01.609 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.295) 0:00:01.904 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.035) 0:00:01.940 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.024) 0:00:01.964 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 37] ********************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.043) 0:00:02.007 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.012) 0:00:02.020 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.013) 0:00:02.033 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.014) 0:00:02.048 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.013) 0:00:02.061 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/tests_states_nm.yml:11 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.013) 0:00:02.075 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:3 Thursday 30 November 2023 16:59:11 +0000 (0:00:00.016) 0:00:02.092 ***** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:11 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.829) 0:00:02.922 ***** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:22 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.017) 0:00:02.939 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.030) 0:00:02.969 ***** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.018) 0:00:02.988 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.055) 0:00:03.043 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.028) 0:00:03.072 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 16:59:12 +0000 (0:00:00.035) 0:00:03.108 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005592", "end": "2023-11-30 16:59:13.729373", "rc": 0, "start": "2023-11-30 16:59:12.723781" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 16:59:13 +0000 (0:00:01.325) 0:00:04.433 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 16:59:13 +0000 (0:00:00.030) 0:00:04.463 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 16:59:13 +0000 (0:00:00.017) 0:00:04.481 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 16:59:13 +0000 (0:00:00.032) 0:00:04.514 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.009048", "end": "2023-11-30 16:59:14.046951", "rc": 1, "start": "2023-11-30 16:59:14.037903" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.237) 0:00:04.751 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.041) 0:00:04.793 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.211) 0:00:05.004 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.020) 0:00:05.025 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.030) 0:00:05.055 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.056) 0:00:05.112 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.101) 0:00:05.213 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.018) 0:00:05.231 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.014) 0:00:05.246 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:14 +0000 (0:00:00.017) 0:00:05.263 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:16 +0000 (0:00:02.274) 0:00:07.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 : Print network provider] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:17 +0000 (0:00:01.079) 0:00:08.617 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:17 +0000 (0:00:00.040) 0:00:08.658 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.039) 0:00:08.697 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.037) 0:00:08.734 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.081) 0:00:08.816 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.045) 0:00:08.862 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.044) 0:00:08.906 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:18 +0000 (0:00:00.050) 0:00:08.957 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.884) 0:00:09.842 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.036) 0:00:09.879 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.027) 0:00:09.906 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.030) 0:00:09.937 ***** 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, b71ed62e-31ad-4e0a-8658-01cb450002f5 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.663) 0:00:10.601 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:19 +0000 (0:00:00.046) 0:00:10.647 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b71ed62e-31ad-4e0a-8658-01cb450002f5" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.051) 0:00:10.699 ***** 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, b71ed62e-31ad-4e0a-8658-01cb450002f5\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b71ed62e-31ad-4e0a-8658-01cb450002f5" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.046) 0:00:10.745 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.045) 0:00:10.791 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.325) 0:00:11.116 ***** 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, b71ed62e-31ad-4e0a-8658-01cb450002f5\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b71ed62e-31ad-4e0a-8658-01cb450002f5" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.042) 0:00:11.159 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.100) 0:00:11.260 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.058) 0:00:11.318 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.036) 0:00:11.354 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.236) 0:00:11.591 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 16:59:20 +0000 (0:00:00.043) 0:00:11.635 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023563", "end": "2023-11-30 16:59:21.177400", "rc": 0, "start": "2023-11-30 16:59:21.153837" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.273) 0:00:11.909 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.048) 0:00:11.957 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.045) 0:00:12.003 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.043) 0:00:12.047 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.035) 0:00:12.083 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.042) 0:00:12.126 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.042) 0:00:12.169 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.080) 0:00:12.249 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.033) 0:00:12.283 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.063) 0:00:12.347 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.049) 0:00:12.396 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701363559.8176649, "block_size": 4096, "blocks": 0, "ctime": 1701363559.8176649, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 34101, "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": 1701363559.8176649, "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-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.230) 0:00:12.627 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 16:59:21 +0000 (0:00:00.034) 0:00:12.661 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.039) 0:00:12.700 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.074) 0:00:12.775 ***** 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.067637", "end": "2023-11-30 16:59:22.357738", "rc": 1, "start": "2023-11-30 16:59:22.290101" } STDOUT: Connection 'statebr' (b71ed62e-31ad-4e0a-8658-01cb450002f5) 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:45 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.301) 0:00:13.077 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.067) 0:00:13.144 ***** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.068) 0:00:13.213 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.077) 0:00:13.291 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.057) 0:00:13.349 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 16:59:22 +0000 (0:00:00.066) 0:00:13.415 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005225", "end": "2023-11-30 16:59:23.934027", "rc": 0, "start": "2023-11-30 16:59:22.928802" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 16:59:23 +0000 (0:00:01.241) 0:00:14.656 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.034) 0:00:14.691 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.033) 0:00:14.725 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.075) 0:00:14.800 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006986", "end": "2023-11-30 16:59:24.323894", "rc": 1, "start": "2023-11-30 16:59:24.316908" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.277) 0:00:15.077 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.074) 0:00:15.151 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.244) 0:00:15.396 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.036) 0:00:15.433 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.060) 0:00:15.493 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.070) 0:00:15.564 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:24 +0000 (0:00:00.093) 0:00:15.657 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:25 +0000 (0:00:00.059) 0:00:15.716 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:25 +0000 (0:00:00.037) 0:00:15.754 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:25 +0000 (0:00:00.035) 0:00:15.789 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:27 +0000 (0:00:02.218) 0:00:18.007 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.877) 0:00:18.885 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.063) 0:00:18.948 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.035) 0:00:18.984 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.039) 0:00:19.024 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.086) 0:00:19.110 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.036) 0:00:19.146 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.034) 0:00:19.181 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:28 +0000 (0:00:00.041) 0:00:19.222 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.618) 0:00:19.841 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.037) 0:00:19.878 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.033) 0:00:19.912 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.033) 0:00:19.945 ***** 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, 1d04fc13-8a64-416e-91d4-a4c8203940ec TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.443) 0:00:20.388 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.064) 0:00:20.453 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1d04fc13-8a64-416e-91d4-a4c8203940ec" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.033) 0:00:20.486 ***** 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, 1d04fc13-8a64-416e-91d4-a4c8203940ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1d04fc13-8a64-416e-91d4-a4c8203940ec" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.035) 0:00:20.521 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:29 +0000 (0:00:00.029) 0:00:20.551 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.225) 0:00:20.776 ***** 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, 1d04fc13-8a64-416e-91d4-a4c8203940ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1d04fc13-8a64-416e-91d4-a4c8203940ec" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.036) 0:00:20.813 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.066) 0:00:20.879 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.053) 0:00:20.932 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.226) 0:00:21.159 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.042) 0:00:21.202 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.073) 0:00:21.276 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.040) 0:00:21.316 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.242) 0:00:21.559 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 16:59:30 +0000 (0:00:00.036) 0:00:21.595 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022440", "end": "2023-11-30 16:59:31.129678", "rc": 0, "start": "2023-11-30 16:59:31.107238" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.259) 0:00:21.855 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.033) 0:00:21.888 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.032) 0:00:21.921 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.033) 0:00:21.954 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.031) 0:00:21.985 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.031) 0:00:22.017 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.032) 0:00:22.049 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.034) 0:00:22.083 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.030) 0:00:22.114 ***** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.030) 0:00:22.144 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.035) 0:00:22.179 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.116) 0:00:22.295 ***** 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.045023", "end": "2023-11-30 16:59:31.851099", "rc": 1, "start": "2023-11-30 16:59:31.806076" } STDOUT: Connection 'statebr' (1d04fc13-8a64-416e-91d4-a4c8203940ec) 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:65 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.272) 0:00:22.568 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.054) 0:00:22.622 ***** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 16:59:31 +0000 (0:00:00.032) 0:00:22.655 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.061) 0:00:22.716 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.051) 0:00:22.768 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.049) 0:00:22.818 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003977", "end": "2023-11-30 16:59:32.329049", "rc": 0, "start": "2023-11-30 16:59:32.325072" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.231) 0:00:23.049 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.032) 0:00:23.081 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.031) 0:00:23.113 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.100) 0:00:23.213 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.082) 0:00:23.295 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.096) 0:00:23.392 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.052) 0:00:23.444 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.051) 0:00:23.495 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:32 +0000 (0:00:00.046) 0:00:23.541 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:35 +0000 (0:00:02.161) 0:00:25.703 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:35 +0000 (0:00:00.857) 0:00:26.560 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:35 +0000 (0:00:00.029) 0:00:26.590 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:35 +0000 (0:00:00.033) 0:00:26.623 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:35 +0000 (0:00:00.039) 0:00:26.663 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.062) 0:00:26.725 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.035) 0:00:26.761 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.033) 0:00:26.794 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.038) 0:00:26.833 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.610) 0:00:27.443 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.035) 0:00:27.479 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.030) 0:00:27.509 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:36 +0000 (0:00:00.030) 0:00:27.540 ***** 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, 6558574c-7349-4c1d-8572-762a5a229b0b TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.454) 0:00:27.995 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.029) 0:00:28.025 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 6558574c-7349-4c1d-8572-762a5a229b0b" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.032) 0:00:28.057 ***** 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, 6558574c-7349-4c1d-8572-762a5a229b0b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 6558574c-7349-4c1d-8572-762a5a229b0b" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.033) 0:00:28.091 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.027) 0:00:28.118 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.222) 0:00:28.341 ***** 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, 6558574c-7349-4c1d-8572-762a5a229b0b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 6558574c-7349-4c1d-8572-762a5a229b0b" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.032) 0:00:28.373 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.053) 0:00:28.427 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.096) 0:00:28.524 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.062) 0:00:28.587 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.041) 0:00:28.628 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:37 +0000 (0:00:00.034) 0:00:28.662 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:38 +0000 (0:00:00.036) 0:00:28.698 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:40 +0000 (0:00:02.196) 0:00:30.895 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.851) 0:00:31.746 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.033) 0:00:31.780 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.031) 0:00:31.812 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.042) 0:00:31.855 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.063) 0:00:31.918 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.029) 0:00:31.947 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.032) 0:00:31.980 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.034) 0:00:32.015 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.605) 0:00:32.620 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:41 +0000 (0:00:00.035) 0:00:32.655 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.027) 0:00:32.683 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.028) 0:00:32.712 ***** 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, 6558574c-7349-4c1d-8572-762a5a229b0b skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.414) 0:00:33.127 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.041) 0:00:33.169 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 6558574c-7349-4c1d-8572-762a5a229b0b skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.037) 0:00:33.206 ***** 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, 6558574c-7349-4c1d-8572-762a5a229b0b skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 6558574c-7349-4c1d-8572-762a5a229b0b skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.035) 0:00:33.242 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.029) 0:00:33.272 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.215) 0:00:33.487 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.057) 0:00:33.545 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 16:59:42 +0000 (0:00:00.077) 0:00:33.622 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701363577.223823, "block_size": 4096, "blocks": 0, "ctime": 1701363577.223823, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 34232, "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": 1701363577.223823, "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-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.223) 0:00:33.846 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.034) 0:00:33.880 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.064) 0:00:33.944 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.034) 0:00:33.979 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.228) 0:00:34.208 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.043) 0:00:34.252 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023075", "end": "2023-11-30 16:59:43.784287", "rc": 0, "start": "2023-11-30 16:59:43.761212" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.259) 0:00:34.511 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.043) 0:00:34.555 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.033) 0:00:34.588 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.032) 0:00:34.621 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 16:59:43 +0000 (0:00:00.035) 0:00:34.656 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.069) 0:00:34.726 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.035) 0:00:34.761 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.032) 0:00:34.794 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.029) 0:00:34.823 ***** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.026) 0:00:34.850 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.031) 0:00:34.881 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.058) 0:00:34.940 ***** 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.067454", "end": "2023-11-30 16:59:44.514962", "rc": 1, "start": "2023-11-30 16:59:44.447508" } STDOUT: Connection 'statebr' (6558574c-7349-4c1d-8572-762a5a229b0b) 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:83 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.291) 0:00:35.231 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.051) 0:00:35.283 ***** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.030) 0:00:35.313 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.058) 0:00:35.372 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.050) 0:00:35.422 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 16:59:44 +0000 (0:00:00.090) 0:00:35.513 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004125", "end": "2023-11-30 16:59:45.024709", "rc": 0, "start": "2023-11-30 16:59:45.020584" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.232) 0:00:35.745 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.037) 0:00:35.783 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.034) 0:00:35.817 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.071) 0:00:35.889 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.055) 0:00:35.944 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.079) 0:00:36.024 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.060) 0:00:36.085 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.048) 0:00:36.134 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:45 +0000 (0:00:00.039) 0:00:36.173 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:47 +0000 (0:00:02.092) 0:00:38.265 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.860) 0:00:39.125 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.039) 0:00:39.165 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.067) 0:00:39.232 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.034) 0:00:39.266 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.069) 0:00:39.336 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.036) 0:00:39.373 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.043) 0:00:39.416 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:48 +0000 (0:00:00.044) 0:00:39.460 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.612) 0:00:40.073 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.036) 0:00:40.110 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.029) 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.029) 0:00:40.169 ***** 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, d9ab366f-410b-4559-bf9b-76197fc19488 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.466) 0:00:40.635 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:49 +0000 (0:00:00.036) 0:00:40.671 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d9ab366f-410b-4559-bf9b-76197fc19488" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.040) 0:00:40.712 ***** 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, d9ab366f-410b-4559-bf9b-76197fc19488\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d9ab366f-410b-4559-bf9b-76197fc19488" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.071) 0:00:40.783 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.035) 0:00:40.818 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.224) 0:00:41.043 ***** 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, d9ab366f-410b-4559-bf9b-76197fc19488\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, d9ab366f-410b-4559-bf9b-76197fc19488" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.032) 0:00:41.075 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.050) 0:00:41.125 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.068) 0:00:41.194 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.039) 0:00:41.234 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.042) 0:00:41.276 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:50 +0000 (0:00:00.034) 0:00:41.310 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:52 +0000 (0:00:02.142) 0:00:43.453 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.869) 0:00:44.322 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.042) 0:00:44.365 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.033) 0:00:44.399 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.035) 0:00:44.434 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.068) 0:00:44.502 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.071) 0:00:44.574 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.046) 0:00:44.621 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:53 +0000 (0:00:00.043) 0:00:44.664 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:54 +0000 (0:00:00.615) 0:00:45.280 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:54 +0000 (0:00:00.041) 0:00:45.321 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:54 +0000 (0:00:00.029) 0:00:45.350 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:54 +0000 (0:00:00.030) 0:00:45.381 ***** 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, d9ab366f-410b-4559-bf9b-76197fc19488 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.398) 0:00:45.780 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.028) 0:00:45.809 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, d9ab366f-410b-4559-bf9b-76197fc19488 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.033) 0:00:45.842 ***** 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, d9ab366f-410b-4559-bf9b-76197fc19488 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, d9ab366f-410b-4559-bf9b-76197fc19488 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.029) 0:00:45.872 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.027) 0:00:45.900 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.216) 0:00:46.117 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove_profile.yml:3 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.065) 0:00:46.183 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.064) 0:00:46.247 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.071) 0:00:46.319 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.064) 0:00:46.383 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.036) 0:00:46.419 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 16:59:55 +0000 (0:00:00.033) 0:00:46.453 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 16:59:57 +0000 (0:00:02.106) 0:00:48.559 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.871) 0:00:49.431 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.034) 0:00:49.466 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.042) 0:00:49.508 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.038) 0:00:49.547 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.077) 0:00:49.624 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 16:59:58 +0000 (0:00:00.031) 0:00:49.656 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.064) 0:00:49.721 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.043) 0:00:49.764 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.605) 0:00:50.369 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.040) 0:00:50.410 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.033) 0:00:50.444 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 16:59:59 +0000 (0:00:00.032) 0:00:50.476 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.445) 0:00:50.921 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.029) 0:00:50.950 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.030) 0:00:50.981 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.031) 0:00:51.012 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.028) 0:00:51.041 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.245) 0:00:51.287 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.061) 0:00:51.348 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.055) 0:00:51.403 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701363589.8584957, "block_size": 4096, "blocks": 0, "ctime": 1701363589.8584957, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 34363, "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": 1701363589.8584957, "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-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.226) 0:00:51.630 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 17:00:00 +0000 (0:00:00.032) 0:00:51.662 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.050) 0:00:51.713 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.034) 0:00:51.747 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.225) 0:00:51.972 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.030) 0:00:52.003 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023335", "end": "2023-11-30 17:00:01.533509", "rc": 1, "start": "2023-11-30 17:00:01.510174" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.247) 0:00:52.250 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.030) 0:00:52.281 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.057) 0:00:52.338 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.035) 0:00:52.374 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.036) 0:00:52.411 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.034) 0:00:52.446 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.041) 0:00:52.487 ***** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.035) 0:00:52.522 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.034) 0:00:52.557 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 17:00:01 +0000 (0:00:00.068) 0:00:52.625 ***** 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.080768", "end": "2023-11-30 17:00:02.220922", "rc": 1, "start": "2023-11-30 17:00:02.140154" } STDOUT: Connection 'statebr' (d9ab366f-410b-4559-bf9b-76197fc19488) 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:103 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.312) 0:00:52.938 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.053) 0:00:52.991 ***** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.033) 0:00:53.025 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.075) 0:00:53.100 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.094) 0:00:53.195 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:00:02 +0000 (0:00:00.048) 0:00:53.243 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005118", "end": "2023-11-30 17:00:03.759459", "rc": 0, "start": "2023-11-30 17:00:02.754341" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:00:03 +0000 (0:00:01.236) 0:00:54.480 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:00:03 +0000 (0:00:00.034) 0:00:54.514 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 17:00:03 +0000 (0:00:00.031) 0:00:54.545 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 17:00:03 +0000 (0:00:00.067) 0:00:54.612 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:03 +0000 (0:00:00.054) 0:00:54.667 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:04 +0000 (0:00:00.090) 0:00:54.757 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:04 +0000 (0:00:00.039) 0:00:54.796 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:04 +0000 (0:00:00.032) 0:00:54.829 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:04 +0000 (0:00:00.029) 0:00:54.858 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:06 +0000 (0:00:02.177) 0:00:57.036 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.906) 0:00:57.943 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.033) 0:00:57.976 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.031) 0:00:58.008 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.033) 0:00:58.041 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.066) 0:00:58.108 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.028) 0:00:58.136 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.028) 0:00:58.165 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:07 +0000 (0:00:00.036) 0:00:58.201 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.615) 0:00:58.816 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.069) 0:00:58.886 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.029) 0:00:58.915 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.031) 0:00:58.947 ***** 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, c4d02ba8-9c14-446e-b0aa-603be55d8154 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.463) 0:00:59.411 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.038) 0:00:59.449 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c4d02ba8-9c14-446e-b0aa-603be55d8154" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.033) 0:00:59.483 ***** 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, c4d02ba8-9c14-446e-b0aa-603be55d8154\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c4d02ba8-9c14-446e-b0aa-603be55d8154" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.032) 0:00:59.515 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:08 +0000 (0:00:00.032) 0:00:59.548 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.222) 0:00:59.770 ***** 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, c4d02ba8-9c14-446e-b0aa-603be55d8154\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c4d02ba8-9c14-446e-b0aa-603be55d8154" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.041) 0:00:59.812 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.069) 0:00:59.882 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.064) 0:00:59.946 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.108) 0:01:00.055 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.028) 0:01:00.084 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:09 +0000 (0:00:00.030) 0:01:00.114 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:11 +0000 (0:00:02.128) 0:01:02.242 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.924) 0:01:03.167 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.046) 0:01:03.214 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.031) 0:01:03.245 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.042) 0:01:03.287 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.065) 0:01:03.353 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.032) 0:01:03.385 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.035) 0:01:03.421 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:12 +0000 (0:00:00.048) 0:01:03.469 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.608) 0:01:04.077 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.034) 0:01:04.112 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.027) 0:01:04.139 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.060) 0:01:04.199 ***** 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, c4d02ba8-9c14-446e-b0aa-603be55d8154 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.403) 0:01:04.603 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.028) 0:01:04.632 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c4d02ba8-9c14-446e-b0aa-603be55d8154 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:13 +0000 (0:00:00.032) 0:01:04.665 ***** 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, c4d02ba8-9c14-446e-b0aa-603be55d8154 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c4d02ba8-9c14-446e-b0aa-603be55d8154 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.037) 0:01:04.702 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.033) 0:01:04.736 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove_profile.yml:3 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.219) 0:01:04.955 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.063) 0:01:05.019 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.064) 0:01:05.083 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.037) 0:01:05.121 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.035) 0:01:05.156 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:14 +0000 (0:00:00.071) 0:01:05.228 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:16 +0000 (0:00:02.106) 0:01:07.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 : Print network provider] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.859) 0:01:08.194 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.033) 0:01:08.227 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.056) 0:01:08.284 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.031) 0:01:08.315 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.063) 0:01:08.379 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.038) 0:01:08.417 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.032) 0:01:08.450 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:17 +0000 (0:00:00.033) 0:01:08.483 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:18 +0000 (0:00:00.607) 0:01:09.090 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:18 +0000 (0:00:00.051) 0:01:09.142 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:18 +0000 (0:00:00.032) 0:01:09.174 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:18 +0000 (0:00:00.031) 0:01:09.205 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:18 +0000 (0:00:00.443) 0:01:09.649 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.029) 0:01:09.679 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.059) 0:01:09.739 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.030) 0:01:09.770 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.029) 0:01:09.800 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.226) 0:01:10.026 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.070) 0:01:10.096 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.069) 0:01:10.166 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.082) 0:01:10.248 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.042) 0:01:10.291 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.032) 0:01:10.323 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:19 +0000 (0:00:00.031) 0:01:10.354 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:21 +0000 (0:00:02.166) 0:01:12.521 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.863) 0:01:13.384 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.032) 0:01:13.416 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.030) 0:01:13.447 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.060) 0:01:13.507 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.080) 0:01:13.588 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.042) 0:01:13.630 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:22 +0000 (0:00:00.030) 0:01:13.660 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:23 +0000 (0:00:00.035) 0:01:13.696 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:23 +0000 (0:00:00.614) 0:01:14.310 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:23 +0000 (0:00:00.037) 0:01:14.348 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:23 +0000 (0:00:00.028) 0:01:14.376 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:23 +0000 (0:00:00.031) 0:01:14.407 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.485) 0:01:14.893 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.044) 0:01:14.937 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.047) 0:01:14.985 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.068) 0:01:15.053 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.028) 0:01:15.082 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.221) 0:01:15.304 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.070) 0:01:15.375 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.084) 0:01:15.460 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 17:00:24 +0000 (0:00:00.042) 0:01:15.502 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.243) 0:01:15.745 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.042) 0:01:15.787 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022042", "end": "2023-11-30 17:00:25.322789", "rc": 1, "start": "2023-11-30 17:00:25.300747" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.264) 0:01:16.052 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.044) 0:01:16.096 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.034) 0:01:16.130 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.036) 0:01:16.167 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.093) 0:01:16.260 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.040) 0:01:16.301 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.039) 0:01:16.340 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.067) 0:01:16.408 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:00:25 +0000 (0:00:00.056) 0:01:16.464 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.231) 0:01:16.696 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.034) 0:01:16.731 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.035) 0:01:16.766 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.064) 0:01:16.830 ***** 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.043170", "end": "2023-11-30 17:00:26.382137", "rc": 1, "start": "2023-11-30 17:00:26.338967" } 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-code_refactorpp5wg6l0/tests/playbooks/tests_states.yml:126 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.268) 0:01:17.099 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.086) 0:01:17.185 ***** ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.031) 0:01:17.217 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.064) 0:01:17.281 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.053) 0:01:17.335 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:00:26 +0000 (0:00:00.050) 0:01:17.386 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005190", "end": "2023-11-30 17:00:27.904663", "rc": 0, "start": "2023-11-30 17:00:26.899473" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:00:27 +0000 (0:00:01.242) 0:01:18.628 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:00:27 +0000 (0:00:00.029) 0:01:18.657 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.027) 0:01:18.685 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.093) 0:01:18.778 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.053) 0:01:18.832 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.057) 0:01:18.889 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.036) 0:01:18.926 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.028) 0:01:18.954 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:28 +0000 (0:00:00.030) 0:01:18.984 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:30 +0000 (0:00:02.136) 0:01:21.121 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.863) 0:01:21.985 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.032) 0:01:22.017 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.033) 0:01:22.051 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.039) 0:01:22.091 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.065) 0:01:22.156 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.031) 0:01:22.187 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.030) 0:01:22.218 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:31 +0000 (0:00:00.034) 0:01:22.252 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.611) 0:01:22.863 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.045) 0:01:22.909 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.034) 0:01:22.943 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.031) 0:01:22.975 ***** 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, cb887d0d-bf75-41bc-aa61-df0634916ec8 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.462) 0:01:23.438 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.034) 0:01:23.473 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, cb887d0d-bf75-41bc-aa61-df0634916ec8" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.034) 0:01:23.507 ***** 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, cb887d0d-bf75-41bc-aa61-df0634916ec8\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, cb887d0d-bf75-41bc-aa61-df0634916ec8" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.033) 0:01:23.540 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:32 +0000 (0:00:00.033) 0:01:23.574 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.220) 0:01:23.794 ***** 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, cb887d0d-bf75-41bc-aa61-df0634916ec8\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, cb887d0d-bf75-41bc-aa61-df0634916ec8" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.032) 0:01:23.826 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.078) 0:01:23.905 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.056) 0:01:23.962 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.037) 0:01:23.999 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.034) 0:01:24.034 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:33 +0000 (0:00:00.032) 0:01:24.067 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:35 +0000 (0:00:02.113) 0:01:26.180 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.905) 0:01:27.086 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.039) 0:01:27.125 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.030) 0:01:27.156 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.029) 0:01:27.185 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.056) 0:01:27.242 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.026) 0:01:27.269 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.028) 0:01:27.297 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:36 +0000 (0:00:00.035) 0:01:27.332 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.642) 0:01:27.975 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.042) 0:01:28.017 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.030) 0:01:28.047 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.030) 0:01:28.077 ***** 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, cb887d0d-bf75-41bc-aa61-df0634916ec8 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.411) 0:01:28.489 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.031) 0:01:28.521 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, cb887d0d-bf75-41bc-aa61-df0634916ec8 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.034) 0:01:28.555 ***** 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, cb887d0d-bf75-41bc-aa61-df0634916ec8 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, cb887d0d-bf75-41bc-aa61-df0634916ec8 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.035) 0:01:28.590 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:37 +0000 (0:00:00.031) 0:01:28.622 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.228) 0:01:28.850 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.075) 0:01:28.925 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.067) 0:01:28.992 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.087) 0:01:29.080 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.032) 0:01:29.113 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:38 +0000 (0:00:00.032) 0:01:29.145 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:40 +0000 (0:00:02.082) 0:01:31.228 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.898) 0:01:32.126 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.029) 0:01:32.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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.030) 0:01:32.186 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.030) 0:01:32.217 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.060) 0:01:32.278 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.029) 0:01:32.307 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.030) 0:01:32.337 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:41 +0000 (0:00:00.036) 0:01:32.374 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.612) 0:01:32.986 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.033) 0:01:33.020 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.029) 0:01:33.049 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.065) 0:01:33.114 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.504) 0:01:33.619 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:42 +0000 (0:00:00.040) 0:01:33.660 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.039) 0:01:33.699 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.038) 0:01:33.737 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.035) 0:01:33.773 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.222) 0:01:33.996 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.053) 0:01:34.050 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.051) 0:01:34.101 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.059) 0:01:34.161 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.070) 0:01:34.231 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.030) 0:01:34.262 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:00:43 +0000 (0:00:00.034) 0:01:34.296 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:00:45 +0000 (0:00:02.146) 0:01:36.443 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.924) 0:01:37.367 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.039) 0:01:37.407 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.044) 0:01:37.451 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.041) 0:01:37.493 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.079) 0:01:37.572 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.038) 0:01:37.611 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:00:46 +0000 (0:00:00.046) 0:01:37.657 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:00:47 +0000 (0:00:00.050) 0:01:37.707 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:00:47 +0000 (0:00:00.607) 0:01:38.315 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:00:47 +0000 (0:00:00.048) 0:01:38.363 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:00:47 +0000 (0:00:00.029) 0:01:38.392 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:00:47 +0000 (0:00:00.028) 0:01:38.421 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.504) 0:01:38.925 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.039) 0:01:38.964 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.051) 0:01:39.016 ***** 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-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.036) 0:01:39.052 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.033) 0:01:39.086 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.221) 0:01:39.308 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.081) 0:01:39.389 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.060) 0:01:39.450 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 17:00:48 +0000 (0:00:00.039) 0:01:39.489 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.234) 0:01:39.724 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.037) 0:01:39.762 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021827", "end": "2023-11-30 17:00:49.296654", "rc": 1, "start": "2023-11-30 17:00:49.274827" } 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-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.292) 0:01:40.054 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.036) 0:01:40.091 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.035) 0:01:40.126 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.032) 0:01:40.160 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.030) 0:01:40.190 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.035) 0:01:40.226 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Thursday 30 November 2023 17:00:49 +0000 (0:00:00.046) 0:01:40.273 ***** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.260333", "end": "2023-11-30 17:00:50.043416", "rc": 0, "start": "2023-11-30 17:00:49.783083" } STDOUT: NetworkManager-1.40.18-1.fc37 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.488) 0:01:40.762 ***** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.40.18-1.fc37" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.040) 0:01:40.802 ***** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.40.18-1.fc37" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.036) 0:01:40.839 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.062) 0:01:40.901 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.058) 0:01:40.960 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.259) 0:01:41.219 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.034) 0:01:41.254 ***** 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-code_refactorpp5wg6l0/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.031) 0:01:41.285 ***** included: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorpp5wg6l0/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 17:00:50 +0000 (0:00:00.073) 0:01:41.359 ***** 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.043689", "end": "2023-11-30 17:00:50.914445", "rc": 1, "start": "2023-11-30 17:00:50.870756" } 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 30 November 2023 17:00:50 +0000 (0:00:00.253) 0:01:41.612 ***** =============================================================================== linux-system-roles.network : Enable and start NetworkManager ------------ 3.33s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Configure networking connection profiles --- 2.51s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 2.47s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 2.27s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.22s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.20s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.18s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.17s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.16s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.15s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.14s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.14s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.13s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.11s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.11s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.11s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.09s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 2.08s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Enable and start NetworkManager ------------ 1.83s /WORKDIR/git-code_refactorpp5wg6l0/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Configure networking connection profiles --- 1.63s /WORKDIR/git-code_refactorpp5wg6l0/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. ---^---^---^---^---^---